Reine is a high-accuracy, open-source tool for scanning chess scoresheets, which can be modified to process other types of form data as well. This project is licensed under the GPL License.
Reine takes an image of a chess scoresheet, processes it to recognize and align text, and outputs a Portable Game Notation (.pgn) file, which can then be analyzed in popular chess engines. This tool was inspired by and partially based on the work of Marek Śmigielski and others in the open-source community.
- Website: Reine Homepage
- Chess.com article: Scannable Chess Scoresheets
- Show HN post: Hacker News Discussion
- Alignment Inspiration: Marek Śmigielski’s Medium Article
-
Capture: Take a photo of the chess scoresheet.
-
Align: Use image processing techniques to align the scoresheet.
-
Segmentation: Divide the scoresheet into individual move boxes.
-
Preprocess: Format each box to match the EMNIST dataset for optimal character recognition.
-
Prediction: Pass each box through a Convolutional Neural Network (CNN) to predict the characters.
-
Validation: Cross-check predictions by analyzing combinations of the top two character probabilities for each box to ensure a valid game sequence.
-
Output: Download the output as a .pgn file (or .txt if incomplete) for analysis or editing.
-
Analysis: Open the .pgn file in a chess engine of your choice to review and analyze the game.