English

A Transformer Based Handwriting Recognition System Jointly Using Online and Offline Features

Computer Vision and Pattern Recognition 2025-06-26 v1 Machine Learning

Abstract

We posit that handwriting recognition benefits from complementary cues carried by the rasterized complex glyph and the pen's trajectory, yet most systems exploit only one modality. We introduce an end-to-end network that performs early fusion of offline images and online stroke data within a shared latent space. A patch encoder converts the grayscale crop into fixed-length visual tokens, while a lightweight transformer embeds the (x,y,pen)(x, y, \text{pen}) sequence. Learnable latent queries attend jointly to both token streams, yielding context-enhanced stroke embeddings that are pooled and decoded under a cross-entropy loss objective. Because integration occurs before any high-level classification, temporal cues reinforce each other during representation learning, producing stronger writer independence. Comprehensive experiments on IAMOn-DB and VNOn-DB demonstrate that our approach achieves state-of-the-art accuracy, exceeding previous bests by up to 1\%. Our study also shows adaptation of this pipeline with gesturification on the ISI-Air dataset. Our code can be found here.

Keywords

Cite

@article{arxiv.2506.20255,
  title  = {A Transformer Based Handwriting Recognition System Jointly Using Online and Offline Features},
  author = {Ayush Lodh and Ritabrata Chakraborty and Shivakumara Palaiahnakote and Umapada Pal},
  journal= {arXiv preprint arXiv:2506.20255},
  year   = {2025}
}

Comments

15 pages, 7 figures

R2 v1 2026-07-01T03:32:44.115Z