def getAnnotatedImage(self, showRects=True, showContours=False, 
                          showConvexHulls=False, showFlow=False):
        rects = self.getRects()
        outImg = self._annotateImg.copy()  #deep copy, so can freely modify the copy
        if outImg == None: return None
        
        #draw optical flow information in white
        if showFlow and (self._method == pv.BG_SUBTRACT_MCFD):
            flow = self._bgSubtract.getOpticalFlow()
            flow.annotateFrame(outImg)
            
        if showContours or showConvexHulls:
            cvimg = outImg.asOpenCV()
        
        #draw contours in green   
        if showContours:
            cv.DrawContours(cvimg, self._contours, cv.RGB(0, 255, 0), cv.RGB(255,0,0), 2)
        
        #draw hulls in cyan    
        if showConvexHulls:
            cv.PolyLine(cvimg, self._convexHulls, True, cv.RGB(0,255,255))
        
        #draw bounding box in yellow
        if showRects:
            for r in rects:
                outImg.annotateRect(r,"yellow")
        
        return outImg
Deletes all the contents of a given bucket / directory.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/MotionDetector.py/MotionDetector.getAnnotatedImage--crossover with--dataset/ETHPy150Open googlearchive/compute-appengine-demo-suite-python/demo-suite/lib/google_cloud/cs.py/Cs.delete_bucket_contents