Zolver icon indicating copy to clipboard operation
Zolver copied to clipboard

Getting an error when running.

Open PrinceOfParallax opened this issue 3 years ago • 2 comments

image

PrinceOfParallax avatar Feb 18 '22 14:02 PrinceOfParallax

Did you find a solution?

jumpjack avatar Aug 08 '22 17:08 jumpjack

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)

simin75simin avatar Jan 02 '23 16:01 simin75simin