You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry I cannot get this to work, and there is nothing in the readme about additional values?
Cheers for any help you can give me
loaded boston_cooking_a.jpg with size 2448x3264 and resized to 490x653
Traceback (most recent call last):
File "../page_dewarp.py", line 915, in
main()
File "../page_dewarp.py", line 867, in main
cinfo_list = get_contours(name, small, pagemask, 'text')
File "../page_dewarp.py", line 450, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: need more than 2 values to unpack
The text was updated successfully, but these errors were encountered:
In earlier versions of openCV function findContours() used to return 3 values (image, contours, hierarchy). In openCV 4 it returns two values (contours, hierarchy) and this is what causing the error. Just use openCV 3.
Sorry I cannot get this to work, and there is nothing in the readme about additional values?
Cheers for any help you can give me
loaded boston_cooking_a.jpg with size 2448x3264 and resized to 490x653
Traceback (most recent call last):
File "../page_dewarp.py", line 915, in
main()
File "../page_dewarp.py", line 867, in main
cinfo_list = get_contours(name, small, pagemask, 'text')
File "../page_dewarp.py", line 450, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: need more than 2 values to unpack
The text was updated successfully, but these errors were encountered: