New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value Error: not enough values to unpack #4
Comments
in the 135 line
it's because in a previous version of opencv that function used to return 3 values, now it returns just 2 values |
Still error as: It seems a little old project. Does this problem issue from the newest version of requiements (cv2 numpy scipy matplotlib) ? |
Ok, I find the original code only works on deskew0.jpg. What should I need to do for apply this project on my own picture. |
Python 3 / OSX
$ python3 unproject_text/unproject_text.py samples/hd/IMG_1234.jpg
Traceback (most recent call last):
File "unproject_text/unproject_text.py", line 503, in
main()
File "unproject_text/unproject_text.py", line 490, in main
contours, hierarchy = get_contours(img)
File "unproject_text/unproject_text.py", line 135, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)
The text was updated successfully, but these errors were encountered: