HOCR to HTML for visualizing
Asked Answered
M

3

16

How to convert hOCR to HTML for visualization?

If you open the raw hOCR file its only rendered as plain text (the elements are not positioned)

Mathison answered 13/7, 2016 at 20:35 Comment(0)
B
20

There are different solutions for this task and I know these three:

All of these repos seem to consist mainly of some JavaScript and CSS files. The first two repos have both a link to some demo page where I have taken the pictures from.

The first one provides a Greasemonkey/Tampermonkey script which allows to inject this overlay on any suitable hocr website online and local (some configuration may be possible for that). I don't know how difficult it is to use the other solutins for your own hocr files, but it should be doable.

Blent answered 6/3, 2017 at 18:29 Comment(0)
F
14

To add the interface to a plain hOCR file, add this line just before the closing </body> tag:

<script src="https://unpkg.com/hocrjs"></script>

Then open the html (hOCR) file in your browser.

Source

Firdausi answered 3/1, 2019 at 15:20 Comment(0)
C
-8

hOCR is HTML. You can view it in a web browser.

Concessionaire answered 14/7, 2016 at 0:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.