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.
1 | initial version |
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.