Abstract
Imagery texts are usually organized as a hierarchy of several visual elements: characters, words, text lines, and text blocks. Among these, the character is the most fundamental unit across various languages and notations, including Western, Chinese, Japanese, and mathematical expressions. While constructing a text detection engine based on character detectors is intuitive, training such detectors typically requires extensive character-level annotations, which are costly to produce. Most existing datasets are annotated only at the word or line level. To address this, we propose WordSup, a weakly supervised framework that utilizes word-level annotations for character detector training. By exploiting large-scale real-world datasets like ICDAR15 and COCO-Text, WordSup trains a robust character detector that achieves state-of-the-art performance on challenging benchmarks and demonstrates significant flexibility in handling deformed text and mathematical expressions.
Introduction
In the field of Optical Character Recognition (OCR), text detection serves as the critical initial step. While most contemporary methods operate at the word or line level, characters represent the true "atoms" of text. This atomicity makes character-level detection universally applicable across different languages and complex layouts. A robust character detector can theoretically navigate non-linear structures, such as curved text or multi-level mathematical formulas, which often baffle traditional word-box methods.
However, the primary obstacle to character-based detection is the lack of granular data. Annotating individual characters in large-scale datasets is prohibitively expensive. WordSup bridges this gap by providing a mechanism to train fine-grained character detectors using the abundant, albeit coarse, word-level annotations found in standard datasets.
Methodology
WordSup employs a weakly supervised learning framework centered on an iterative "Expectation-Maximization" (EM) style approach. This process allows the model to refine character locations within provided word-level bounding boxes.
Character Mask Generation
Given a word-level bounding box and the current state of the character detector, the system predicts candidate character locations. It selects the optimal candidates by maximizing a score that balances two key constraints:
- Coverage: Ensuring the selected characters adequately fill the annotated word box.
- Linearity: Ensuring the characters align along a plausible straight or smooth line.
These predicted centers serve as "pseudo-ground truth" to supervise and iteratively update the character detection network.
Architecture and Training
The underlying detector is a Fully Convolutional Network (FCN) based on the VGG16 backbone. To effectively detect tiny characters, the model incorporates a Feature Pyramid Network (FPN) style approach, merging high-level semantic features with low-level, high-resolution maps. This architecture produces response maps at 1/4 the original image resolution—significantly finer than the 1/16 or 1/32 resolution used in standard object detectors. Additionally, a two-level hard negative mining strategy is used to distinguish text from complex background patterns like fences or bricks.
Experiments and Results
The framework was trained using a combination of synthetic data (VGG SynthText) for initial "warm-up" and real-world word-level datasets (ICDAR15, COCO-Text) for weak supervision. WordSup achieved significant performance gains over previous state-of-the-art methods:
- ICDAR13: Achieved a 90.34% F-measure, outperforming the previous best (CTPN) by 2.65%.
- ICDAR15: Reached a 78.16% F-measure, a substantial improvement over methods like SCUT-DMPNet (70.64%).
- COCO-Text: Achieved a 36.8% F-measure, surpassing existing benchmarks by 3.5%.
Qualitative results further demonstrated the model's ability to handle deformed text and complex mathematical formulas, scenarios where traditional bounding-box methods typically fail.
Conclusion
WordSup proves that character-level detection can be effectively trained using only word-level supervision. By treating characters as the fundamental unit and employing a self-correcting iterative framework, the system achieves state-of-the-art results across diverse languages and complex layouts. While the framework currently relies on an initial synthetic warm-up phase, it establishes a robust foundation for universal text detection engines capable of handling the most challenging real-world imagery.
Summary updated