Skip to content
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

Error with the usage command #1

Open
anuragreddygv323 opened this issue Mar 14, 2017 · 3 comments
Open

Error with the usage command #1

anuragreddygv323 opened this issue Mar 14, 2017 · 3 comments

Comments

@anuragreddygv323
Copy link

m-c02sh1f0g8wl:unproject_text-master arg000m$ python unproject_text.py deskew0.jpg
Traceback (most recent call last):
File "unproject_text.py", line 503, in
main()
File "unproject_text.py", line 490, in main
contours, hierarchy = get_contours(img)
File "unproject_text.py", line 135, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: need more than 2 values to unpack

could you help me with this ?

@zhanglaplace
Copy link

@anuragreddygv323 i have the same problem . did you solve it?

@rremani
Copy link

rremani commented Jul 26, 2017

@anuragreddygv323 @zhanglaplace it has to unpack more than 2 values but it isn't able to, check get_contours function and change 'contours, hierarchy = cv2.findContours() to _,contours, hierarchy = cv2.findContours()', this should solve. It has to do with opencv version, better to run it on opencv 3.0.0.

@zhanglaplace
Copy link

@rremani thanks, i have already solved the problem. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants