Skip to content

lucas-mior/zerdax2

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages