Summary
This paper presents a novel detection-based approach to text line recognition for both printed (OCR) and handwritten text (HTR), covering Latin, Chinese and cipher characters. Traditional detection-based methods have been largely neglected in HTR due to the difficulty of reading characters separately and the high cost of character-level annotation. The authors propose a solution to these challenges through three main insights: (i) using synthetic pre-training with diverse data for character localisation across different scripts; (ii) using modern transformer-based detectors to handle multiple character instances simultaneously, using a masking strategy to ensure consistency; and (iii) fine-tuning a pre-trained detection model with approximate character localisation using line-level annotations on real data, even with different alphabets.
Strengths
- Originality: The method is highly original, proposing a detection/classification approach to character recognition that differs from most state-of-the-art methods, which typically rely on autoregressive decoding from images of lines or pages.
- Synthetic training data: The authors propose a way to train models using fully synthetic data, eliminating the need for actual character-level annotations.
- Model efficiency: The model is relatively small (~40M parameters), requiring only 100k synthetic line samples for training.
Error analysis: This approach allows for a better understanding of errors, distinguishing between detection and classification errors.
- Computational cost: Characters can be independently predicted in parallel, reducing computational cost, especially without a language model.
- Adaptability: The method can be easily adapted to any alphabet with minimal training data.
- Code release: The authors are committed to releasing the code, facilitating further research and application.
Weaknesses
- Lack of new technical contributions: Despite the originality of the approach, the paper lacks novel technical contributions. The model, training strategy, fine-tuning with CTC, data augmentation and synthetic data generation are not novel.
- Performance on handwritten documents: The method is not competitive on Latin handwritten documents and is outperformed by existing methods on Chinese handwritten documents. It does outperform on cipher recognition, but this is a more specialised and less researched area.
- Scope of evaluation: The framework is only evaluated on perfectly segmented lines of text, raising questions about its performance on full pages. Full page processing would require additional steps such as text line detection and reading order retrieval, which could impact performance.
- Impact of line detection: There are concerns about how the quality of line detection would affect character detection and recognition, particularly in cases where vertical or horizontal lines merge.
Questions
- Error cases: Can you provide examples of challenging real-world examples, such as rotated, upside-down or slanted lines; blank lines; vertically merged lines; strikethrough text; translucent paper; and mixed printed/handwritten characters?
- Pre-training: How long was the model trained, on what hardware (GPUs), and why was pre-training limited to 100k lines of text? Was this value determined experimentally?
- Input image size: What was the input image size used for training and evaluation?
- Computational cost: How do you explain the difference in computational cost between DINO-DETR (25ms/line) and FasterDAN (7ms/line)? Why were comparisons made using a batch size of 1? Please provide a more comprehensive comparison, including batch sizes, CPU vs. GPU performance, impact of language modelling, input image sizes, and model parameters.
- Language model decoding: What is the impact of a language model on inference speed? Can character recognition/classification still be parallelized with a language model? Can you decode on GPU with a KenLM language model, and what size of N-gram language model do you use?
- Model release: Will the model be released to the public?
Limitations
- Conclusion: The conclusion lacks depth and provides no insight into future improvements to the method.
- Paper and writing:
- Figure 2: The figure is unclear and needs to be made clearer.
- Table 1: The table is misplaced, it appears on page 6 but is referenced on page 7.