Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::findContours finds more than one contour

I'm trying to find contours in an image, but the cv::findContours finds more than one contour.

cv::findContours(image.clone(), contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE);

And the result:

1

What I want to find: 2

How can I increase the precision of the cv::findContours in order to find what I want?

Thanks.

cv::findContours finds more than one contour

I'm trying to find contours in an image, but the cv::findContours finds more than one contour.

cv::findContours(image.clone(), contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE);

And the result:

1

What I want to find: find:

2

How can I increase the precision of the cv::findContours in order to find what I want?

Thanks.

click to hide/show revision 3
retagged

cv::findContours finds more than one contour

I'm trying to find contours in an image, but the cv::findContours finds more than one contour.

cv::findContours(image.clone(), contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE);

And the result:

1

What I want to find:

2

How can I increase the precision of the cv::findContours in order to find what I want?

Thanks.