Elamur Research

Zero-shot OCR Accuracy of Low-Resourced Languages: A Comparative Analysis on Sinhala and Tamil

Paper · 2025 · Nevidu Jayatilleke and Nisansa de Silva

Summary

A transcription can preserve almost every letter on a printed line and still get enough words wrong to make searching the text difficult. Nevidu Jayatilleke and Nisansa de Silva investigate that gap using optical character recognition, or OCR, on Sinhala and Tamil. Both are low-resource languages with rounded scripts, and comparable public test material is scarce. The authors compare six OCR engines as a user might encounter them, with no additional fine-tuning for the study. Four process both languages. Subasa OCR contributes results for Sinhala alone, and EasyOCR contributes results for Tamil alone.

The test uses images made from known strings, so each engine’s transcription can be checked against the text used to make its image. The authors adopt a published Sinhala collection containing 6,969 image–text pairs. To construct a Tamil counterpart, they filter subtitle text, randomly draw 7,000 eligible lines and distribute them across six typefaces for rendering. They release the resulting Tamil collection publicly. The evaluation uses five measures that capture different kinds of agreement, from the edits required to repair individual characters or words to the extent that strings, individual words and sequences of words match.

Surya ranks first on every measure for Sinhala, including a word error rate of 2.61%. Document AI leads throughout the Tamil comparison, where its character error rate is 0.78% and its word error rate is 11.98%. Cloud Vision API trails Document AI closely on Tamil. Among the open-source Tamil entries, EasyOCR does best on word error and the word-overlap measures, while Tesseract does best on character error and normalised string similarity. On Sinhala, the standard Tesseract 5.5.0 release scores ahead of Subasa OCR across the measures. Subasa was previously adapted for Sinhala from Tesseract 4.0.

The Tamil winner’s scores illustrate how a good string-level match can coexist with weaker agreement about whole words. The authors suggest that word formation and spacing contribute to the gap. Their character-level examination also points to errors involving particular letters and dependent marks in each script. The findings establish how the engines compare on clean, rendered print, where the intended text is known and the background is plain. Photographs and scans can add blur, uneven lighting, rotation and damaged strokes, so their accuracy remains a separate empirical question.

Deep dive: Zero-shot OCR Accuracy of Low-Resourced Languages: A Comparative Analysis on Sinhala and Tamil

This zero-shot OCR benchmark compares how well existing engines read printed Sinhala and Tamil and explains why character and word scores can diverge. · about 33 minutes to read

The problem and its context

A visual record and a usable transcript

A scanned form preserves the appearance of the writing. A program that needs to retrieve a name or find a phrase needs the writing as a sequence of characters. OCR supplies that sequence. The paper introduces the task through uses such as processing receipts, invoices and passports. It also traces OCR to assistive uses, where a machine needs to recover written text before passing it to a system that reads it aloud. In each case, the transcription becomes input to another operation. The consequences of an error depend on what that operation needs to recover.

Consider a word that an engine renders with the right letters but with a gap in the middle. A person looking at the result may join the pieces immediately. A search for the intact word could miss it. Conversely, a transcript can contain a wrong mark in one word while preserving the boundaries and order of the surrounding words. The two failures give a sense of why the paper asks about several levels of agreement. The amount of visible writing the engine recovers and the extent to which it preserves complete words are related properties of the output.

The authors describe OCR as a chain of tasks. An image is acquired and may be cleaned up before recognition. Binarisation, for instance, attempts to separate writing from its background by representing the image in contrasting values. Layout analysis determines which areas contain different kinds of material. Segmentation breaks writing into units such as lines, words or characters. A recognition procedure uses features of the image to identify the text, and post-processing can use linguistic information to make corrections. The individual engines can implement these tasks differently. The description gives a way to see where uncertainty can enter before a final string is returned.

An error can arise at several points along that chain. A recogniser could correctly identify shapes inside a region while omitting writing that the detector left outside it. A system could find the complete line and then assign a shape to the wrong character. Other decisions affect where spaces appear or how recognised material is ordered. The benchmark compares the transcriptions at the end of the chain. That is the result a user receives, even when the system exposes only an image input and a text response.

Why the two scripts belong in the same investigation

The paper contrasts the long history of printed OCR research for Latin-derived writing with the continuing difficulties it identifies for South Asian rounded scripts. It gives English and French as examples of languages with much more research behind their OCR systems. The authors distinguish the resources available for a language from the number of people who speak it. Their cited estimates place Sinhala at 16 million first-language speakers and Tamil at around 79 million. In a classification of language-technology resources that they use, Sinhala is in Category 02 and Tamil is in Category 03, with Sinhala treated as having fewer resources.

The languages have different linguistic histories. The paper describes Sinhala as Indo-European and Tamil as Dravidian. Their writing systems both descend from Brahmi and share a tendency toward rounded forms, illustrated side by side in the paper. For recognition, there is a further distinction between a shape in the image and the characters used to represent it in text. The authors describe both scripts as abugidas. In such a script a written form can combine a base letter with a dependent mark. A change that occupies a small part of the image can therefore alter the recorded text of the word.

The resemblance gives the authors a reason to examine the languages together. The differences give them a reason to report the results separately. A service may accept images in either language, yet the presence of language support says little about how reliably it recovers marks or preserves word boundaries. A specialised system may do a different job again. By giving the engines within each language the same test material, the authors can compare the quality of the available implementations without needing a common account of their internals.

Access to data is part of the problem. A collection of written text can supply possible transcriptions, but OCR evaluation requires images paired with those transcriptions. Real documents bring layout, paper and acquisition conditions into the test. Producing reliable references for them is a separate task. The authors found a usable synthetic collection for Sinhala and built one for Tamil. Starting from a known string let them create an image whose intended transcription was already available. This design addresses a shortage of comparable test material while focusing the recognition task on rendered print.

Earlier Sinhala work tackled different stages

The Sinhala work by Anuradha and colleagues started with Tesseract 4.0 and put it inside an application that also handled input, storage and post-processing. Its recogniser used a long short-term memory network, abbreviated LSTM, to process sequences. The Sinhala-specific application could apply linguistic rules to its output. The paper describes this as a response to cases in which the recognition stage sometimes failed on particular characters. Varying font and size in the evaluation exposed the system to more than one printed appearance.

The related development behind Subasa OCR also drew on the UCSC 10M Sinhala corpus and used training material with variation in font and image quality. Earlier evaluations described in the paper included material from old books, newspapers and contemporary books at differing resolutions. That work treated properties of the source image as something worth examining in their own right. The present study uses the accessible Subasa service as a finished system. Its previous work on Sinhala is part of what the service brings to the comparison.

Maduranga and Jayalal investigated printed characters in multiple styles at a smaller visual scale. They prepared character images, reduced noise and extracted features from different portions of each image. Their approach divided 50x50px character images into 9 zones, each with 12 pieces, to build a 108-signal representation. A classifier was trained using line features from an 850-character database drawn mainly from the Iskoola Pota typeface. That setup asks which character a prepared image represents. An OCR engine taking a line image also has to decide how shapes in the line belong together and how to express them as a sequence.

The paper also discusses a comparison by Velayuthan and Ambegoda that considered several existing engines for document digitisation. Its stated scope covered Sinhala and Tamil, while the reported language results described by Jayatilleke and de Silva concern synthetic Sinhala and English documents from FUNSD. The comparison considered computational demands and power use alongside error rates. The Sinhala examples and the English forms came from different image conditions, a distinction the present authors treat as important when reading scores across languages. Their own decision to use synthetic print for both scripts gives the two tests a broad common setting.

Earlier Tamil work used both targeted training and synthetic data

Liyanage and colleagues built a Tamil recognition system around Tesseract by defining a 169-character OCR inventory and preparing training examples from selected words. They varied fonts and sizes during training and compared the resulting recogniser with Tesseract’s existing Tamil module. Their test comprised 20 scans from old Tamil books. The study brought together an explicit choice about what visual forms to teach the recogniser and a test in which forms were encountered on actual scanned pages. The reference point was the standard Tamil component of the engine they had adapted.

Nayana, another approach discussed by the authors, used synthetic documents to adapt GOT for languages including Tamil. Its data pipeline translated English source documents into Tamil and retained their layout. The training procedure then sought to align visual and textual information, using low-rank adaptation to constrain the parameter updates. Synthetic material in that work supplied examples from which a recogniser could learn. In the present comparison, the Tamil rendering pipeline supplies images on which already available engines can be judged. LoRA

These earlier investigations apply visual preparation, recogniser training and linguistic correction at different points. They also make clear why the test material needs to match the question. A set of isolated characters gives access to recognition of individual shapes. Scans of books put those shapes in the image conditions of older documents. Layout-preserving synthetic documents allow the relationship between placement and content to be retained. Jayatilleke and de Silva choose a simpler test object, a rendered text image with a reference string, for comparing complete OCR engines on printed Sinhala and Tamil.

The method, step by step

Start from a reference and ask the engine to recover it

In each test pair, the engine receives an image and the evaluator has the corresponding text. The output is the engine’s attempt to recover that text. A comparison between the returned string and its reference can count edits, measure similarity or look for matched stretches of words. The direction of construction matters. When a line is rendered from text, the benchmark already has the string for scoring. It can change the line’s appearance through typography while retaining a known reference.

The authors call the evaluation zero-shot because they run the selected engines in their available form. The study includes systems that were previously trained for many languages and a service that was previously adapted for Sinhala. Their existing training remains part of each system’s capabilities. The authors’ own data work consists of choosing or constructing evaluation pairs, preparing the language-specific text and collecting transcriptions. For an engine that supports both languages, the procedure yields a separate set of transcriptions for each collection.

Building the test and comparing returned transcripts

The steps in order.

Building the test and comparing returned transcriptsStep 1: Select existing Sinhala image and text pairs1. Select existing Sinhala image and text pairsStep 2: Filter Tamil subtitles and sample eligible lines2. Filter Tamil subtitles and sample eligible linesStep 3: Distribute Tamil lines across chosen typefaces3. Distribute Tamil lines across chosen typefacesStep 4: Render Tamil images and retain their references4. Render Tamil images and retain their referencesStep 5: Submit images to engines that support each script5. Submit images to engines that support each scriptStep 6: Compare returned strings with the prepared references6. Compare returned strings with the prepared referencesStep 7: Tally character errors for each language’s leader7. Tally character errors for each language’s leader

Adopt the published Sinhala pairs

The Sinhala collection is Ravihara’s sinhala synthetic ocr-large. The paper describes 6,969 pairs with images made using five font families. Noto Sans Sinhala and Noto Serif Sinhala are part of the selection, along with Gemunu Libre. Yaldevi and Abhaya Libre complete the set. Each font can give the same characters a different visual appearance. Using a mixture makes the overall result a score across the styles in the collection.

The authors also describe removing non-Sinhala characters from the Sinhala texts during post-processing. The objective was to concentrate the comparison on the language under investigation. The distinction between an image and a reference is useful here. Rendering creates the visible input, whereas filtering the textual material defines which characters enter the intended language-focused comparison. The paper describes the Sinhala cleanup after adoption of the collection. For Tamil, the authors could incorporate the focus on the target script as they assembled the source strings themselves.

Define the Tamil sampling pool

The search for a comparable public synthetic Tamil collection led the authors to create one. They took Tamil material from OPUS, using OpenSubtitles v2024. A subtitle corpus provides source strings that can be rendered as images. Its role is to supply the content of the lines, so the choice of corpus also determines which kinds of wording and which character sequences the test is likely to contain. OpenSubtitles

The first part of preparation divided the source into lines and focused the material on Tamil characters. The method reports 2,437,960 records at that point. The authors then restricted eligibility to texts longer than 40 characters, leaving 222,658 records. Their stated purpose was to make the examples suitable for word-level assessment. Character length is the selection criterion. The lines can still differ in word count, so the resulting data offer word sequences of varying lengths.

From that pool, the authors drew a random sample of 7,000. They wanted a test comparable in sample count to the Sinhala collection, and they also cite the resources required to process more images. The random draw is made within the filtered pool. Accordingly, it can provide a cross-section of eligible subtitle lines, with the target script and length restriction already in force. The procedure determines the text that will appear on the test images before it determines how those lines will look.

This order of operations helps distinguish properties of the language sample from properties of the images. The subtitle collection and length rule determine what an engine is asked to read. Assigning fonts and rendering the lines determine the shapes and placement it will see. The source text becomes a benchmark reference at the point when it is paired with the image. OCR is exercised when the engine is given the resulting visual representation and asked to recover a string from it.

Distribute the lines across visually distinct fonts

The authors examined 17 Tamil font families from Google Fonts and picked six. Selection was based on visual distinction. They mention Mukta Malar and Baloo Thambi 2 as examples of faces whose characters appeared similar to them. The aim was to spread the sample over visibly different renditions of the script. The final selection includes Kavivanar, Hind Madurai and Noto Serif Tamil. Its other faces are Anek Tamil, Pavanam and Noto Sans Tamil.

A figure in the paper shows a sample of what this variation looks like by rendering the same Tamil sentence in different selected faces. Holding the sentence fixed lets the reader see the effect of typography on shapes instead of reading differences in the wording. In the dataset procedure, the authors describe distributing text records proportionally across font files. The example figure illustrates the fonts, while the allocation procedure spreads the collected lines across them. The overall score then reflects the font mixture used in the test.

The renderer was written using Pillow. For a text record and its font, it calculates a bounding box, the rectangle that encloses the text. That measurement supplies the dimensions needed for an image large enough to contain the writing. The implementation places the black text on a white canvas and uses the calculated width and height to centre it. The procedure accommodates lines of different dimensions while giving them a consistent presentation.

The product of rendering is an image to be sent to the engines and a string to use when scoring what they return. The paper also describes excluding records that lacked the required string values for the reference and generated fields. This check establishes that the comparison has usable text inputs. A string that differs from the reference can receive a score through the normal evaluation rule. Missing fields raise a prior question about whether the comparison can be made at all. The authors release their tamil_synthetic_ocr dataset as a public contribution.

Obtain output from the available engines

The Cloud Vision API and Document AI are the two commercial entries. The authors enabled the Cloud Vision API on Google Cloud and created a processor for Document AI. Cloud Vision offers OCR as one feature of a broader image-analysis service. Document AI is a document-processing platform, and its OCR processor supplied the text for this experiment. The evaluation uses both for Sinhala and Tamil, extracting an observable transcription from each service for comparison with the reference.

Tesseract 5.5.0 and Surya also enter both language tests. The authors used pytesseract, a Python wrapper, to submit the images to Tesseract programmatically. The paper places that version in the lineage of Tesseract 4.0, which introduced LSTM-based recognition into the engine. The later release retains the LSTM engine and incorporates further changes. The distinction between the releases matters when reading the Sinhala comparison, because the older version is the basis for the specialised Subasa service.

The authors access Subasa OCR through its web application. The source and the underlying recogniser were unavailable directly to them. Submitting an image through the web interface supplies a result, but repeating the procedure manually across the Sinhala collection would be impractical. They used Selenium to automate submissions through the browser. Subasa is the Sinhala-only entry, and the benchmark inherits the language-specific adaptation already embodied in the service.

Surya and EasyOCR were available as Python libraries. Surya’s pipeline includes text detection and recognition, and the toolkit also has facilities for analysing layout and reading order. The paper describes its detector as based on a modified EfficientViT design and its recogniser on a modified Donut design. The recogniser incorporates a mixture-of-experts layer, which gives the architecture specialised components, and uses UTF-16 decoding. It also uses an attention design that groups queries for part of the computation. These are properties of the released recogniser tested by the authors. Grouped query attention

EasyOCR has a detector based on CRAFT, short for Character Region Awareness for Text, and a recogniser that operates on the detected writing. The recogniser uses a residual network to extract visual features, an LSTM for sequence labelling and connectionist temporal classification to decode the sequence into text. The interface can return text along with locations. In the benchmark the transcription supplies the material for scoring. The authors run EasyOCR for Tamil, since the system lacked Sinhala support. Deep residual learning

The different interfaces all lead to the same kind of comparison. A cloud request, a library call and a browser submission are routes to transcriptions from completed systems. The reference remains the same for the engines evaluated on a given image. This arrangement supports a product-level comparison even where the authors have very different degrees of access to each system’s internals.

Evaluate the amount of editing at each scale

Character error rate measures the amount of editing needed to reconcile two strings relative to the reference length. It uses Levenshtein distance. An edit can replace a character, add a character or remove one. The distance counts the least costly sequence of such operations under the paper’s unit-edit definition. A substitution can account for a wrong letter at a corresponding position, while insertions and deletions allow for a surplus or a missing character. The rate puts this edit count in relation to the amount of intended text.

CER = (S + I + D) / N

CER denotes character error rate. S counts character substitutions, I counts character insertions, and D counts character deletions in a minimum edit alignment from reference to output. N is the number of characters in the reference. The plus signs add the counts, and the slash divides their total by the reference length. A lower CER means fewer required edits relative to that length.

Word error rate takes the same editing problem and changes its units to words. In place of a sequence of characters, the evaluator now has a sequence whose elements are full word forms. A single wrong character within a word can cause that element of the sequence to count as a substitution. Likewise, an extra gap may divide the form that the reference treats as a unit. Tokenization

WER = (S + I + D) / N

WER denotes word error rate. Here S counts word substitutions, I counts word insertions, and D counts word deletions in a minimum edit alignment. N is the number of reference words. The addition gives the word-edit total, and division expresses it relative to the reference sequence length. On this measure, the amount of repair within an individual mismatched word gives way to the edit needed to recover the correct word as a unit.

Consider an output in which all the letters of neighbouring words survive but the intervening separator disappears. If that separator is counted in the character comparison, restoring it involves a local edit. At the word level, the output can contain a joined form where the reference expects separate units. Conversely, a wrongly transcribed word might require several character changes while the word comparison treats replacement of that unit as a single operation. Character and word scoring therefore weight errors differently even when calculated from the same strings.

Compare string similarity and the overlap of words

The BLEU score brings a measure from machine translation to the transcription problem. It looks for overlapping sequences of neighbouring items of several lengths. Each such sequence is an n-gram. For the word-overlap interpretation in the paper, matching a longer sequence shows that a stretch of words survived together and in order. A wrong word can also interrupt the matches of longer stretches that would have passed through it.

The paper describes BLEU as combining modified precisions by a geometric mean, then applying a penalty for brevity. Modified precision limits the credit available from repeating matching material. The brevity penalty addresses the case where an output includes only a short portion of the reference and would otherwise appear to match well on what it contains. BLEU ranges from 0 to 1 in the paper’s description, with higher values indicating better agreement under these rules. The OCR reference takes the place of the reference translation for this application.

Average normalised Levenshtein similarity, abbreviated ANLS, gives credit for approximate agreement at the string level. Its starting point is a normalised edit distance. A threshold determines whether a pair is sufficiently close to earn credit. Within the accepted region, the distance is subtracted from 1 to obtain the similarity. The paper gives the rule in terms of an item and its possible answers, a form that can be applied when the reference set for the OCR image contains its source transcription.

s(aᵢⱼ, o(qᵢ)) = ⎧ 1 − NL(aᵢⱼ, o(qᵢ))   if NL(aᵢⱼ, o(qᵢ)) < τ
                 ⎩ 0                      if NL(aᵢⱼ, o(qᵢ)) ≥ τ

Here s is the similarity assigned to a reference–output pair. The index i identifies the evaluation item, qᵢ is that item, and o(qᵢ) is the system output for it. The index j identifies a possible reference for the item, and aᵢⱼ denotes that reference. NL is the normalised Levenshtein distance between the reference and the output. The threshold τ is 0.5. The displayed rule awards 1 minus the distance below the threshold and 0 for distances at or above it. The paper’s prose places equality in the partial-credit branch, so the two presentations disagree for a distance of exactly 0.5.

ANLS = (1 / N) × ∑ᵢ maxⱼ s(aᵢⱼ, o(qᵢ))

ANLS is the average normalised Levenshtein similarity. N gives the number of evaluated items. The sum ∑ᵢ runs over those items. For each qᵢ, maxⱼ takes the greatest similarity s between its output o(qᵢ) and an available reference aᵢⱼ. With a single reference for an image, that pair supplies the item’s contribution directly. The factor 1 / N divides the accumulated similarities by the item count. N thus refers here to the size of the evaluated set, whereas in the error-rate formulas it refers to a reference length.

METEOR supplies another view of recovery at the word level. The authors describe it as matching individual words, with possible matches based on surface forms, stems or synonyms. Precision concerns the share of output material that matches. Recall asks how much of the reference has been recovered, and the metric gives it greater weight. A fragmentation penalty accounts for the arrangement of matched material. A transcription whose matches fall in coherent stretches can fare differently from one whose matches are broken into scattered fragments. METEOR

The measures therefore ask several questions about the transcription. CER and WER express edit burden against a reference length. ANLS assigns partial credit for nearby strings and averages the resulting similarities. BLEU gives weight to continuous stretches of agreement, while METEOR considers individual word matches and their organisation. This combination lets the authors look for agreement in the rankings and identify cases where a system’s relative standing depends on the form of accuracy being measured.

Experiments and results

Establishing the comparison

The experiments use the published Sinhala dataset of 6,969 pairs and the Tamil collection drawn from the sample of 7,000 lines. The engines are one another’s baselines within each language. Both comparisons include results from Tesseract, Document AI, Surya, and the Cloud Vision API. The Sinhala comparison adds Subasa OCR, and the Tamil comparison adds EasyOCR. An unsupported pairing yields no score. The table in the paper gives separate language results for each available engine instead of pooling performance over the two scripts.

The measures differ both in their units and in the direction of improvement. For CER and WER, a smaller result means a smaller edit burden. For BLEU, ANLS and METEOR, a larger result means greater agreement under the respective rule. The charts use the decimal rates in the paper’s results table. The authors’ discussion also gives selected rates in percent form, used below where it helps connect the decimal scores to the headline findings.

The Sinhala engines have a consistent order across measures

Surya’s Sinhala character error rate is 0.0076. Its word error rate is 0.0261, which the authors report as 2.61%. It records 0.9396 for BLEU, 0.9920 for ANLS and 0.9723 for METEOR. All five are the best values within the Sinhala comparison. The lead continues when the unit of interest changes from a character to a word or a stretch of words. A strong result on this test is consequently visible under the edit measures and the measures that give partial credit for matching material.

Word-level editing required by each engine on rendered Sinhala

Surya requires the fewest word edits, with the two cloud services next.

Word-level editing required by each engine on rendered SinhalaSubasa OCR: 0.1799Subasa OCR0.1799Tesseract: 0.1489Tesseract0.1489Cloud Vision API: 0.0767Cloud Vision API0.0767Document AI: 0.0758Document AI0.0758Surya (this paper): 0.0261Surya (this paper)0.0261
The numbers
System or settingWER
Subasa OCR0.1799
Tesseract0.1489
Cloud Vision API0.0767
Document AI0.0758
Surya (this paper)0.0261

On the same Sinhala data, Document AI has a CER of 0.0610 and Cloud Vision API has a CER of 0.0619. Their word error rates follow the same order, at 0.0758 and 0.0767 respectively. The resemblance carries over to measures of agreement. Document AI has a BLEU score of 0.9199, an ANLS of 0.9455 and a METEOR score of 0.9278. Cloud Vision API’s corresponding Sinhala scores are 0.9193, 0.9447 and 0.9269. The services are close on the reported scales, with Document AI ahead throughout the pair.

The Tesseract-based entries follow the cloud services in the Sinhala ranking. Tesseract’s CER is 0.0702 and Subasa’s is 0.0761. For WER, the scores are 0.1489 and 0.1799 in the same order. The standard Tesseract release records Sinhala BLEU of 0.7553, ANLS of 0.9319 and METEOR of 0.8436. Subasa reaches 0.6894 for BLEU, 0.9259 for ANLS and 0.8099 for METEOR. The comparison shows a lead for Tesseract 5.5.0 over the Sinhala service built from Tesseract 4.0 under each scoring rule.

The consistency of the Sinhala ranking is useful because some metric choices make different demands of a transcript. CER can tolerate a small number of errors distributed among different words. WER charges for each affected word that must be corrected in the minimum alignment. BLEU can respond to how errors break up contiguous passages. The full ordering survives these changes in what is counted. The experiment therefore gives a similar answer to the question of which Sinhala engine to rank first whether the priority is recovering characters, identifying words or preserving stretches of text.

On Tamil, the cloud services lead by both edit measures

Document AI’s Tamil CER is 0.0078, reported in the paper as 0.78%. Cloud Vision API’s is 0.0079. The word error rates are 0.1198 for Document AI and 0.1204 for Cloud Vision API. The paper expresses Document AI’s rate as 11.98%. The product ranking among these two services is the same as on Sinhala, and both services are ahead of the remaining engines on the Tamil test. The difference between the winning CER and WER points to a transcription that can be repaired with relatively few character edits while requiring correction to a greater share of the word sequence.

Character edit rates for the engines tested on synthetic Tamil

The cloud services lead, and Tesseract has the strongest open-source result.

Character edit rates for the engines tested on synthetic TamilDocument AI (this paper): 0.0078Document AI (this paper)0.0078Cloud Vision API: 0.0079Cloud Vision API0.0079Tesseract: 0.0780Tesseract0.0780EasyOCR: 0.1172EasyOCR0.1172Surya: 0.1392Surya0.1392
The numbers
System or settingCER
Document AI (this paper)0.0078
Cloud Vision API0.0079
Tesseract0.0780
EasyOCR0.1172
Surya0.1392

The similarity and overlap measures also put Document AI slightly ahead. It scores 0.9923 for Tamil ANLS, alongside Cloud Vision API’s 0.9922. Document AI’s BLEU of 0.5803 and METEOR of 0.8762 are also ahead of Cloud Vision API’s 0.5790 and 0.8751. The relative positions on the test are clear. The size of that observed lead is a separate matter, particularly when judging whether the order would persist on differently assembled evaluation material.

ANLS in this case gives an overview of how close the individual transcripts are to their references as strings. BLEU asks how much of the output preserves matching runs of words. The high Tamil ANLS for Document AI and the less strong BLEU are compatible with a line whose characters are mostly recoverable and whose word sequence contains several interruptions. The measures use different definitions of agreement. Their numerical scales give context for each result within a metric.

The Tamil open-source ranking depends on what is counted

Tesseract’s Tamil CER of 0.0780 leads the open-source entries. EasyOCR records 0.1172 and Surya records 0.1392. On ANLS, which also draws on character edit distance, Tesseract scores 0.9264, followed by EasyOCR at 0.8828 and Surya at 0.8672. Both views favour Tesseract when the comparison is between strings at the level of their characters.

At the word level, EasyOCR records a WER of 0.2876 compared with Tesseract’s 0.6145. Surya’s word error rate is 0.6500. The change in order between Tesseract and EasyOCR illustrates the value of including both edit rates. Tesseract’s output is closer under the character edit rule, while EasyOCR’s requires fewer edits under the word rule. Which result matters for a use of the text depends on the unit that use needs to preserve.

Word edit rates for the engines tested on synthetic Tamil

EasyOCR leads the open-source entries, while the cloud pair has the lowest rates overall.

Word edit rates for the engines tested on synthetic TamilSurya: 0.6500Surya0.6500Tesseract: 0.6145Tesseract0.6145EasyOCR: 0.2876EasyOCR0.2876Cloud Vision API: 0.1204Cloud Vision API0.1204Document AI (this paper): 0.1198Document AI (this paper)0.1198
The numbers
System or settingWER
Surya0.6500
Tesseract0.6145
EasyOCR0.2876
Cloud Vision API0.1204
Document AI (this paper)0.1198

For Tamil BLEU, EasyOCR achieves 0.3461, Surya 0.1487 and Tesseract 0.0493. Tamil METEOR gives EasyOCR 0.6744, Surya 0.3359 and Tesseract 0.3201. Both overlap measures favour EasyOCR among the open-source systems. They also place Surya above Tesseract, even though Surya has a higher WER. WER evaluates the minimum changes to the entire word sequence. An overlap measure can give credit for particular correctly preserved words or passages within a sequence that still requires many edits. Those differences allow the observed rankings to coexist.

Surya has the lowest error rates and the strongest agreement scores on Sinhala, yet its Tamil CER and WER are the highest in that test. The system supports both languages and therefore makes the change in standing visible within a single engine. The observed reversal concerns two collections with different scripts, fonts and source strings. It also gives a concrete reason to keep language support and demonstrated recognition quality distinct when reading a multilingual engine’s results.

A small character error rate can leave a sizeable word problem

The best Sinhala CER is 0.0076 for Surya, and the best Tamil CER is 0.0078 for Document AI. The leading WERs are 2.61% and 11.98% respectively. The authors highlight this pattern because the similarity of the winning character rates tells only part of the story. The Tamil test has much more disagreement about the word sequence even at the strongest observed setting. The two leading values in each language concern different scales of correction, both measured against the corresponding reference text.

The authors suggest that spacing and word formation account for some of this behaviour. An intact run of letters can be attached to a neighbouring word or separated into pieces in the returned text. Some changes also arise inside words. A dependent mark that differs from the one in the reference may be a local error in a character alignment while changing the identity of the entire matched word. Both effects can move WER without an equally conspicuous change in CER.

The best Tamil BLEU of 0.5803, from Document AI, also sits below the best Sinhala BLEU of 0.9396, from Surya. The authors connect the Tamil result to weaker overlap of neighbouring words when word error is higher. A break in the agreement of the word sequence can remove opportunities to match the larger sequences that cross that break. METEOR, with its own matching and ordering rule, gives the best Tamil engine 0.8762. This combination of results makes it possible to say which kinds of agreement the output preserves more successfully.

The comparisons also put the cloud services’ behaviour in perspective. They lead the Tamil test together and occupy the positions immediately behind Surya on the Sinhala test. Over the selected material, their results are close to each other within each language. The experiment is built from outputs visible to a user of each service. An explanation of the small separation between them would require evidence about what inside the services produced it.

What the ablations show

The authors report no component ablations. They compare complete engines on common test material within each language, examine how the results change with the scoring unit and inspect character errors for the language winners. These comparisons control the input and scoring where appropriate. Architecture, previous training and the steps that turn visual features into words vary together between the finished products, so the evidence concerns the behaviour of those products.

The version comparison concerns available systems

The Sinhala results make the relationship between Tesseract and Subasa particularly informative. Subasa’s starting point was Tesseract 4.0, and its developers adapted the system to Sinhala. The new benchmark uses the standard Tesseract 5.5.0 release alongside that service. Both transcribe the same Sinhala test material. The later standard version comes ahead for errors at both levels and for each measure of agreement. Since the text and scoring are shared, the observed advantage belongs to the finished version as tested.

The earlier Subasa comparison described in the paper used standard Tesseract 4.0 as its reference and reported a benefit from the modifications. The two comparisons involve different baselines. The present result is compatible with improvements to standard Tesseract between releases, as the authors argue. The contribution of individual changes remains unresolved. A comparison designed to estimate the gain due to adaptation itself would need a common starting version and a common test for the adapted and standard systems.

The comparison between the commercial services likewise fixes the images and metrics. It establishes that Document AI ranks just ahead under all measures in each language. The systems’ internal differences remain opaque to the authors. Consistency across scores makes the small advantage easy to locate in the results, while leaving its source open. The analysis can establish how their returned texts agree with the references without assigning credit to a specific recognition stage.

Character counts reveal where residual errors collect

For the leading recogniser in each language, the authors go from a dataset-wide score to a tally associated with individual characters. They compare Surya’s Sinhala output with the Sinhala references and Document AI’s Tamil output with the Tamil references. This analysis asks which parts of a script account for many of the observed mistakes even after selecting the strongest engine. The paper illustrates the answer with groups of marks and letters.

For Surya on Sinhala, the authors examine characters with more than 5,000 errors. The diacritics ◌ා, ◌ු, ◌ි and ◌් figure in their discussion. The dotted circle is a way to display the position of a dependent mark when showing it separately from a base letter. The paper also identifies න, ක and ය, as well as ර and ව, as letters associated with recognition difficulties. These characters give concrete examples of what remains to correct in a collection on which the system has a small overall CER.

For Document AI on Tamil, the analysis uses a threshold of more than 1,600 errors. The mark ◌் has the highest error count in the authors’ discussion. They also identify the letters க, த, ன and ர among the characters with substantial error totals. A mark can occupy a limited part of the printed form while remaining significant to the reference transcription. The lists for both languages make clear that residual error involves dependent marks as well as base letters.

The thresholds pick out comparatively large raw totals under each language’s procedure. A often occurring letter has many opportunities to accumulate errors. Its appearance in the tally could reflect that frequency, a greater tendency towards confusion, or both. A per-occurrence rate would need the corresponding exposure count for each character, along with a clear assignment of the edits. The paper’s tally identifies sources of error volume. The relative susceptibility of individual characters remains a different question.

The authors observe that raw character errors are generally more numerous in Sinhala even though the best character error rates are close. They discuss character usage frequency as a possible explanation and point to repertoire sizes reported as 60 for Sinhala and 247 for Tamil. They use the repertoire counts in a broad sense for these abugidas. The relationship between repertoire size and error totals remains an interpretation. CER itself depends on edits and reference length, so a fuller explanation would require connecting the tally and its denominator to the actual distribution of text in each collection.

The metrics support a boundary hypothesis without identifying its size

The word and character results on Tamil make spacing a plausible explanation to investigate. A disruption at a boundary can affect the units compared by WER while remaining local at the character level. The error tally shows that there are also prominent problems with letters and marks. An incorrect mark can make a reference word unavailable as an exact match even when the places where it begins and ends are reproduced correctly. The metric pattern accommodates both sources of error.

The paper gives a character tally and scores that compare the resulting word sequences. A breakdown of how much of the word error comes from added spaces, missing spaces or changes inside an intact boundary remains open. That distinction matters for the mechanism being proposed. The Tamil comparison between Tesseract and EasyOCR demonstrates a change in ranking across scoring units. It cannot on its own locate that change in a boundary detector, a recogniser or a later stage that assembles the output. The observed result is a property of the finished transcriptions.

Limitations

Limits the authors state

The central limitation is the appearance of the test images. Both collections consist of synthetic print with black text on a white background. The authors chose this setting because they lacked comparable realistic datasets for the two languages. It isolates recognition in a clean image and gives the evaluator a known source string. Actual document acquisition can add problems the benchmark does little to exercise. An image can have shadows, a textured background, motion blur or rotation. Low resolution can obscure details, and a page can contain broken strokes or stray dots.

These effects matter at different stages. A cluttered background can affect the location of the text. Blur can make the distinction between nearby shapes difficult even after the correct region is located. Rotation and distortion can change how the line is presented to the recogniser. The paper also notes that uncertainty at low resolutions can affect processing speed. The measurements on rendered text leave accuracy and speed on such images open. The authors propose enlarging the synthetic collections and varying fonts, backgrounds and noise to put more of those conditions into a controlled test.

The paper explains its limited reliance on Hindi OCR research by citing differences in writing systems. It reports a script distance of 5 for Sinhala and Devanagari, 7 for Tamil and Devanagari, and 4 for Sinhala and Tamil. It also describes its two target scripts as rounded, using a cited account that treats Devanagari differently. Those observations explain why the authors value a direct test on Sinhala and Tamil. The script distances come from the work they cite, while the experiment’s own distances are between transcriptions and their references.

The authors also describe the commercial comparison as difficult to explain from the outside. Architecture and training data could contribute to the differences, but the benchmark exposes the returned text through service interfaces. It can measure agreement under the stated metrics and compare the services under the same input conditions. Identifying what system component or training source produced a particular advantage remains beyond the evidence available to the authors.

Limits that follow from the experimental design

The parallel design is approximate. The sample counts are close and both collections use computer-rendered print. The Tamil material is assembled from subtitles with a stated length threshold and a particular font selection. The Sinhala evaluation uses a collection built elsewhere, with different fonts and its own source material, followed by the paper’s script-focused cleanup. Thus a difference between languages can reflect the recognition systems, the scripts, the texts or the way the images were assembled. The rankings within each language have a shared set of input images and support a more direct comparison among engines.

The Tamil sample represents the pool that the authors defined. A line must pass the longer-than-40-character criterion to enter that pool. The source is subtitles, and the preparation focuses on the target script. Short labels, names in multiple scripts and other forms of mixed content pose questions outside this design. Even within Tamil print, the results describe a mixture of the chosen fonts. The paper illustrates the visual differences between selected faces, while performance for an individual font or another genre remains unresolved by the aggregate scores.

The rendering setup also constrains what can be inferred about document processing. A line centred in its own image gives an engine a relatively direct path from text detection to recognition. A full page might ask it to decide which text belongs to a table or heading, how regions should be ordered and where columns begin. The engine descriptions identify some of these broader capabilities. The measurements primarily reflect what the tested systems do with the images the authors actually submit. Handwriting and the organisation of complex pages would require test material that exercises those capabilities.

The zero-shot description applies to adaptation for this experiment. Existing language-specific training, including Subasa’s earlier adaptation, is part of the evaluation. The prior exposure of the systems to particular fonts, subtitle sources or related text remains an open question, especially for services whose training data are inaccessible to the authors. The results establish a comparison of the available engines without a new training step for the study. They cannot resolve whether particular material was familiar to a system from previous training.

Several details matter for exact replication. The formula and prose for ANLS place equality with the threshold in different branches. The interpretation of errors at word boundaries also depends on how scoring treats spacing and divides text into words. At the character level, the way a representation counts a base letter and a dependent mark affects the edit units and the opportunities used to interpret tallies. The paper explains the scoring concepts and the targeted cleanup. Some underlying character and word conventions remain unspecified.

There is also a discrepancy in the reported size of the Tamil source pool. The methodological account places 2,437,960 records after initial line preparation and 222,658 after the length restriction. The conclusion refers to approximately 2.2 million Tamil records. The two accounts agree on the selected sample of 7,000. For a reconstruction of the pipeline, the method’s counts are the ones associated explicitly with each operation. The approximate total in the conclusion is harder to assign to a stage.

Finally, the results are point scores for the assembled collections. The lead of the winning engine in each language is visible across the chosen measures. Whether the much smaller ordering between the cloud services would persist under another draw, a different mix of fonts or a new genre is unresolved. The paper also leaves runtime, power and other practical costs outside its reported comparative results. Its evidence addresses the quality of the returned text under the benchmark conditions, including how much that assessment can change when a word takes the place of a character as the unit of comparison.

What came after

SinFoS, published in 2026, cites Jayatilleke and de Silva and presents a parallel dataset for translating Sinhala figures of speech. The resource in SinFoS concerns translation, where the paired material consists of aligned texts. The OCR benchmark instead pairs visible writing with the string that gives its transcription. The citation establishes a connection between the works. Any role for the OCR engines, the rendering procedure or the benchmark results in the construction of SinFoS remains unspecified.

Cite

Cite as Nevidu Jayatilleke and Nisansa de Silva. 2025. Zero-shot OCR Accuracy of Low-Resourced Languages: A Comparative Analysis on Sinhala and Tamil. Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing - Natural Language Processing in the Generative AI Era.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{jayatilleke2025zero,
  title = {{Zero-shot OCR Accuracy of Low-Resourced Languages: A Comparative Analysis on Sinhala and Tamil}},
  author = {Nevidu Jayatilleke and Nisansa {de Silva}},
  booktitle = {Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing - Natural Language Processing in the Generative AI Era},
  year = {2025},
  url = {https://aclanthology.org/2025.ranlp-1.56/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/jayatilleke-2025-zero-shot-ocr-accuracy-low/