Japanese text is a complex tapestry of characters. One of its most unique features is furigana—tiny phonetic guides (usually in hiragana) placed next to complex kanji to help readers with pronunciation. While helpful for humans, furigana are a significant hurdle for Optical Character Recognition (OCR) systems, which often mistake them for main text or let them "pollute" the recognition of adjacent characters.
In their paper, "Detection of Furigana text in images," Nikolaj Kjøller Bjerregaard and colleagues present a specialized pipeline to detect these small annotations, creating a cleaner path for more accurate Japanese OCR.
The Furigana Challenge
Standard OCR engines are generally trained on "clean" text lines. In Japanese, furigana appear as tiny characters squeezed between lines in vertical text or above/below words in horizontal text.
Because they are so small and close to the main text, OCR systems often misclassify them as noise, insert them randomly into the output string, or fail to recognize the main character because the furigana "touches" the main kanji in the image mask. Existing scene-text detectors often lack the hierarchical understanding needed to distinguish "main text" from "annotation text."
Methodology: Morphology and Scale
The authors developed a multi-stage pipeline that relies on the physical characteristics of furigana rather than just deep learning-based character recognition.
- Text Extraction & Localization: Using a pre-trained model to create a binary mask, the system separates text from the background. Mathematical morphology (specifically "closing" operations) is then used to merge character blobs into regions and infer reading direction.
- Line Separation: Long, thin morphological kernels "stretch" characters into lines. By using kernels that merge characters in the reading direction but not sideways, the system keeps furigana separate from the main text.
- Font Size Estimation: This is the core heuristic. Since furigana are by definition smaller than the main text, the system calculates the average "thickness" of detected lines. Lines significantly thinner than the dominant font size are flagged as furigana.
- n-IOU Metric: To evaluate detection, the authors introduced normalized Intersection over Union (n-IOU). This metric allows for "many-to-one" matching, which is fairer when a ground-truth box covers a whole string of furigana but the detector finds individual characters.
Results and Impact
The system achieved an overall F1-score of 76%. Performance varied significantly by domain: 91% F1 for regular books versus 67% F1 for manga, where text often overlaps with art or uses stylized fonts.
Crucially, removing detected furigana before running Tesseract OCR on the Manga109 dataset resulted in a 5% relative improvement in accuracy. This demonstrates the value of furigana detection as a pre-processing step.
Limitations and Future Work
The system still struggles with complex layouts found in textbooks, which often feature varying font sizes and mixed languages that break the "one dominant font size" assumption.
Additionally, very small furigana or those that physically touch the main kanji remain difficult to separate. Future work could involve integrating this logic directly into OCR engines to read the phonetic information rather than simply discarding it.
Summary updated