cv_util
findContours(imgPre, roi=[0, 0, 640, 360], min_area=1000, sort=True, filter=0, img=None, c=(255, 0, 0))
ยค
Finds Contours in an image
:param imgPre: Binary image on which we want to find contours. This image may be the result of a roi crop. :param roi: region of interest cropped from the original frame :param minArea: Minimum Area to detect as valid contour :param sort: True will sort the contours by area (biggest first) :param filter: Filters based on the corner points e.g. 4 = Rectangle or square, 0 = all accepted :param img: Image on which we want to draw contours :return: dictionary [contours, Area, BoundingBox, Center]
Source code in motiontracker\utility\cv_util.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|