Best Practices for a Handwritten Text Recognition System

George Retsinas, Giorgos Sfikas, Basilis Gatos, Christophoros Nikou
4/17/2024
cs.CV

Official code: georgeretsi/HTR-best-practices (41 stars, PyTorch, last commit 2024-11-30).

Abstract

Handwritten text recognition has been developed rapidly in the recent years, following the rise of deep learning and its applications. Though deep learning methods provide notable boost in performance concerning text recognition, non-trivial deviation in performance can be detected even when small pre-processing or architectural/optimization elements are changed. This work follows a ``best practice'' rationale; highlight simple yet effective empirical practices that can further help training and provide well-performing handwritten text recognition systems. Specifically, we considered three basic aspects of a deep HTR system and we proposed simple yet effective solutions: 1) retain the aspect ratio of the images in the preprocessing step, 2) use max-pooling for converting the 3D feature map of CNN output into a sequence of features and 3) assist the training procedure via an additional CTC loss which acts as a shortcut on the max-pooled sequential features. Using these proposed simple modifications, one can attain close to state-of-the-art results, while considering a basic convolutional-recurrent (CNN+LSTM) architecture, for both IAM and RIMES datasets. Code is available at https://github.com/georgeretsi/HTR-best-practices/.

View on arXivView PDF

Code Implementations(1)

PyTorch

Basic HTR concepts/modules to boost performance

419PythonMar 31, 20221 years ago
best-practicesctchandwritten-text-recognitionhtriam-dataset+3 more

Similar Papers

Cite this paper

@article{retsinas2024best,
  title  = {Best Practices for a Handwritten Text Recognition System},
  author = {George Retsinas and Giorgos Sfikas and Basilis Gatos and Christophoros Nikou},
  year   = {2024},
  eprint = {2404.11339},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.11339v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.11339.svg)](https://codeofpaper.com/paper/2404.11339)

Discussion