def getPolygons(self,return_all=False):
        #create a list of the top-level contours found in the contours (cv.Seq) structure
        polys = []
        if len(self._contours) < 1: return(polys)
        seq = self._contours
        while not (seq == None):

            if return_all or (cv.ContourArea(seq) > self._minArea):
                poly = [ pv.Point(*each) for each in seq ]
                poly.append(poly[0])
                
                polys.append(poly)
                
            seq = seq.h_next()
                
        return polys
@param return_all: return all contours regardless of min area.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/MotionDetector.py/MotionDetector.getPolygons