Back to Blog
Guides

Image to Text: OCR for Screenshots and Receipts

Screenshots, receipts and book pages become editable text. Covers OCR accuracy limits, grayscale vs binarize, and the mixed Chinese/English trap.

AArtifree Editorial Team9 min read
Image to Text: OCR for Screenshots and Receipts

OCR is not a photocopier

People expect OCR to behave like a photocopier: point it at a page and get the same text back. In practice, the engine is rarely the bottleneck. What you feed it matters more — whether the text is straight, whether strokes are sharp, whether the background is busy. The same receipt, cropped to the receipt area instead of the whole desk, can produce noticeably better output.

Artifree's image OCR tool runs Tesseract locally in the browser. It supports English, Simplified Chinese and Japanese, including mixed Chinese and English. What follows is the order I actually use: which images are worth scanning, what to fix before uploading, which switches to turn on, and the error rate you should expect.

What works, and what is a waste of time

Reasonable inputs:

  • Screenshots, long web captures, chat logs
  • Scans and page images exported from a PDF (convert with PDF to image first)
  • Printed books, menus, manuals, shipping labels, receipts
  • Text on white or solid backgrounds — IDs, cards, posters

Inputs that will disappoint you:

  • Handwriting, signatures, cursive
  • Stylized or outlined lettering, signs shot at a steep angle
  • Text smaller than about 15 pixels high in a wide shot
  • Complex tables: characters come out, cell structure does not
  • Traditional Chinese: the Simplified model loses a lot of recall on Traditional glyphs

One detail people miss: when a phone casts a shadow across paper, the edge lines blur first. Light the page from the side and keep your own shadow off it. That helps more than any post-processing switch.

Three fixes before uploading

Crop to the text

The engine searches the whole image for text regions, so a clean background reduces false positives. Keep only the receipt face, the body of the page, or the content area of a screenshot. The image cropper is enough for this. In most cases this step alone beats every preprocessing option.

Straighten it

Tesseract is sensitive to skew. Past roughly 5 degrees, lines start merging and you get paragraphs of scrambled order. Scans are usually square; phone photos often are not. Align the page with the table edge when shooting, or rotate while cropping.

Make sure the text is large enough

Recognition works on pixels. A practical rule: body text should be at least 20 pixels tall, and fine print or decimal points at least 30 pixels. A full A4 page shot from arm's length often gives you 10-pixel characters, and accuracy drops fast. Shoot in two halves, or get closer.

Grayscale and binarization: when to use them

Two preprocessing toggles, and turning both on by default usually makes things worse.

Grayscale converts color to gray. It helps with colored backgrounds, light text, and stamps overlapping text — a blue poster with white type, or an invoice with a patterned background. For a plain black-on-white screenshot, it changes almost nothing.

Binarization pushes the image to pure black and white with a threshold (128 by default, adjustable). It suits high-contrast, evenly lit scans: black text on white paper gets cleaner edges. Avoid it for photos. Reflections and shadow gradients get sliced by the threshold, strokes break, and recognition gets worse. Note that binarization already grayscales the image internally, so you do not need both toggles.

A sensible order: run the original once, run grayscale once, then try binarization with a small threshold adjustment if the source is a scan. Pick whichever output is most complete. Judge by the text you get, not by how clean the preview looks.

Choosing languages: where mixed text breaks

The tool offers English (eng), Simplified Chinese (chi_sim) and Japanese (jpn), and you can select several at once as a combined model.

With Chinese only, English words, model numbers, emails and URLs turn into lookalike characters. With English only, Chinese disappears entirely. For documents that mix Chinese with English product names or codes, select both Chinese and English so it runs chi_sim+eng. It is slower, and the first run downloads two language packs.

Only add Japanese when there is actual Japanese text. An extra language pack does not improve Chinese accuracy; it just slows recognition down.

A complete run: expense receipts

  1. Photograph the receipt with the paper filling the frame and no clutter around it.
  2. Crop to the four edges and check for tilt.
  3. Run the original first and check whether the amount, tax number and date line up.
  4. If the paper is gray or patterned, run grayscale once; for a scan, try binarization.
  5. Edit the result in the output box, focusing on amounts, tax rates and receipt codes.
  6. Copy into your expense sheet, or download the TXT for your records.

Numbers are the weak spot. OCR is inherently unsure about 0 versus O, 1 versus l, 5 versus S. Always review amounts and identifiers by hand before filing anything.

What accuracy to expect

InputTypical accuracyMain source of error
Screenshots and PDF page exportsAbove 95%Punctuation, spacing, line breaks
300 dpi scansAround 90%Table borders, stamps, headers
Phone photos of paper80–90%Shadows, skew, small type
Handwriting and stylized typeNot usableIrregular letterforms

Also remember that OCR returns a text stream, not a layout. Multi-column pages are stitched line by line, so reading order can break; tables lose their cells and come back as rows of text. If you need layout reconstruction, a general OCR tool is the wrong choice.

FAQ

Are images uploaded to a server?

No. Recognition runs in a local worker inside your browser, and files never leave the device; only the language model is downloaded on first use. For receipts, contracts and ID documents, that matters more than raw speed. Pair it with the photo privacy checklist before sharing anything.

Why is the first run so slow?

It loads the OCR core and language data — several megabytes, sometimes more, depending on your connection. Later runs in the same language are much faster. Large images also slow things down, so crop first.

Can it read a PDF directly?

No. Convert each page to PNG or JPG first; 150 dpi is enough, 300 dpi is safer.

Does it keep line breaks and paragraphs?

Only approximate line breaks. Paragraphs, indentation and columns are lost. Tidying the output in the result box is faster than retuning parameters.

Why are Chinese punctuation marks turned into English ones?

A known weak point of the Chinese model. Commas, full stops and quotes often need a find-and-replace pass. Doing it once in an editor beats fixing line by line.

Can I publish the output as-is?

As a draft, yes. As-is, no. Numbers, proper nouns and punctuation all need a proofread, especially amounts, model numbers and names.

When to use something else

If you are processing hundreds of PDF pages, need table structure, or require layout reconstruction and batch archiving, a general browser OCR will not carry you. Use a service with layout analysis. For copying text out of a screenshot, pulling a few fields from a receipt, or turning a book page into editable text, this is enough — and because nothing is uploaded, you can use it without thinking twice.

Want to try the features mentioned in this article?

Try Image OCR Now

Related Articles