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 got error when it read different span #1

Open
yozawiratama opened this issue May 23, 2018 · 1 comment
Open

I got error when it read different span #1

yozawiratama opened this issue May 23, 2018 · 1 comment

Comments

@yozawiratama
Copy link

This is my error :

Uncaught TypeError: Cannot read property '1' of undefined
    at HocrProofreader.renderNodesRecursive (hocr-proofreader.js:304)
    at HocrProofreader.renderNodesRecursive (hocr-proofreader.js:329)
    at HocrProofreader.renderNodesRecursive (hocr-proofreader.js:329)
    at HocrProofreader.renderNodesRecursive (hocr-proofreader.js:329)
    at HocrProofreader.renderNodesRecursive (hocr-proofreader.js:329)
    at HocrProofreader.renderPage (hocr-proofreader.js:266)
    at HocrProofreader.setPage (hocr-proofreader.js:212)
    at HocrProofreader.setHocr (hocr-proofreader.js:132)
    at main.js:40
    at XMLHttpRequest.request.onload (hocr-proofreader.js:14)

this ocr i get from generated from tesseract

@not-implemented
Copy link
Owner

Hi, ok there is still some default-handling missing in hocr-proofreader. It seems that your hOCR does not have a "scan_res" option. You can try to add title="scan_res 300 300" to a top-level-node (if you have 300 dpi resolution). Or you can play around in hocr-proofreader.js (line 304) for testing.

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