Finding external contours

do you see that it’s all about the flag CV_RETR_EXTERNAL?