arXiv:2511.11522cs.CVcs.LG2025-11被引 1

用手机拍棋盘,自动转成可计算的棋局代码

CVChess: A Deep Learning Framework for Converting Chessboard Images to Forsyth-Edwards Notation

  • 用带残差连接的CNN识别棋子,支持多种角度光照
  • 在10800张图上达到98.7%准确率,生成标准FEN字符串
  • 适合实体棋局爱好者,让线下对弈也能智能辅助

疫情后国际象棋观看人数激增,主要得益于在线学习平台的普及。然而,实体棋局仍缺乏类似数字对弈的智能辅助,造成线上线下体验割裂。本文提出CVChess,一种将棋盘图像转换为福尔辛-爱德华记号(FEN)的深度学习框架,后续可输入在线棋类引擎获取最优走法。该方法采用带残差层的卷积神经网络(CNN),从智能手机拍摄的棋盘图像中识别棋子。系统通过多步骤处理:使用霍夫线变换进行边缘检测,投影变换实现俯视对齐,分割64个方格,并利用残差CNN对13类目标(6种白棋、6种黑棋及空格)进行分类。残差连接有助于保留低层视觉特征,增强深层特征提取能力,提升训练稳定性和精度。模型在包含10800张标注图像的Chess Recognition Dataset(ChessReD)上训练与评估,覆盖多样光照和视角条件。最终分类结果编码为标准FEN字符串,可直接输入棋类引擎生成最优走法。

原文摘要 · Abstract (English)

Chess has experienced a large increase in viewership since the pandemic, driven largely by the accessibility of online learning platforms. However, no equivalent assistance exists for physical chess games, creating a divide between analog and digital chess experiences. This paper presents CVChess, a deep learning framework for converting chessboard images to Forsyth-Edwards Notation (FEN), which is later input into online chess engines to provide you with the best next move. Our approach employs a convolutional neural network (CNN) with residual layers to perform piece recognition from smartphone camera images. The system processes RGB images of a physical chess board through a multistep process: image preprocessing using the Hough Line Transform for edge detection, projective transform to achieve a top-down board alignment, segmentation into 64 individual squares, and piece classification into 13 classes (6 unique white pieces, 6 unique black pieces and an empty square) using the residual CNN. Residual connections help retain low-level visual features while enabling deeper feature extraction, improving accuracy and stability during training. We train and evaluate our model using the Chess Recognition Dataset (ChessReD), containing 10,800 annotated smartphone images captured under diverse lighting conditions and angles. The resulting classifications are encoded as an FEN string, which can be fed into a chess engine to generate the most optimal move

图像识别棋类AIFENCNN

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。