Ask Your Question

Revision history [back]

You may try to replace cv2.RETR_TREE with cv2.RETR_EXTERNAL, which returns only exterior contours.