Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Contour approximation. Avoid extra rectangle height

Binary image image description 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.