Skip to content

Messier-16/Reine-Chess-Scoresheet-Scanner

Repository files navigation

Reine: Chess Scoresheet Scanner

By Rithwik Sudharsan and Alex Fung

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.

Overview

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.

Sample Scoresheet


Key Links

How It Works

  1. Capture: Take a photo of the chess scoresheet.

    Capture

  2. Align: Use image processing techniques to align the scoresheet.

    Align

  3. Segmentation: Divide the scoresheet into individual move boxes.

    Segment

  4. Preprocess: Format each box to match the EMNIST dataset for optimal character recognition.

  5. Prediction: Pass each box through a Convolutional Neural Network (CNN) to predict the characters.

  6. Validation: Cross-check predictions by analyzing combinations of the top two character probabilities for each box to ensure a valid game sequence.

  7. Output: Download the output as a .pgn file (or .txt if incomplete) for analysis or editing.

    Output

  8. Analysis: Open the .pgn file in a chess engine of your choice to review and analyze the game.

    Analysis

About

Reine - Handwritten Forms Processing (Chess Scoresheet Scanner)

Resources

License

Stars

Watchers

Forks

Packages

No packages published