Character-Based Handwritten Text Transcription with Attention Networks

Jason Poulos, Rafael Valle
12/11/2017
cs.CVcs.CLstat.ML
transformer-attention

Official code: jvpoulos/Attention-OCR (44 stars, Python, MIT, last commit 2025-02-02).

Abstract

The paper approaches the task of handwritten text recognition (HTR) with attentional encoder-decoder networks trained on sequences of characters, rather than words. We experiment on lines of text from popular handwriting datasets and compare different activation functions for the attention mechanism used for aligning image pixels and target characters.

Show full abstract

We find that softmax attention focuses heavily on individual characters, while sigmoid attention focuses on multiple characters at each step of the decoding. When the sequence alignment is one-to-one, softmax attention is able to learn a more precise alignment at each step of the decoding, whereas the alignment generated by sigmoid attention is much less precise. When a linear function is used to obtain attention weights, the model predicts a character by looking at the entire sequence of characters and performs poorly because it lacks a precise alignment between the source and target. Future research may explore HTR in natural scene images, since the model is capable of transcribing handwritten text without the need for producing segmentations or bounding boxes of text in images.

View on arXivView PDF

Code Implementations(1)

MIT

Character-Based Handwritten Text Transcription with Attention Networks

4412PythonFeb 28, 20171 years agoMIT

Similar Papers

Cite this paper

@article{poulos2017characterbased,
  title  = {Character-Based Handwritten Text Transcription with Attention Networks},
  author = {Jason Poulos and Rafael Valle},
  year   = {2017},
  eprint = {1712.04046},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.04046}
}

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/1712.04046.svg)](https://codeofpaper.com/paper/1712.04046)

Discussion