arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.14963cs.CVcs.LG
收藏

从图像确定象棋游戏状态

Determining Chess Game State From an Image

University of St Andrews(圣安德鲁斯大学)

Georg Wölflein, Ognjen Arandjelović

摘要:

从棋盘的图像中识别棋子的形状是计算机视觉中尚未精确解决的问题。然而,这对于帮助业余国际象棋选手通过促进自动计算机分析而无需手动输入棋子的开销来改善他们的比赛是很重要的。目前的方法受到缺乏大型数据集的限制,并且不是为了适应看不见的国际象棋集。本文提出了一种新的数据集,它是从一个比现有数据集大一个数量级的3D模型合成的。在此数据集上进行训练,提出了一种新型的端到端国际象棋识别系统,该系统将传统的计算机视觉技术与深度学习相结合。它使用基于RANSAC的算法来定位棋盘,该算法计算棋盘到规则网格上的投影变换。使用两个卷积神经网络,然后预测扭曲图像中正方形的占用掩码,并最终对碎片进行分类。所描述的系统实现了0.23%的出错率每平方上的测试集,28倍,比目前的最先进的状态。此外,一个Few-Shot迁移学习方法的开发,能够适应推理系统,以前看不见的国际象棋集,使用只有两张照片的起始位置,获得每平方的准确度为99.83%的图像上的新的国际象棋集。代码、数据集和训练模型可在线获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑