JPG to text: Tesseract reads a scan, not a phone photo
31.9%
of words Tesseract found on made-up phone photos
From scans of the same pages: 96.0%.
Read your JPGs: $0.006 an image
Five readers, four kinds of JPG
- Scans: 10 book pages, 1920 px wide, 1,955 words.
- Phone photos: the same pages on a drawn desk, tilted, shaded and blurred. Made up, not real shots.
- Screenshots: articles, serif text, small labels, chat and spreadsheets at 1x, JPEG quality 75, 1,218 words.
- Stored sideways: the phone photos with their pixels on their side and a tag that says which way is up, as many phones store a portrait shot.
Word counts for each reader
| Reader | Scans | Photos | Screenshots | Sideways |
|---|---|---|---|---|
| Tesseract | 1,877 | 623 | 967 | 11 |
| Apple Vision | 1,932 | 1,925 | 1,138 | 1,926 |
| RapidOCR | 1,895 | 1,892 | 1,218 | 1,893 |
| EasyOCR | 1,606 | 789 | 968 | 2 |
| Our Actor | 1,880 | 1,829 | 1,173 | 1,760 |
True words found in order, out of 1,955 (screenshots: 1,218).
Sideways phone photos broke two readers
A phone can store a portrait photo on its side, plus an EXIF tag that says how to turn it. A viewer shows it upright, so it looks fine.
| Reader | With the tag |
|---|---|
| Tesseract | Read the stored pixels, sideways. 3 of 10 files came back empty. |
| Apple Vision | Read it upright |
| RapidOCR | Turned it upright first |
| EasyOCR | Crashed on 9 of 10 files |
| Our Actor | Turned it upright first |
EasyOCR finds text on the sideways pixels but reads the upright ones, so its boxes miss.
Tesseract fix: turn the photo first
With ImageMagick 7, apply the tag, then read:
magick photo.jpg -auto-orient fixed.jpg
tesseract fixed.jpg out
As printed, on all 10 sideways photos: 665 words found, not 11.
That only brings back about its upright score. On half the upright photos, Tesseract found 1 word or none.
RapidOCR: free, and fine with photos
RapidOCR is free and runs on your computer. It read phone photos, sideways ones and screenshots well. With its defaults:
from rapidocr import RapidOCR
engine = RapidOCR()
result = engine("photo.jpg")
print("\n".join(result.txts or []))
As printed: 167 of 172 words on a sideways photo, and every word of a screenshot.
On a Mac, Apple Vision, the text reader built into macOS, read scans and photos best. I called it from a short Swift script. Swift code, and Apple's newer APIs: Swift OCR on macOS, tested.
JPEG quality: text held up, tables did not
| Saved as | KB | Tesseract | Apple Vision | Our Actor |
|---|---|---|---|---|
| PNG | 56.8 | 79.5% | 95.1% | 97.0% |
| JPEG 95 | 81.2 | 79.5% | 93.3% | 92.4% |
| JPEG 75 | 44.2 | 79.4% | 93.4% | 96.3% |
| JPEG 50 | 32.3 | 78.2% | 93.6% | 95.6% |
| JPEG 30 | 25.1 | 79.1% | 92.3% | 91.6% |
- Text: on 8 screenshots without a table, Apple Vision stayed within 0.3 points from PNG to JPEG 30.
- Our Actor stayed within 2.6 points, and Tesseract lost 1.4 at JPEG 30.
- Tables: the 2 spreadsheet shots swung most. Our Actor read every word of both as PNG.
- At JPEG 30 it found 95 of 154 words in order.
Our Actor on the same JPGs
PDF OCR to Markdown, our Apify Actor, takes PNG, JPEG, WEBP, TIFF and HEIC.
- It kept the 2 spreadsheet screenshots in rows. Tesseract and Apple Vision read them column by column.
- But on one sheet it dropped the Qty numbers from 9 of 12 rows. RapidOCR alone read both sheets in full, in order.
- One tilted photo came out with half lines out of order in the sideways set: 91 words in order, against 168 upright.
- It turned the photo fine: the two files differ only by a second JPEG save. In any order it found 165 and 168 of 172 words.
- Images and scanned pages: $0.006 each, plus $0.00005 a run at 1 GB.
What I did not test
- Real phone shots, which add sharpening and HDR, and HEIC files.
- More files. Each kind has 10, so one file can move a number by several points. Our Actor's drop from 93.6% to 90.0% on sideways photos is one photo.
- Words in any order. The score counts words in order, so a table read column by column, or a turned page with mixed lines, loses points. EasyOCR found 79.1% of photo words in any order, 40.4% in order.
- Live Text in Photos or Preview. I tested the Vision call, not those apps.
- Dark mode, Windows text, other languages, handwriting and receipts.
- Speed: other jobs kept the Mac busy.
How I tested it
- Scans: 10 proofread book pages from Wikisource, 1920 px wide JPGs, 1,955 words.
- Phone photos: each page drawn on a desk, turned up to 12 degrees, with perspective, shadow, blur and noise, saved as JPEG 88.
- Stored sideways: each photo turned a quarter turn and saved again, as JPEG 95, with EXIF Orientation 6. exiftool reads it as Rotate 90 CW.
- Screenshots: 10 scenes (articles, serif text, small labels, chat and spreadsheets) drawn in headless Chromium at 1x, saved by Pillow.
- Score: true words found in order, against the known text. One thread where the reader has a setting.
- Readers: Tesseract 5.5.4 command line with English tessdata_fast and its defaults; Apple Vision VNRecognizeTextRequest, accurate; RapidOCR 3.10.0 defaults; EasyOCR 1.7.2, English, on the CPU.
- The Actor: its own code at commit 5dcdaa5f (build 0.1.125), run on this Mac with text output and the second reader on (the default).
- The fix: ImageMagick 7.1.2-11. macOS 26.6 (arm64), Python 3.14.7 (RapidOCR and the Actor: 3.13.11).
- Scripts and results stay in our private repo, in research/bench/jpg-to-text-2026-11-23/.
Sources
- ImageMagick: -auto-orient
- RapidOCR and EasyOCR on GitHub
- Apple: VNRecognizeTextRequest
- Tesseract: improving the quality of the output
- Book pages: The Boy Scouts of the Air at Cape Peril and A Warning to the Curious, Wikisource.
- We make the Apify Actor, and none of the other tools here.
Questions people ask
How do I convert a JPG to text for free?
For a scan, Tesseract works: tesseract scan.jpg out found 197 of 202 words on a book page. For a phone photo, use RapidOCR, or Apple Vision on a Mac. On our made-up phone photos they found 96.8% and 98.5% of words, Tesseract 31.9%.
Why is my OCR text empty or junk on a phone photo?
The phone may store the photo sideways with an EXIF tag to turn it, and Tesseract ignores the tag: 11 of 1,955 words. Run magick photo.jpg -auto-orient fixed.jpg first. That fixes only the turn: Tesseract found 34.0%. RapidOCR and Apple Vision needed no fix.
Does JPEG quality affect OCR of screenshots?
A little for text, more for tables. On 8 screenshots without a table, the 3 readers tested stayed within 3 points from PNG to quality 30. On 2 spreadsheet shots, our Actor found 154 of 154 words in order as PNG, 95 at quality 30.
Which JPG to text converter is most accurate?
In this test, Apple Vision on a Mac: 98.8% of words on scans and 98.5% on made-up phone photos. On screenshots, RapidOCR found every word. Both are free.
Two ways to skip the work
Run it yourself. Our Apify Actor turns scanned PDFs and images into Markdown, tables included.
Or send us the scan. Tack, our AI, does the job for $29, up to 50 pages. First page free.
Related guides
- AI OCR tested: 2 free AI models vs classic OCR on 40 images (2026)
- Extract text from an image in Python: 6 OCR libraries tested (2026)
- OCR a phone photo of a document: Tesseract read 3%
- JPG to searchable PDF, free: 5 ways tested on a Mac
- Screenshot OCR, tested: Tesseract, Apple Vision and RapidOCR on 32 screenshots
- RapidOCR in Python: tested vs Tesseract and PaddleOCR
- Tesseract orientation detection and auto-rotate in Python