Convert XPM to HOCR
Turn XPM 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 XPM files on the dialor turn it to pick what to do
Text read from an XPM image.The words in the picture come back as hOCR, with the position of each word.
What you get
One HOCR file. hOCR is OCR output written as HTML, and it records the position of every word on the page.
The source is an XPM image, a format that stores pictures as C source. The conversion reads the text in that picture and writes it into the HOCR file.
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 languages, separate them with commas, such as en,ko.
More conversions
See every XPM conversion for other things you can make from an XPM file. See every HOCR conversion for other ways to produce this format.
XPM 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
X PixMap
X PixMap, images as C source.
- Extensions
- .xpm
- MIME type
- image
/x -xpixmap - 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 XPM to HOCR conversion through the API, for your app or your agent.
$ cv convert photo.xpm photo.hocr$ cv convert photo.xpm photo.hocrQuestions.What people ask about XPM to HOCR.
It holds the text found in the image as HTML. Each word comes with its position on the page.
Yes. The conversion produces one HOCR file.
Yes. Set Language to several languages separated by commas, such as en,ko.
It matters most for Korean, Japanese and Chinese. Name the language so OCR knows which letters to expect.