Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Contour approximation. Avoid extra rectangle height

$
0
0
Binary image ![image description](/upfiles/14559470246425772.png) When I draw rectangle it gives me rectangle with maximum height. I dont want to use `enter code here` epsilon = 0.1*cv2.arcLength(contour_value, True) contour_value = cv2.approxPolyDP(contour_value, epsilon, True) Can anyone tell me best way to iterate the image and remove below extra contour or give me a way to iterate contour and approximate it manually. Thanks.

Viewing all articles
Browse latest Browse all 2088

Trending Articles