Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can findContours returns strokes instead of oulines?

Hey All, I am using findContours to generate cubic beziers. The problem I am having, is that after going through the Canny filter, findContours is returning the contours to outline each edge found. If there is a circle for instance, I will get two contours almost exactly on top of one another. I assume these two contours are the representation of the thickness of the line from the Canny filter.

Is there a way to use the hierarchy or adjust the findContours call to return a single contour per edge?