Convert JP2 to HOCR

Turn JP2 images 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 JP2 files on the dialor turn it to pick what to do

Text and word positions from a JP2 image.The result is one hOCR file with the position of every word on the page.

  1. What you get

    A JP2 image goes in, and one HOCR file comes out. hOCR is OCR output written as HTML, and it records where each word sits on the page.

    The text in the file is read from the picture by OCR. Use it when you need the words and their places, not only the plain text.

  2. Naming the language

    Set Language to tell OCR which letters to expect. This matters most for Korean, Japanese and Chinese. Separate several languages with commas, such as en,ko.

  3. When it stops

    The conversion stops with input_corrupted when the file could not be parsed. A JP2 file that cannot be read gives no HOCR output.

    For other conversions, see every JP2 conversion or every HOCR conversion.

JP2 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 · JP2

JPEG 2000

JPEG 2000, a wavelet image codec used in archives, cinema and medical imaging.

Extensions
.jp2 .j2k
MIME type
image/jp2
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 JP2 to HOCR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.jp2 photo.hocr
$ cv convert photo.jp2 photo.hocr

Questions.What people ask about JP2 to HOCR.

01OF 04

It is OCR output as HTML. It holds the text and the position of every word on the page.

The JP2 format covers files with the jp2 or j2k extension, so both are read as JPEG 2000 images.

Name the languages the text is in. Getting this right matters most for Korean, Japanese and Chinese.

Yes. Separate them with commas, such as en,ko.

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