CCTDecode
CCTDecode copied to clipboard
ValueError: too many values to unpack (expected 2)
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:]
感谢反馈,我会尽快兼容不同版本的opencv