Convert JPG to HOCR
Turn JPG photos into HOCR. The text read by OCR as hOCR, HTML with the box of every page area, line and word and how sure the reader is of each word, in English unless language lists others.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JPG files on the dialor turn it to pick what to do
Text and word positions from a JPG.The photo goes through OCR and comes back as one hOCR file.
What you get
One HOCR file. It holds the text found in the JPG as HTML, with the position of every word on the page.
Use it when you need to know where each word sits in the picture, not only what the words say.
Setting the language
Set Language to the languages the text is in, so OCR knows which letters to expect. Naming the right language matters most for Korean, Japanese and Chinese.
To name several, separate them with commas, such as en,ko.
When it stops
A JPG that cannot be parsed stops the conversion with
input_corrupted. The file needs to be a readable JPG before OCR can start.If you want a different result from the same picture, see every JPG conversion.
JPG and HOCR.What each format is, and the options this conversion takes.
- 01 · language
Language
The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
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 JPG to HOCR conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.hocr$ cv convert photo.jpg photo.hocrQuestions.What people ask about JPG to HOCR.
It is the OCR text as HTML. Each word comes with its position on the page.
Yes. Set Language to several languages separated by commas, such as en,ko.
Korean, Japanese and Chinese. Naming the right language matters most for these.
The file could not be parsed. The conversion stops with this code when the JPG cannot be read.