dinosauria123 / gcv2hocr

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

add quotes when parsing JSON parameters #27

Closed ailintom closed 5 years ago

ailintom commented 5 years ago

Currently the program fails to process OCR'd pages which contain the word "locale" in the OCR's text, because it interprets OCR'd text as locale definition!

Searching for JSON parameter names in quotation signs with a colon should be safe, because in unescaped quotation signs followed by a colon are only used in JSON as parameter names.