Hi: I think this code uses the old version of cv2. When I am using the latest cv2, I meet this error. Then I change line 179 to : contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) The problem is solved.
Hi:
I think this code uses the old version of cv2. When I am using the latest cv2, I meet this error.
Then I change line 179 to :
contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
The problem is solved.