Thai OCR: Does Apple Vision Beat Tesseract?
Measured: Apple Vision and free Tesseract reading 60 computer-drawn Thai sign texts in one font at 6 sizes, 2026-12-05.
- Apple Vision: at least 53 of 60 exact at every size, down to 11 px.
- Tesseract: 53 of 60 at 40 px; 15 at 11 px, 39 at 96 px.
- Tone marks (่ ้): at most 4 edits per 55 reference marks at any size.
- With Tesseract: keep น 12 to 24 px tall in the image (CSS 18 to 40 px); check ง against จ.

รับซักรีด, a laundry sign, as both engines received it, from 96 px down to 11 px. The larger sizes are shown at real size and the smaller ones enlarged so the pixels are visible; the ink label is the height of this one text. Tesseract dropped the vowel ี at the largest size, returning รับซักรด, and turned the last letter ด into ต at the smallest, returning รับซักรีต.
What was measured
OCR, optical character recognition, turns a picture of text into text you can copy. This study gave two OCR engines the same 360 pictures of Thai: 60 texts, each drawn at 6 sizes.
- Apple Vision, the text recognition Apple gives app developers, run on a Mac (revision 3, recognition level accurate, language th-TH only, automatic language detection Off, language correction Off, compute device: CPU for the main stage).
- Tesseract, a free open-source OCR engine run from the command line or inside other programs (tesseract 5.5.3, with the Thai model the Homebrew package manager installs, reading each image as a single line, resolution declared as 72 dpi).
The texts are 60 short sign-style phrases written for this test by a language model and checked against a Thai word list, 20 each for shops and services, directions, and notices; 30 of them carry a tone mark and 30 carry none. Each was drawn as one black line on white in Noto Sans Thai, at CSS sizes of 96, 40, 24, 18, 14, 11 px. Each engine read every picture twice, in 2 passes, to check that its answer does not change.
A reading counts as right only when every character comes back exactly, tone marks included, after spaces are removed. Every error was then sorted as a consonant, vowel, tone-mark or other error by rules fixed before any image was read; the rules, the texts and the expectations were written down on 2026-12-05, before the first reading.
Which OCR reads Thai text correctly?
On these clean, computer-drawn images, Apple Vision spelled every text or nearly every text exactly from 96 px to 14 px, and 53 of 60 at 11 px, the smallest size tested. Tesseract did best at the middle sizes and fell away at both ends: 53 of 60 at 40 px, 39 at 14 px and 15 at 11 px. Part of its shortfall is built into its Thai model, as the note on ำ below explains.
53
of 60 texts Apple Vision still spelled exactly at 11 px, where the letter น is 8 px tall. Tesseract managed 15.

Exact spellings out of 60 at each size. Apple Vision stays between 53 and 60; Tesseract peaks at 40 px and drops at both ends. The ink height under each size is the median of the 60 texts.
The table gives each size two ways: the CSS font size, the size a web page asks for, and the height of the ink actually drawn in the image. Ink height is measured on the plain letter น and on each whole text, marks included, as the median with the smallest and largest of the 60 texts.
| CSS font size | Height of น in the image | Text height in the image, median (range) | Apple Vision, exact (of 60) | Tesseract, exact (of 60) | Tesseract, word-list switch off (exploratory) |
|---|---|---|---|---|---|
| 96 px | 55 px | 83 px (56 to 124) | 60 | 39 | 39 |
| 40 px | 24 px | 36 px (24 to 52) | 58 | 53 | 53 |
| 24 px | 15 px | 22 px (15 to 32) | 60 | 52 | 52 |
| 18 px | 12 px | 17 px (12 to 24) | 60 | 51 | 51 |
| 14 px | 10 px | 14 px (10 to 19) | 59 | 39 | 39 |
| 11 px | 8 px | 11 px (8 to 15) | 53 | 15 | 15 |
Paired on the same texts, the gap is widest at the small sizes. At 14 px, Apple Vision alone was right on 20 texts and Tesseract alone on none. Counted as shares of the texts, Apple Vision led by 33.3 points (percentage points); resampling the texts 10000 times puts the likely lead between 21.7 points and 45 points, a 95% bootstrap interval. At 24 px the lead was 13.3 points (5 points to 21.7 points), and at 11 px 63.3 points (50 points to 76.7 points).
At 40 px the two were close: Apple Vision led by 8.3 points, and the likely lead ran from 0 points to 16.7 points, so at that size this study cannot tell them apart.
Tesseract’s Thai model cannot write ำ, the vowel in น้ำ, water: in the model’s character set, ำ is absent. So the 3 texts that contain it could never be exact for Tesseract. It returned ำ in none of its 18 readings of them; Apple Vision returned it in 18 of 18. Thai can also store ำ as a small circle ํ followed by า, which looks the same on screen. Counting that as right adds a single text to Tesseract at every size (40 instead of 39 at 96 px) and nothing to Apple Vision.
How big does Thai text need to be for OCR?
To compare with your own image, zoom in and count how many pixels tall a plain letter like น is. That height is what the engine sees, and it is smaller than the CSS font size: at 14 px, น was 10 px tall in the image and the median text, marks included, 14 px from top to bottom; at 40 px, 24 px and 36 px. A high-density phone screen draws each CSS pixel with several screen pixels, so a screenshot of text styled at 14 px holds a taller น than these images did: compare letter heights, not font sizes.
- Apple Vision: no size here was too small. Its lowest count was 53 of 60, at 11 px, with น 8 px tall.
- Tesseract: steady at middle sizes, weak at small ones. Between 51 and 53 exact from 18 to 40 px (น 12 to 24 px tall), then 39 at 14 px and 15 at 11 px.
- Tesseract missed more texts at the largest size. At 96 px, with น 55 px tall, it spelled 39 exactly, as few as at 14 px. Several misses dropped a vowel above a letter: บริการตัดผม, haircut service, came back as บรการตัดผม, yet right at 40 px.
- What to aim for with Tesseract, on clean text in this font: น between 12 and 24 px tall in the image, which here meant CSS sizes from 18 to 40 px. This is not a minimum for photographs, and sizes between 40 and 96 px were not tested.
Interpretation
Tesseract got each image as drawn, with no enlarging or shrinking first. Rescaling the image before reading might help at both ends; this study did not test it. Two other things moved with the font size: the white margin around the text grew by the rule ceil(size_px/2) px of white margin on each side of the ink box, and every image was declared to Tesseract as 72 dpi, so large text was presented as large print. The study cannot separate either from text size, and why very large Thai trips Tesseract is not measured here.
These sizes are not minimum resolutions for photographs of signs. They hold for Noto Sans Thai Regular drawn black on white with no blur, from 96 px down to 11 px. A photo adds blur, angle, glare, noise and compression, and these images carry no such defects.
Does OCR get Thai tone marks right?
The 60 texts contain 55 tone marks: 22 mai ek (่) and 33 mai tho (้). They contain 520 consonants. At 96 px, Tesseract’s edit rate was 5.5% for tone marks and 2.5% for consonants. The corresponding rates were 7.3% and 10.4% at 11 px. Neither engine added a tone mark to a text that had none, in the 30 such texts at any size.
4
tone-mark edits by Tesseract at 11 px, for 55 tone marks in the reference texts. The edit rate was 7.3% for tone marks and 10.4% for consonants.
Each cell counts edits, a mark or consonant missing, added or swapped, with the share of all the tone marks (55) or consonants (520) in the 60 texts at that size.
| CSS font size | Tesseract, tone marks wrong | Tesseract, consonants wrong | Apple Vision, tone marks wrong | Apple Vision, consonants wrong |
|---|---|---|---|---|
| 96 px | 3 (5.5%) | 13 (2.5%) | 0 (0%) | 0 (0%) |
| 40 px | 2 (3.6%) | 4 (0.8%) | 1 (1.8%) | 0 (0%) |
| 24 px | 1 (1.8%) | 4 (0.8%) | 0 (0%) | 0 (0%) |
| 18 px | 0 (0%) | 5 (1%) | 0 (0%) | 0 (0%) |
| 14 px | 2 (3.6%) | 17 (3.3%) | 0 (0%) | 0 (0%) |
| 11 px | 4 (7.3%) | 54 (10.4%) | 2 (3.6%) | 8 (1.5%) |
Tesseract dropped 3 marks at 96 px, 1 at 14 px and 4 at 11 px, and dropped none from 40 to 18 px. At 40 px, both of its tone-mark edits were extra marks on น้ำ, the ำ it cannot write: ห้องน้ำอยู่ชั้นบน came back as ห้องน้้าอยู่ชั้นบน. At 96 px it dropped the mark from ช่อ in รับจัดช่อดอกไม้, returning รับจัดชอดอกไม้. Apple Vision dropped 1 mark at 40 px and 1 at 11 px, where it also wrote 1 wrong mark: ทางไปท่าเรือ, to the pier, came back as ทางไปทำเรือ, so ท่า (pier) became ทำ (do).
Mai tri (๊) and mai chattawa (๋) were not in the study texts, so this study does not show how either engine reads them. In an exploratory check on the made-up strings that carry them, Apple Vision got the mark wrong in 2 of 3 at 40 px (จิ๋ม became จิ่ม in จิ่มเสลาง่านเฮน) and in 1 of 3 at 14 px; Tesseract kept them at 40 px and missed 2 of 3 at 14 px. Where each tone mark sits and what it does is in the Thai tone marks.
Over all sizes, Apple Vision made 22 wrong, missing or extra characters, but 10 of them came from a single empty reading: at 11 px it returned nothing for ระวังสุนัข, beware of the dog. Apart from that it made 6 vowel errors, 2 swapped consonants, 2 dropped tone marks, 1 wrong tone mark and 1 other mark error. Tesseract made 170, among them 84 swapped consonants, its largest kind of error, 29 vowel errors, 25 characters that are not Thai at all and 11 extra consonants.
Which Thai letters does Tesseract confuse?
A few pairs of similar letters account for most of its 84 consonant swaps in Noto Sans Thai, and its consonant errors came mostly at the two smallest sizes: 54 consonant edits at 11 px and 17 at 14 px, against no more than 13 at any larger size.
- ง read as จ: 29 times, as in ขายขนมปัง, bread for sale, returned as ขายขนมปัจ.
- ท read as ก: 13 times.
- ล read as ส: 11 times, as in ลิฟต์อยู่ด้านขวา, lift on the right, returned as สิฟต์อยู่ด้านขวา.
- ด read as ต: 6 times.
- ก read as ค: 4 times.
29
of Tesseract’s 84 consonant swaps were ง read as จ, the most common swap in the study. Its consonant errors came mostly at the two smallest sizes, 54 at 11 px alone.

Each row shows a letter from the texts, the letter Tesseract returned in its place, and a strip of the study image it came from, enlarged.
Apple Vision swapped a consonant 2 times in the whole study, ต as ด and ท as ก, both in ประตูทิศเหนือ, north gate, at 11 px, returned as ประดูกิศเหนือ.
Extracting Thai text from an image: what to check
If you run a photo or screenshot of a sign through an OCR app, this is what the study supports, for clean renders of Noto Sans Thai, a loopless font:
- Check the consonants Tesseract swaps, above all in small text. When the output has จ, ก, ส, ต or ค, compare it with the sign: the sign may say ง, ท, ล, ด or ก. These pairs were measured on one loopless font and may differ for looped or bold sign lettering, which was not tested.
- Look for a missing vowel above a letter, as in บรการตัดผม for บริการตัดผม, even when the text is large.
- Check ำ by eye in Tesseract output. Its Thai model cannot write it: ห้องน้ำอยู่ชั้นบน came back as ห้องน้าอยู่ชั้นบน at 24 px and as ห้องน้้าอยู่ชั้นบน at 40 px.
- Check mai ek and mai tho. Each engine made at most 4 tone-mark edits per 55 reference marks at any size. There were far fewer tone marks than consonants in the texts.
You do not install Apple Vision yourself: apps on Apple devices can use it. Apple devices also offer Live Text, which Apple lists for Thai, but Live Text was not tested, and this study, which ran Apple Vision revision 3 with fixed settings, does not show that Live Text uses the same recognizer. Tesseract is free and runs from the command line or inside other programs.
What it does not support: any claim about blur, angle, low light, a phone camera or handwriting, since every image was a clean render between 96 px and 11 px, or about Google Lens, Google Translate’s camera or Typhoon OCR, which were not tested. Learning the shapes that separate ง from จ, and ด from ต and ก from ค, works with any tool, and the cues for where Thai words end help with OCR output that runs words together.
Exploratory checks: shifted text, word lists, made-up words
The study plan included these exploratory checks to see how image placement, word lists and unfamiliar strings affect the readings. At 14 px, 20 texts were drawn again with the text moved right by fractions of a pixel, and once with a wider margin.
Tesseract’s output changed for 12 of 20 texts under these shifts, and its right-or-wrong verdict flipped for 11. Apple Vision’s verdict flipped for 1 of 20: ห้ามนำอาหารเข้ามา gained an extra tone mark on นำ and came back as ห้ามน้ำอาหารเข้ามา, with น้ำ, water. At this size, which texts Tesseract misses depends on where the text falls on the pixel grid. The study did not test whether readers noticed the shifts.

รับซักรีด, a laundry sign, at 14 px, moved right by fractions of a pixel and drawn once with a wider margin. Tesseract read it right at the normal position (รับซักรีด), read ซ as ช at every shift (รับชักรีด), and read it right again with the wider margin (รับซักรีด).
- Word-list switch: no change seen. Switching off Tesseract’s built-in Thai word lists left the output byte for byte the same on 960 of 960 readings. The study did not show that the switch acts on this Thai model at all, so this says nothing about whether word lists help.
- Made-up strings: fewer exact at the larger size, mixed at the smaller. On 20 random strings of real Thai syllables at 40 px, Apple Vision was exact on 10 of 20 (50%) against 58 of 60 (96.7%) for the real texts, and Tesseract on 12 of 20 (60%) against 53 of 60 (88.3%). At 14 px Apple Vision was exact on 15 of 20 (75%), more than at 40 px, against 59 of 60 for the real texts; Tesseract on 6 of 20 (30%) against 39 of 60.
- A blank white image came back empty from Apple Vision; Tesseract returned the character 0, so a lone 0 in its output may be noise rather than text.
Interpretation
The made-up strings also carry letters and marks no study text has, such as ๊ and ๋, so this control cannot tell whether word knowledge or the rarer shapes caused the drop at 40 px, and Apple Vision’s better result on them at 14 px does not fit a simple word-knowledge story. A name, a brand or a rare word on a sign may come back worse than these texts did; that is a possibility, not a measurement.
What did not go as expected
The study predicted that both engines would spell fewer texts exactly at 14 px than at 40 px. For Tesseract that was confirmed: 39 against 53. For Apple Vision the expectation was wrong (refuted): 59 at 14 px against 58 at 40 px.
The study used 96 px as an easy comparison and specified no prediction for it.Tesseract spelled fewer texts exactly there than at the middle sizes: 39 of 60. Every expectation was written down on 2026-12-05 before any image was read, so the predictions can be compared with the results:
- Both engines strong at the middle size. At least 45 of 60 each at 40 px: confirmed, with Apple Vision 58 and Tesseract 53.
- Apple Vision ahead at a small size. More exact at 14 px, and more texts only it got right: confirmed, 59 against 39, with 20 texts only Apple Vision got right and none only Tesseract did.
- Both worse at the small size than at the middle one. Tesseract: confirmed; Apple Vision: refuted.
- Tesseract poor at the smallest size. Under 30 at 11 px: confirmed, with 15.
- Made-up words harder. A lower exact share at 40 px for at least one engine: confirmed, for both.
- Word lists no help to Tesseract. No more exact with the switch off at 40 px: confirmed, 53 both ways, though the switch was not shown to act.
- Stable output. No change between the two passes: confirmed, across 1440 repeated readings. The same image gave the same text; a shift by a fraction of a pixel did not (see the exploratory checks).
Interpretation
Apple Vision’s refuted expectation rests on a gap of a single text, so it says that Apple Vision did not get worse between these two sizes, not that smaller text is easier for it.
How was this checked?
- Written down first. The question, the texts, the scoring rules and the expectations were frozen on 2026-12-05, after an independent review of the plan and before any image was read. Later clarifications are published with their times. The last amendment, on how the bootstrap draws its samples, came after a re-run’s counts had been seen; it and a few summary choices made after the readings, listed in the measurement report, change no number on this page.
- Run twice, in different orders. Every image was read in a shuffled order and then in reverse, restarting the engine for every image: no output changed across 1440 repeated readings, and none of the 2880 readings ended in an error.
- Re-run on the same Mac. A second run by a separate session drew the images again from the written method: 360 of 360 came out byte for byte the same, and its readings matched on 1080 of 1080. Both runs used the same Mac. Repeatability on other machines was not tested.
- Scored independently. Another session wrote its own scoring from the rules alone and re-scored all 2880 readings without seeing the study’s totals: no reading disagreed, and every number in the results table matched (72 of 72).
- Language and font checks. Before the study, switching either engine to English changed what it read on Thai test lines, and every text was checked to be drawn in the one font file named above, with no other font filling in.
What this does not show
- Not photos, phones or handwriting. Every image is a clean black-on-white render of one font, Noto Sans Thai Regular, by one browser, Chromium 147.0.7727.15, on one Mac.
- One style of Thai lettering. Noto Sans Thai is a modern loopless design. Traditional looped Thai fonts, with a small circle at the start of most letters, bold text, colour, backgrounds and several lines of text were not tested, and the look-alike pairs above may hold only for loopless type.
- Size moved with margin and declared resolution. The white margin followed the rule ceil(size_px/2) px of white margin on each side of the ink box, and every image was declared to Tesseract as 72 dpi; the study cannot separate either from text size.
- The texts were written by a language model, not a native reader. They were checked in code and against a public Thai word list only. Texts share words such as ห้าม and ทาง, so a single misread word can fail several texts, though at 11 px Tesseract’s 52 wrong words were 45 different words. The bootstrap intervals treat the texts as independent, which makes them narrower than shared words justify.
- Totals are weighted by the design. Counts over all sizes add the 6 sizes with equal weight, over texts chosen as 30 with and 30 without a tone mark; they are not rates for real signs.
- One Tesseract model. The Thai model Homebrew installs, version 4.00.00alpha:tha:synth20170629, whose character set lacks ำ. Other Thai models were not tried, and no image was enlarged or cleaned up before reading.
- Two engines, one Apple Vision setup. Google Lens, Google Translate’s camera, Typhoon OCR and cloud OCR services were not tested; the texts, the expected spellings and the drawing method are public, so any of them can be run against the same texts. Apple Vision ran on a Mac’s CPU with language correction off; apps that keep it on, or run the recognizer on other hardware such as the Neural Engine, may read differently.
The data and the method
Every reading is a row in dataset.csv, free to reuse (public domain, CC0), with the texts, the summary and the tool versions in dataset.json. The plan written before the test and the list of every number in this article with its source sit beside them, and the dataset page lists every file. The study ran on 2026-12-05. How Noto Sans Thai places its tone marks, against other Thai fonts, is in the Google Fonts Thai census, and more measured studies are on the Phayan blog.
Frequently asked questions
What is the best OCR for Thai text?
In Phayan’s test of computer-rendered Noto Sans Thai signs, Apple Vision was more accurate overall. It spelled at least 53 of 60 sign texts exactly at every size, down to 11 px, where the letter น is 8 px tall. Tesseract did best at 40 px, with 53 exact, and fell to 15 at 11 px. Apple Vision is the text recognition Apple gives app developers; Apple devices also offer Live Text, which Apple lists for Thai, but Live Text was not tested. Google Lens and Typhoon OCR were not tested either, and these sizes are not minimums for photos of signs.
Can Tesseract read Thai?
Yes, with its Thai model. Tesseract is a free engine run from the command line or inside other programs, and in Phayan’s study it spelled 53 of 60 clean texts exactly at 40 px. Its Thai model has no character for ำ, so it never spelled น้ำ, water, correctly. At small sizes its usual mistake is a look-alike consonant, above all ง read as จ, which made up 29 of its 84 consonant swaps; its consonant errors came mostly at 11 and 14 px. Phayan’s lessons teach the shapes that tell those letters apart.
How do I extract Thai text from an image?
Run the image through an OCR tool, then check the result by eye. Apple devices offer Live Text, which Apple lists for Thai; Phayan’s study tested Apple Vision, the recognizer Apple gives app developers, not Live Text itself. Tesseract is free and runs from the command line. In the output, check the consonants Tesseract swaps (ง read as จ, ท as ก, ล as ส), any vowel above a letter, and ำ, which Tesseract’s Thai model cannot write. On clean text in one font, Tesseract read best with the letter น 12 to 24 px tall in the image.
Does OCR read Thai tone marks correctly?
The study texts contained two kinds of tone mark, mai ek and mai tho. At most 4 tone-mark edits occurred per 55 reference marks at any size for either engine. At 11 px, Tesseract’s edit rate was 7.3% for tone marks and 10.4% for consonants. Neither engine added a tone mark to a text without one. Mai tri and mai chattawa were not in the study texts; Apple Vision misread them in 2 of the made-up strings that carry them at 40 px. Tesseract never returned ำ, so check น้ำ by eye. Phayan’s guide to the Thai tone marks shows where each one sits.
Can I use OCR to learn to read Thai signs?
As a way to copy a sign into a dictionary, yes, but check the consonants it swaps and any vowel above a letter before trusting the output. OCR does not teach the reading itself: Anki, a flashcard program, lets a learner build cards from photographed words, and ThaiPod101 explains words and phrases in its audio and video lessons. Phayan teaches the letters and tone rules so a learner can read the sign directly.