Next Article in Journal
Postprocessing for Skin Detection
Previous Article in Journal
Volumetric Semantic Instance Segmentation of the Plasma Membrane of HeLa Cells

Determining Chess Game State from an Image

School of Computer Science, University of St Andrews, North Haugh, St Andrews KY16 9SX, Scotland, UK
Author to whom correspondence should be addressed.
Academic Editor: M. Donatello Conte
J. Imaging 2021, 7(6), 94;
Received: 30 April 2021 / Revised: 25 May 2021 / Accepted: 26 May 2021 / Published: 2 June 2021
(This article belongs to the Section Computer Vision and Pattern Recognition)
Identifying the configuration of chess pieces from an image of a chessboard is a problem in computer vision that has not yet been solved accurately. However, it is important for helping amateur chess players improve their games by facilitating automatic computer analysis without the overhead of manually entering the pieces. Current approaches are limited by the lack of large datasets and are not designed to adapt to unseen chess sets. This paper puts forth a new dataset synthesised from a 3D model that is an order of magnitude larger than existing ones. Trained on this dataset, a novel end-to-end chess recognition system is presented that combines traditional computer vision techniques with deep learning. It localises the chessboard using a RANSAC-based algorithm that computes a projective transformation of the board onto a regular grid. Using two convolutional neural networks, it then predicts an occupancy mask for the squares in the warped image and finally classifies the pieces. The described system achieves an error rate of 0.23% per square on the test set, 28 times better than the current state of the art. Further, a few-shot transfer learning approach is developed that is able to adapt the inference system to a previously unseen chess set using just two photos of the starting position, obtaining a per-square accuracy of 99.83% on images of that new chess set. The code, dataset, and trained models are made available online. View Full-Text
Keywords: computer vision; chess; convolutional neural networks computer vision; chess; convolutional neural networks
Show Figures

Figure 1

  • Externally hosted supplementary file 1
    Doi: 10.17605/OSF.IO/XF3KA
    Description: Dataset of Rendered Chess Game State Images
MDPI and ACS Style

Wölflein, G.; Arandjelović, O. Determining Chess Game State from an Image. J. Imaging 2021, 7, 94.

AMA Style

Wölflein G, Arandjelović O. Determining Chess Game State from an Image. Journal of Imaging. 2021; 7(6):94.

Chicago/Turabian Style

Wölflein, Georg, and Ognjen Arandjelović. 2021. "Determining Chess Game State from an Image" Journal of Imaging 7, no. 6: 94.

Find Other Styles
Note that from the first issue of 2016, MDPI journals use article numbers instead of page numbers. See further details here.

Article Access Map by Country/Region

Back to TopTop