Skip to content

Commit

Permalink
Add example program invocation to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
linrock authored Nov 30, 2019
1 parent 14dd9ea commit e5746ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
Uses a convolutional neural network to recognize the position of pieces
on a chessboard image.

If you have an image of a chessboard in `chessboard.png`

<img src="https://user-images.githubusercontent.com/208617/69907303-d526b400-13a0-11ea-982f-47dc7cacecdc.png" width=320 />

Run the program like this

`./recognize.py chessboard.png`

To get the chessboard position in [FEN](https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation) notation

`111rkb1r/1pp11ppp/11n1q1n1/p111Pb11/11Pp1111/PN111NB1/1P1QPPPP/111RKB1R`

## Getting started

Training and using the neural network requires [Tensorflow 2](https://www.tensorflow.org/)
Expand Down

0 comments on commit e5746ec

Please sign in to comment.