Skip to content

Tag: opencv

Filter contour area with smaller area

I would like to filter out cnts with small area. But I got the an error. What is the proper way to use filter? code error Answer The filter function returns a generator but the drawContours function expects a list. To fix this, use the list command. Another solution is to use a list comprehension to build the…

How to use cv2.fillpoly function properly [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 6 months ago. Improve this question I am…

Repeated drawings of bounding box

I would like to simply make a bounding box that uses points(any amount) to follow my mouse around. Error being when I draw the bounding box currently it repeats all the previous drawings and have repeated bounding boxes Answer You had already the right idea creating a clone from the original image, but just f…