Convert PFM to ALTO

Turn PFM images into ALTO. 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 read from a PFM image, as ALTO XML.The output is one ALTO XML file with the position and confidence of every word.

  1. What you get

    One ALTO XML file. ALTO is OCR output in the XML that libraries and newspaper archives use, with the position and confidence of every word on the page.

    The PFM is a floating-point image, so it is first shown as a picture and then read by OCR.

  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.

    Set Language to the languages the text is in, so OCR knows which letters to expect. Separate several with commas, such as fr,en.

  3. Language matters

    Without Language, the text is read as English. Letters such as é, ß and ł come out wrong, and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read.

    For more conversions, see every PFM conversion or every ALTO conversion.

PFM and ALTO.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 · ALTO

ALTO XML

OCR output in the XML that libraries and newspaper archives use, with the position and confidence of every word on the page.

Extensions
.alto.xml
MIME type
application/x-alto+xml
Kind
Text and data

In your code.The same PFM to ALTO conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.alto.xml
$ cv convert photo.pfm photo.alto.xml

Questions.What people ask about PFM to ALTO.

01OF 04

It contains the text OCR reads from the image. Each word comes with its position and confidence on the page.

Values from 0 to 1 are shown as black to white without a brightness curve. Values outside that range are clipped.

Without Language, the text is read as English, so letters such as é, ß and ł come out wrong. Set Language to the languages in the image.

Yes, when you set Language to match. Without it, scripts such as Cyrillic, Arabic, Thai, Korean or Chinese are not read.

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