What are all the three parameters of cv2.findContours() and it's output? [closed]

asked 2015-11-21 09:57:58 -0600

arp1561 gravatar image
           1 - cv2.findContours(thresh, 1, 2) 
          2 - image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_NONE)

Can someone please tell me what the 2 parameters in this function mean?? Why we used 1 and 2 in the First example and why we wrote that much for the second one?

Thanks in Advance :) P.S. I am a beginner

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by sturkmen
close date 2020-10-13 17:42:01.148252

Comments

1

"why we wrote that much for the second one? " - cv2.RETR_TREE and cv2.CHAIN_APPROX_NONE are numerical constants, numbers. sure you can use 1,2 instead, but you'll never know, what it means

berak gravatar imageberak ( 2015-11-21 10:01:16 -0600 )edit