Convert PNG to TSV
Turn PNG 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 PNG files on the dialor turn it to pick what to do
Text from a PNG, as tab-separated values.The text in the image is read with OCR and written to one TSV file.
What you get
One TSV file with the text read from the PNG. TSV is tab-separated values, a plain text format that spreadsheet programs and scripts can read.
The PNG is a picture, so the text has to be recognized before it can be written out. That is what OCR does.
Naming the language
Set Language to the languages the text is in, so OCR knows which letters to expect. This matters most for Korean, Japanese and Chinese. To name several, separate them with commas, such as en,ko.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted. This means the PNG itself could not be read.To go the other way, use TSV to PNG.
PNG 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
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - 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 PNG to TSV conversion through the API, for your app or your agent.
$ cv convert photo.png photo.tsv$ cv convert photo.png photo.tsvQuestions.What people ask about PNG to TSV.
OCR reads the text in the image, and the result is written as one TSV file.
Choose the language the text in the image is in. Naming it matters most for Korean, Japanese and Chinese. For more than one, list them with commas, such as en,ko.
The file could not be parsed. The conversion stops with this code when the PNG cannot be read.
You get one file.