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

Python 3 #22

Open
reagle opened this issue Jul 22, 2020 · 2 comments
Open

Python 3 #22

reagle opened this issue Jul 22, 2020 · 2 comments

Comments

@reagle
Copy link

reagle commented Jul 22, 2020

I tried to run this, but python 2 is deprecated, cv2 is not in pip anymore, there is opencv-python, but when I installed that and other dependences, I get errors...

╰─➤  page_dewarp.py example_input/boston_cooking_a.jpg
loaded boston_cooking_a.jpg with size 2448x3264 and resized to 490x653
Traceback (most recent call last):
  File "page_dewarp.py", line 1001, in <module>
    main()
  File "page_dewarp.py", line 954, in main
    cinfo_list = get_contours(name, small, pagemask, "text")
  File "page_dewarp.py", line 489, in get_contours
    mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE
ValueError: need more than 2 values to unpack
@Radcliffe
Copy link

Robert Sachunsky (@bertsky) has worked on converting the project to Python 3. See PR #20.

@Ganesh9100
Copy link

in the code find for ,contours,
change ,contours, to contours,_
@reagle

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