Convert PNM to ALTO

Turn PNM images into ALTO. The text read by OCR as ALTO XML, the format libraries use for digitized pages, with the box of every block, 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 PNM files on the dialor turn it to pick what to do

Text from a PNM image, as ALTO XML.OCR reads the words in the image and writes them with their position and confidence.

  1. What you get

    One ALTO XML file for the image. ALTO is the XML that libraries and newspaper archives use for OCR output, and it records the position and confidence of every word on the page.

    The input can be a PBM, PGM or PPM image, the portable anymap formats.

  2. Setting the language

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

    Without it 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.

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

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
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 PNM to ALTO conversion through the API, for your app or your agent.

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

Questions.What people ask about PNM to ALTO.

01OF 04

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

PBM, PGM and PPM images, the formats that carry the pnm, ppm, pgm and pbm extensions.

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

Without Language, scripts such as Cyrillic, Arabic, Thai, Korean or Chinese are not read. Language is the option that tells OCR which languages the text is in.

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