Convert PFM to TXT

Turn PFM images into TXT. 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.The picture is read for text and written as a plain TXT file.

  1. What you get

    One TXT file with the text found in the PFM picture. It has no formatting at all.

    The PFM is read as a picture. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped.

  2. What it leaves behind

    Layout, tables and pictures are dropped. Only the text remains.

    A picture with no readable text fails with unsupported_elements.

  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 TXT.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 · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

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

terminal
$ cv convert photo.pfm photo.txt
$ cv convert photo.pfm photo.txt

Questions.What people ask about PFM to TXT.

01OF 04

No. Layout, tables and pictures are dropped, and only the text is kept.

The picture has no readable text. The conversion stops with this code in that case.

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

Set Language to the languages the text is in. Naming the right one matters most for Korean, Japanese and Chinese, and you can list several with commas, such as en,ko.

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