arXiv(opens in a new tab)cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30762

ChessQueries: Toward Better Chess Board Recognition

Joël Seytre

Abstract

Chess board recognition is the task of mapping the image of a chess board to the information of which piece is on which square. So far this task has two established benchmarks: ChessCog is synthetic, and ChessReD comes from smartphone pictures of a single chess board setup. We introduce ChessQueries, a new method combining a ViT encoder with a DETR-style decoder, which outperforms existing methods. On the ChessReD benchmark, we improve the state of the art from 15.3% to 99.2%, and demonstrate strong capabilities on out-of-distribution datasets. Our method saturates the task on the two datasets, with an average 0.01 wrong squares per board (vs. SotA: 3.4/0.15 respectively). We also share a new, harder public dataset, parsed from broadcasted top-level chess tournaments. 1^{1}

1. Introduction

Chess board recognition consists of mapping an image of a board to its per-square state, such as the Forsyth-Edwards Notation (FEN) standard text format, which is used widely in the chess world. This task has valuable applications for amateur play and analysis, and could be used to improve broadcasting of chess tournaments, during which technical difficulties from electronic sensory DGT [3, 8] boards are common [9, 12]. It also represents a computer vision challenge, as can be seen in Fig. 1, due to the varying camera angles, lighting, shadows, as well as partial occlusion.

The two main datasets used to date were either synthetic (ChessCog [33]) or created from smartphone pictures of games being played on a single physical chess board (ChessReD [26]). While methods for this task tend to focus on one of those datasets, we sought to establish a single architecture that would work across datasets, but also in real chess broadcast conditions.

Our contributions are as follows: (1) we introduce a model called ChessQueries, which pairs a ViT encoder with a DETR-style decoder processing learned square queries,

1^{1}Code, model weights and the SLCC data release: https://github.com/JSeytre/chessqueries.

Figure

Figure 2. ChessQueries architecture. A ViT-L encoder turns the input image into patch tokens. Sixty-four learned square queries — one per board square — cross-attend to those tokens, and a single shared linear head maps each decoded query to one of 13 classes (six piece types, times two colors, plus empty square), yielding the full 8×88 \times 8 board in one forward pass.

outperforming all existing methods, saturating the existing test sets, with real generalization strengths; (2) we demonstrate that our approach generalizes well to unseen datasets such as the single-game CVChess [1] dataset, and is well-suited for training light-weight LoRAs on new domains; (3) we introduce a new, hard 2,174-image chess board recognition dataset based on the Saint Louis Chess Club YouTube broadcasts [14, 22, 31], with a new unique level of challenge (lighting, partial occlusions, hard viewpoints).

References (29)