When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition

Bohan Li, Ye Yuan, Dingkang Liang, Xiao Liu, Zhilong Ji +3 more
7/23/2022
cs.CVcs.AI

Official code: LBH1024/CAN (387 stars, MIT, last commit 2024-08-05).

Abstract

Recently, most handwritten mathematical expression recognition (HMER) methods adopt the encoder-decoder networks, which directly predict the markup sequences from formula images with the attention mechanism. However, such methods may fail to accurately read formulas with complicated structure or generate long markup sequences, as the attention results are often inaccurate due to the large variance of writing styles or spatial layouts. To alleviate this problem, we propose an unconventional network for HMER named Counting-Aware Network (CAN), which jointly optimizes two tasks: HMER and symbol counting. Specifically, we design a weakly-supervised counting module that can predict the number of each symbol class without the symbol-level position annotations, and then plug it into a typical attention-based encoder-decoder model for HMER. Experiments on the benchmark datasets for HMER validate that both joint optimization and counting results are beneficial for correcting the prediction errors of encoder-decoder models, and CAN consistently outperforms the state-of-the-art methods. In particular, compared with an encoder-decoder model for HMER, the extra time cost caused by the proposed counting module is marginal. The source code is available at https://github.com/LBH1024/CAN.

View on arXivView PDF

Code Implementations(1)

LBH1024/CANOfficial100%
MIT

When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition (ECCV’2022 Poster).

38765PythonJul 17, 20222 years agoMIT
countinghmerocrrecognition

Similar Papers

Cite this paper

@article{li2022when,
  title  = {When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition},
  author = {Bohan Li and Ye Yuan and Dingkang Liang and Xiao Liu and Zhilong Ji and Jinfeng Bai and Wenyu Liu and Xiang Bai},
  year   = {2022},
  eprint = {2207.11463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.11463v1}
}

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

Discussion