Contour approximation. Avoid extra rectangle height

asked 2016-02-19 23:48:04 -0600

Shahrukh Q gravatar image

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.

edit retag flag offensive close merge delete

Comments

Did you get the answer to this question? What did you use?

notenail gravatar imagenotenail ( 2019-02-22 00:43:53 -0600 )edit