From e5746ec3b39935a5d0b734f0bfcd2da685a304bb Mon Sep 17 00:00:00 2001 From: Linmiao Xu Date: Sat, 30 Nov 2019 18:46:08 -0500 Subject: [PATCH] Add example program invocation to readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6ebe3b7..eb474f1 100644 --- a/README.md +++ b/README.md @@ -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` + + + +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/)