Answer the question
In order to leave comments, you need to log in
How to select only outer contours with OpenCV?
Guys, I use OpenCV in my program, I find contours perfectly, BUT both external and internal ones get there. I know that only external ones can be distinguished, I will be grateful for a hint?
CvContourScanner scanner = new CvContourScanner(gray, storage, CvContour.SizeOf, ContourRetrieval.Tree, ContourChain.ApproxSimple);
foreach (CvSeq<CvPoint> c in scanner)
{
etc....
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question