An Extremely Efficient Chess-board Detection for Non-trivial Photos
Computer Vision! Machine learning! A E S T H E T I C!
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:
- Python 3
- Scipy 0.19.1
- OpenCV 3
- Tensorflow (with tflearn support)
- Pyclipper
Raw Process:
BONUS (old gif):