Skip to content

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

@nissansz

Description

@nissansz

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions