def testMotionDetectAMF(self):
        ilog = None # pv.ImageLog()
        
        md = pv.MotionDetector(method=pv.BG_SUBTRACT_AMF,minArea=200)
        
        video = pv.Video(BUGS_VIDEO)
        
        i = 0
        for frame in video:            
            _ = md.detect(frame)

            _ = md.getStandardizedRects()
            _ = md.getBoundingRects()
            
            _ = md.getPolygons(return_all=True)
            
            if ilog != None:
                print "Processing Frame:",i
                
                key_frame = md.getKeyFrame()
                
                md.annotateFrame(key_frame)
                
                if key_frame != None:
                    ilog(key_frame,format='jpg')
                            
            i += 1
            if 20 > i: break
        
        if ilog != None:
            ilog.show()
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/testsuite.py/MotionDetectTest.testMotionDetectAMF/swapped operands of `>`