Skip to main content
QUICK REVIEW

[Paper Review] Text Detection Forgot About Document OCR

Krzysztof Olejniczak, Milan Šulc|arXiv (Cornell University)|Oct 14, 2022
Handwritten Text Recognition TechniquesComputer Science5 citations
TL;DR

This paper evaluates state-of-the-art in-the-wild text detection models—originally designed for complex scenes—on structured document datasets, demonstrating they achieve superior detection performance (F1 > 96%) compared to commercial OCR systems like Google Document AI and AWS Textract. When combined with a pre-trained CRNN recognition model, these detectors yield end-to-end F1 scores exceeding 90%, proving their strong transferability and potential to improve document OCR pipelines.

ABSTRACT

Detection and recognition of text from scans and other images, commonly denoted as Optical Character Recognition (OCR), is a widely used form of automated document processing with a number of methods available. Yet OCR systems still do not achieve 100% accuracy, requiring human corrections in applications where correct readout is essential. Advances in machine learning enabled even more challenging scenarios of text detection and recognition "in-the-wild" - such as detecting text on objects from photographs of complex scenes. While the state-of-the-art methods for in-the-wild text recognition are typically evaluated on complex scenes, their performance in the domain of documents is typically not published, and a comprehensive comparison with methods for document OCR is missing. This paper compares several methods designed for in-the-wild text recognition and for document text recognition, and provides their evaluation on the domain of structured documents. The results suggest that state-of-the-art methods originally proposed for in-the-wild text detection also achieve competitive results on document text detection, outperforming available OCR methods. We argue that the application of document OCR should not be omitted in evaluation of text detection and recognition methods.

Motivation & Objective

  • To assess whether state-of-the-art in-the-wild text detection models generalize effectively to structured document images.
  • To compare the performance of in-the-wild detectors against dedicated document OCR engines on standard document benchmark datasets.
  • To evaluate end-to-end text recognition by combining fine-tuned in-the-wild detectors with public recognition models on document-specific datasets.
  • To highlight the importance of including document OCR evaluation in benchmarking for text detection methods.

Proposed method

  • Fine-tuned several in-the-wild text detection models—including DBNet++, TextBPN++, DCLNet, and FCENet—on document-specific datasets (FUNSD, CORD, XFUND).
  • Evaluated detection performance using the CLEval metric, focusing on F1-score, precision, and recall across multiple document datasets.
  • Combined fine-tuned detectors with pre-trained recognition models (CRNN, SAR, MASTER) from MMOCR and docTR to perform two-stage end-to-end text recognition.
  • Used publicly available models from MMOCR 0.6.2 Model Zoo and docTR for recognition, avoiding retraining to ensure fair comparison.
  • Compared results against commercial OCR services (AWS Textract, Google Document AI) and open-source OCR (Tesseract, PP-OCR).
  • Applied differentiable binarization in detection heads to improve localization accuracy on irregular text instances in documents.

Experimental results

Research questions

  • RQ1Can state-of-the-art in-the-wild text detection models achieve competitive or superior performance on structured document images compared to dedicated document OCR systems?
  • RQ2How does fine-tuning in-the-wild detectors on document data affect their detection F1-score on standard document benchmarks?
  • RQ3What is the end-to-end recognition performance when combining in-the-wild detectors with general-purpose recognition models on document datasets?
  • RQ4Why do commercial OCR services like AWS Textract outperform open-source models in end-to-end evaluation despite not being specifically trained on documents?
  • RQ5Should document OCR benchmarks be included in the evaluation of new text detection methods to ensure practical applicability?

Key findings

  • DBNet++ achieved a detection F1-score of 92.23% on FUNSD and 96.62% on CORD, outperforming Google Document AI (91.42% and 90.97%) and AWS Textract (94.53% and 83.32%) on the same metrics.
  • TextBPN++ achieved a detection F1-score of 90.86% on FUNSD and 96.52% on CORD, demonstrating strong generalization to document layouts.
  • End-to-end recognition with CRNN and DBNet++ reached 93.52% recall and 92.23% F1-score on FUNSD, surpassing all other combinations of detectors and recognition models.
  • AWS Textract achieved an end-to-end recognition F1-score of 96.63% on CORD, significantly outperforming all open-source models, likely due to its superior internal recognition engine.
  • Fine-tuned CRNN models achieved over 93% F1-score on FUNSD and over 98.5% on CORD when combined with in-the-wild detectors, indicating strong transferability.
  • Despite higher detection recall, DBNet++ did not achieve the highest end-to-end F1-score due to lower precision, showing that detection quality alone does not guarantee better recognition performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.