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

I am trying to use gcv2hocr.py, how to use? #7

Open
nissansz opened this issue Apr 30, 2020 · 0 comments
Open

I am trying to use gcv2hocr.py, how to use? #7

nissansz opened this issue Apr 30, 2020 · 0 comments
Assignees

Comments

@nissansz
Copy link

I am trying to use gcv2hocr.py, how to use?

I have manually downloaded a json result: 0013-spire2imagejson.txt
When I run the py file, it returns below error.

C:\Users\Programs\Python\Python36\python.exe E:/python/pdf-gcv-ocr-master/lib/gcv2hocr.py 0013-spire2imagejson.txt
Traceback (most recent call last):
File "E:/python/pdf-gcv-ocr-master/lib/gcv2hocr.py", line 166, in
page = fromResponse(resp, **args.dict)
File "E:/python/pdf-gcv-ocr-master/lib/gcv2hocr.py", line 106, in fromResponse
detectedBreak = symbol['property']['detectedBreak']
KeyError: 'detectedBreak'

Process finished with exit code 1

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

2 participants