Convert PNG to HOCR
Turn PNG 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 PNG files on the dialor turn it to pick what to do
Text from a PNG, word by word.The output is one hOCR file with the position of every word on the page.
What you get
One hOCR file. hOCR is OCR output written as HTML, and it records where each word sits on the page as well as what the word says.
The PNG is read as an image, so the text in it is recognized and written out. Screenshots and graphics with sharp edges are typical inputs.
Setting the language
Set Language to the languages the text is in, so OCR knows which letters to expect. It matters most for Korean, Japanese and Chinese. To name several, separate them with commas, such as en,ko.
When it stops
If the PNG cannot be parsed, the conversion stops with
input_corrupted. The file itself is damaged or is not a readable PNG.For other image changes, see resize PNG or every PNG conversion.
PNG 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
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - 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 PNG to HOCR conversion through the API, for your app or your agent.
$ cv convert photo.png photo.hocr$ cv convert photo.png photo.hocrQuestions.What people ask about PNG to HOCR.
It is OCR output written as HTML. It holds the text and the position of every word on the page.
Set Language to the right language. Naming it matters most for these three. You can list several, such as en,ko.
You get one file.
The file could not be parsed. The conversion stops with this code when the PNG cannot be read.