lucas-mior / zerdax2

Chess position recognizer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zerdax2

Chess position recognizer.

Disclaimer

This program is a work in progress and may not work as expected.

Installation

Clone and install dependencies

$ git clone https://github.com/lucas-mior/zerdax2
$ cd zerdax2
$ pip install -r requirements.txt

Compile filter library

$ make

Usage

$ python ./zerdax2.py <image> [<image2> ...] [-v=LEVEL]

Resulting FEN is written to standard output aswell as position diagram using characters.

Input image example with detection of pieces and colors

Input image example

Utilities

  • algorithm.py: Run algorithm on images passed as arguments without reading standard input for filenames and with default logging level.
  • draw.py: Superimpose 2 images
  • fen.py: Compress FEN given as argument and draw position using characters
  • objects.py: Run piece detection and save results on image.

About

Chess position recognizer.

License:GNU Affero General Public License v3.0


Languages

Language:Python 79.2%Language:C 20.0%Language:Makefile 0.8%