First time here? Check out the FAQ!
answered 2017-08-29 20:07:10 -0600
You may try to replace cv2.RETR_TREE with cv2.RETR_EXTERNAL, which returns only exterior contours.