Convert PNM to TSV
Turn PNM images into TSV. The text read by OCR as Tesseract's table of words, one row per word with its box, line and confidence, 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, in a TSV file.The text in the picture is read with OCR and written as tab-separated values.
What you get
One TSV file from your PNM image. PNM covers PBM, PGM and PPM files, the simplest raster formats, and the result is a text file in tab-separated form.
The text is found by OCR, so the picture is read for letters rather than copied as pixels.
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.
When it stops
A file that cannot be parsed stops the conversion with
input_corrupted. This happens when the PNM data is not readable as an image.
PNM and TSV.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
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
Tab-Separated Values
Tab-separated values.
- Extensions
- .tsv .tab
- MIME type
- text
/tab -separated -values - Kind
- Text and data
In your code.The same PNM to TSV conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.tsv$ cv convert photo.pnm photo.tsvQuestions.What people ask about PNM to TSV.
PNM covers PBM, PGM and PPM images. Files with the extensions pnm, ppm, pgm and pbm are the portable anymap family.
Set Language to the language of the text. It matters most for these three. For a mix, list them with commas, such as en,ko.
The file could not be parsed. The conversion stops there and gives no TSV.
You get one TSV file. If you later need to join TSV files, you can merge TSV.