Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maciejczyzewski/neural-chessboard

♔ An Extremely Efficient Chess-board Detection for Non-trivial Photos ♔
https://github.com/maciejczyzewski/neural-chessboard

chess chess-board computer-vision machine-learning

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

## ♔ Neural Chessboard ♔

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

[arxiv:1708.03898](https://arxiv.org/abs/1708.03898)

![](docs/animated.gif)

> _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:__

- [Python 3](https://www.python.org/downloads/)
- [Scipy 0.19.1](https://www.scipy.org/)
- [OpenCV 3](http://opencv.org/)
- [Tensorflow](https://www.tensorflow.org/) (with [tflearn](https://github.com/tflearn/tflearn) support)
- [Pyclipper](https://github.com/greginvm/pyclipper)

----

**Raw Process:**

![](docs/appendix.jpg)

**BONUS (old gif):**

![](docs/steps.gif)