Abstract
Traditional Optical Character Recognition (OCR) evaluation metrics, such as Intersection-over-Union (IoU) for detection and Correctly Recognized Words (CRW) for recognition, are often too rigid, providing binary "all-or-nothing" scores. This paper introduces CLEval, a novel character-level evaluation metric that utilizes synthetically generated "pseudo-character centers" (PCCs) to provide a fine-grained assessment. CLEval accurately rewards partially correct results, such as split detection boxes or minor transcription errors, which standard metrics would penalize with a zero score.
Introduction
In OCR research, the gap between quantitative metrics and qualitative model utility is a persistent issue. A model that detects 90% of a word's characters or misses a single letter in a long string is often highly useful in practice but receives a score of zero from standard word-level metrics. Furthermore, existing metrics struggle to handle granularity issues, such as when a single word is split into multiple detection boxes or multiple words are merged. CLEval addresses these challenges by shifting the atomic unit of evaluation from the word box to the individual character.
Methodology
CLEval's framework is built upon three core components designed to handle the complexities of real-world OCR outputs:
Pseudo-Character Centers (PCC)
To enable character-level evaluation without requiring expensive manual character-level annotations, CLEval generates PCCs. By assuming characters are uniformly distributed within a provided word-level ground truth (GT) bounding box, the system can estimate the center point of each character.
Instance Matching via PCC
Unlike traditional one-to-one box matching, CLEval matches a GT box to a detection box if they share at least one PCC. This approach naturally accommodates one-to-many (splits) and many-to-one (merges) scenarios.
Subsequence Elimination Scoring Process (SESP)
For end-to-end evaluation, CLEval employs the Longest Common Subsequence (LCS) to match GT strings with predicted transcripts. The SESP ensures that each character is only scored once, preventing double-counting in split or merged box scenarios. Additionally, a Granularity Penalty is applied to encourage models to maintain the original word structure while still rewarding successful text localization.
Experimental Validation
The effectiveness of CLEval was validated using the ICDAR2013, ICDAR2015, and TotalText datasets. In controlled "toy" experiments, CLEval demonstrated significantly higher robustness than IoU and DetEval. For instance, in a "Split by 2" detection scenario, CLEval maintained an H-mean of 89.2, whereas traditional metrics fluctuated or dropped sharply. In recognition tasks involving single-character insertions, where traditional metrics drop to 0.0, CLEval provided a graceful degradation with an H-mean of 91.2, aligning more closely with human qualitative judgment.
The authors also proposed a standalone Recognition Score (RS). This metric isolates recognition performance from detection artifacts, allowing for a "pure" assessment of the transcription engine's accuracy independent of how the text was localized.
Discussion and Insights
The core insight of CLEval is that text is fundamentally a sequence of characters, and word-level evaluation is an arbitrary constraint that masks incremental progress. By decoupling granularity (how boxes are cut) from correctness (what characters are inside), CLEval provides researchers with a more precise diagnostic tool. The use of PCCs is a clever heuristic that provides the benefits of character-level evaluation without the need for manual re-annotation of thousands of images.
Conclusion and Future Work
CLEval represents a significant step toward more meaningful OCR evaluation. While currently focused on Latin-based scripts and assuming uniform character spacing, future work will explore its application to logographic systems like Chinese and complex scripts like Arabic. The framework demonstrates that evaluating at the character level provides a much more accurate reflection of a model's real-world utility.
Summary updated