findcontours() output doubt
image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
In this line i understand the meaning of image and contours. but what is hierarchy?? Could anyone explain?
Thanks in advance! :) P.S. I am a beginner.
can you imagine a contour inside another contour ? and another one inside that ? like a matroshka doll ?
There are excellent tutorials about contours here in the docs
Please use the search button of both forum, google and the documentation. These questions can all be solved fairly easily using the available tools ...