Convert ALTO to HOCR
Turn ALTO files into HOCR. hOCR with a page, text area, paragraph, line and word for every page, text block, line and word of the ALTO file, keeping the box of each and how sure the reader was of each word.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ALTO files on the dialor turn it to pick what to do
OCR text and word boxes as hOCR.Every page, block, line and word of the ALTO file is kept with its box and confidence.
What you get
One hOCR file, which is OCR output as HTML with the position of every word on the page. Each page, text block, line and word of the ALTO file becomes a page, text area, paragraph, line and word in the hOCR.
The box of each one is kept, and so is how sure the reader was of each word.
What changes
ALTO boxes can be measured in tenths of a millimeter or in 1200ths of an inch. In the hOCR file they are pixels at 300 dpi.
What is dropped
Styles, tags and pictures are not carried over. The result holds the text, its structure, the boxes and the confidence, and nothing about how the words were styled.
For other targets, see every ALTO conversion. For other sources, see every HOCR conversion.
ALTO and HOCR.What each format is.
The formats
ALTO XML
OCR output in the XML that libraries and newspaper archives use, with the position and confidence of every word on the page.
- Extensions
- .alto.xml
- MIME type
- application
/x -alto +xml - Kind
- Text and data
hOCR
OCR output as HTML with the position of every word on the page.
- Extensions
- .hocr
- MIME type
- text
/x -hocr - Kind
- Text and data
In your code.The same ALTO to HOCR conversion through the API, for your app or your agent.
$ cv convert report.alto.xml report.hocr$ cv convert report.alto.xml report.hocrQuestions.What people ask about ALTO to HOCR.
Yes. Each page, text block, line and word keeps its box, now measured in pixels at 300 dpi.
Yes. The confidence of each word is kept.
Boxes measured in tenths of a millimeter or 1200ths of an inch become pixels at 300 dpi.
No. Styles, tags and pictures are dropped.