Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Bad contours detection

Hello I use findContour to detect the contour of my shape. My shape is a simple square . The problem is the contour some times come from a corner then stop in the middle then go back the the previous corner and finally goes to the next corner. Is it a normal behavior of the function?

How can I avoid that ?

image description

On the left you can see the findContour function detect well the corner and the pixel between. On the right the behavior I previously explain.