/neural-chessboard

♔ An Extremely Efficient Chess-board Detection for Non-trivial Photos ♔

Primary LanguagePythonMIT LicenseMIT

♔ Neural Chessboard ♔

An Extremely Efficient Chess-board Detection for Non-trivial Photos

arxiv:1708.03898

Computer Vision! Machine learning! A E S T H E T I C!

Getting Started

Dependencies Installation (macOS):

$ brew install opencv3               # toolkit for computer vision
$ pip3 install -r requirements.txt   # toolkit for machine learning

Dataset & Training:

$ python3 dataset.py
$ python3 train.py 50

Testing:

$ python3 main.py test

Example:

$ python3 main.py detect --input=photo.jpg --output=board.jpg

Producing FEN:

NON-PUBLIC ALGORITHM

$ python3 fen.py --input=board.jpg

Dependencies:


Raw Process:

BONUS (old gif):