CCTDecode icon indicating copy to clipboard operation
CCTDecode copied to clipboard

ValueError: too many values to unpack (expected 2)

Open coffeerr2004001 opened this issue 4 years ago • 1 comments

File "CCTDecodeRelease.py", line 65, in CCT_extract contours, hierarchy = cv2.findContours(img_bina,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)
ValueError: too many values to unpack (expected 2)

根据opencv版本不同, 可能需要改为: contours, hierarchy = cv2.findContours(img_bina,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)[-2:]

coffeerr2004001 avatar Sep 15 '20 06:09 coffeerr2004001

感谢反馈,我会尽快兼容不同版本的opencv

poxiao2 avatar Sep 15 '20 06:09 poxiao2