Convert PFM to HOCR

Turn PFM images into HOCR. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PFM files on the dialor turn it to pick what to do

Text with positions from a PFM image.OCR reads the words in a PFM image and writes them to one hOCR file.

  1. What you get

    One hOCR file. It is HTML that holds the text found in the image and the position of every word on the page.

    PFM stores floating-point pixels, used for HDR and depth maps. Before the text is read, the values are shown as an ordinary picture.

  2. How values are shown

    Values from 0 to 1 are shown as black to white without a brightness curve. Values outside that range are clipped, so anything below 0 reads as black and anything above 1 reads as white.

    Detail in an HDR image that sits beyond that range is not available to the text reader.

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

    Separate several languages with commas, such as en,ko.

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

Portable FloatMap

Floating-point pixels in the PNM family, used for HDR and depth maps.

Extensions
.pfm
MIME type
image/x-portable-floatmap
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 PFM to HOCR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.hocr
$ cv convert photo.pfm photo.hocr

Questions.What people ask about PFM to HOCR.

01OF 04

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

Values outside the range of 0 to 1 are clipped. Anything above 1 is shown as white.

Yes. Set Language with the languages separated by commas, such as en,ko.

You get one file.

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