Tightness-aware Evaluation Protocol for Scene Text Detection

Yuliang Liu, Lianwen Jin, Zecheng Xie, Canjie Luo, Shuaitao Zhang, Lele Xie · DOI

Abstract

Evaluation protocols play a key role in the developmental progress of text detection methods. There are strict requirements to ensure that the evaluation methods are fair, objective, and reasonable. However, existing metrics exhibit some obvious drawbacks: 1) They are not goal-oriented; 2) they cannot recognize the tightness of detection methods; 3) existing one-to-many and many-to-one solutions involve inherent loopholes and deficiencies. Therefore, this paper proposes a novel evaluation protocol called Tightness-aware Intersect-over-Union (TIoU) metric that could quantify completeness of ground truth, compactness of detection, and tightness of matching degree. Specifically, instead of merely using the IoU value, two common detection behaviors are properly considered; meanwhile, directly using the score of TIoU to recognize the tightness. In addition, we further propose a straightforward method to address the annotation granularity issue, which can fairly evaluate word and text-line detections simultaneously. By adopting the detection results from published methods and general object detection frameworks, comprehensive experiments on ICDAR 2013 and ICDAR 2015 datasets are conducted to compare recent metrics and the proposed TIoU metric. The comparison demonstrated some promising new prospects, e.g., determining the methods and frameworks for which the detection is tighter and more beneficial to recognize. Our method is extremely simple; however, the novelty is none other than the proposed metric can utilize simplest but reasonable improvements to lead to many interesting and insightful prospects and solving most the issues of the previous metrics.

Introduction

Standard evaluation metrics for scene text detection, largely borrowed from general object detection (like Pascal VOC), are increasingly seen as inadequate. While an Intersection-over-Union (IoU) threshold of 0.5 might suffice for identifying a "car" or a "person," text detection has a unique downstream requirement: the text must be readable. A bounding box that achieves a high IoU but clips the first or last character of a word renders that word unreadable for an Optical Character Recognition (OCR) system. Conversely, a box that is too loose and includes neighboring text can confuse recognizers.

The Limitations of Standard IoU

Existing metrics suffer from being binary and "tightness-blind." Any detection with an IoU > 0.5 is typically treated as a perfect True Positive (score of 1.0), while anything below is a False Positive (score of 0). This binary threshold fails to distinguish between a "pure" detection that perfectly encapsulates the text and a "cutting" detection that misses critical characters. Furthermore, standard metrics struggle with annotation granularity—the "One-to-Many" (OM) and "Many-to-One" (MO) problem—where a model might correctly detect a line of text that was annotated word-by-word, leading to unfair penalties.

The TIoU Metric

To address these flaws, the authors introduce the Tightness-aware Intersect-over-Union (TIoU) metric. TIoU moves beyond simple area overlap to quantify three critical aspects: completeness of ground truth, compactness of detection, and tightness of matching.

Four common detection behaviors: (a) Cutting, (b) Pure, (c) Outlier-GTs, and (d) Cutting & Outlier-GTs. TIoU specifically penalizes (a), (c), and (d) to favor (b).

The metric introduces two specific penalties:

  1. TIoU-Recall (Penalizing Cutting): If a detection box cuts off a portion of the Ground Truth (GT), the recall score is mathematically penalized based on the area of the un-recalled GT. This ensures that "cutting" behaviors (as seen in Figure 6a) are reflected in lower scores.
  2. TIoU-Precision (Penalizing Outliers): If a detection box captures the target GT but also overlaps with adjacent "outlier" GTs, the precision score is penalized. This discourages loose boxes that "swallow" neighboring text (Figure 6c).

By using the actual calculated TIoU value as a continuous score rather than a binary pass/fail, the metric provides a much more granular and realistic assessment of a model's performance.

Experimental Validation

The researchers evaluated state-of-the-art models on the ICDAR 2013 and ICDAR 2015 datasets using both standard metrics and TIoU. The results were revealing:

  • Significant Score Drops: When evaluated under TIoU, F-measure scores for almost all models dropped by over 10%. For instance, the EAST detector's F-measure on IC13 fell from 0.779 to 0.620.
  • Ranking Reversals: TIoU often changed the ranking of models to better align with their actual OCR utility. In one case, while Faster R-CNN outperformed SSD in standard IoU, SSD achieved a higher TIoU score. Subsequent end-to-end tests confirmed that SSD indeed provided better inputs for recognition.
  • OCR Correlation: The correlation coefficient between TIoU scores and end-to-end recognition performance is significantly higher than that of traditional IoU, proving that TIoU is a better proxy for real-world utility.

Conclusion

TIoU offers a simple yet profound improvement over traditional text detection metrics. By penalizing cutting and outlier inclusion, it forces detection models toward higher precision and completeness. Beyond evaluation, the authors suggest that TIoU could serve as a powerful loss function during training or as a reliable threshold for generating pseudo-labels in semi-supervised learning. The code is publicly available at https://github.com/Yuliang-Liu/TIoU-metric, providing the community with a more rigorous standard for the next generation of scene text detectors.

Summary updated

BibTeX
@inproceedings{liu2019tightness,
  author = {Yuliang Liu and Lianwen Jin and Zecheng Xie and Canjie Luo and Shuaitao Zhang and Lele Xie},
  title = {{Tightness-aware Evaluation Protocol for Scene Text Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00984},
}
Figure