Zolver
Zolver copied to clipboard
Getting an error when running.

Did you find a solution?
opencv version too new, remove the third parameter so it's like this:
_, contour = cv2.findContours(self.img_bw, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)
P.S. you need to do it once again on a later line:
self.img_bw, contours = cv2.findContours(self.img_bw, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)