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.

  1. 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.

  2. 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.

  3. 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.

  1. 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

From · JPG

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
To · HOCR

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.

terminal
$ cv convert photo.jpg photo.hocr
$ cv convert photo.jpg photo.hocr

Questions.What people ask about JPG to HOCR.

01OF 04

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.

More conversions.Other ways in and out of JPG and HOCR.