dinosauria123 / gcv2hocr

gcv2hocr converts from Google Cloud Vision OCR output to hocr to make a searchable pdf.
99 stars 33 forks source link

Fixed vertices error for FullTextAnnotation and denormalized them #37

Closed p-acharya closed 3 years ago

p-acharya commented 3 years ago

GCV recently updated the format of FullTextAnnotation response. They have changed 'vertices' to 'normalized vertices' (divided by height or width), which I have denormalized. Also added error handling to parsing the JSON for the first bounding box.

dinosauria123 commented 3 years ago

Thank you for your commit!