How to extract only top-level contours?
When using findContours to identify blobs, is there a way to ignore any contours present within another contour. I only need to count the number of contours that are the outermost using contours.size();
I looked into this and found the RETR_EXTERNAL parameter instead of the RETR_LIST, is this enough? Or do I have to do anything with the hierarchy Mat object (third parameter)?
Using RETR_EXTERNAL gave you bad results? What have you tried so far?
Gave somewhat of a better answer (RETR_EXTERNAL). Was wondering whether it could be more refined...