-
Notifications
You must be signed in to change notification settings - Fork 30
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
Could not convert json output #16
Comments
Thank you for using gcv2hocr. |
Thanks for the quick reply. I used this Response from https://cloud.google.com/vision/docs/ocr: |
Thank you for upload your file. |
I have modified gcv2hocr.py. |
Thanks for the prompt fix. It works now.
|
The output for C and Python is different. Historically, Python version is not committed by me. |
I tried to convert the json output on Google's page using gcv2hocr.py:
https://cloud.google.com/vision/docs/ocr
Traceback (most recent call last):
File "gcv2hocr2.py", line 146, in
page = fromResponse(resp, **args.dict)
File "gcv2hocr.py", line 99, in fromResponse
word.htmlid="word_%d_%d" % (len(page.content) - 1, len(curline.content))
AttributeError: 'NoneType' object has no attribute 'content'
Thanks
The text was updated successfully, but these errors were encountered: