Analyze chess images and suggest the best moves
154
Chess AI Assistant is a web application that utilizes deep learning and chess engine to analyze chess board images and suggest optimal moves.
Image Input: Accepts chess board images from various sources including file upload, camera, and clipboard.
FEN Extraction: Utilizes TensorFlow-based neural network to extract the current board position in FEN format.
Move Prediction: Uses Stockfish chess engine to predict the best move for both white and black players.
Move Rendering: Renders the predicted move on the board image, highlighting it with an arrow.
User Interface: Provides a user-friendly interface to interact with and visualize the predicted move.
Clone the repository:
bash
git clone https://github.com/wisrovi/chess_api/tree/main/predict_move_in_images
bash
pip install -r requirements.txt
Run the web application:
bash
python web.py
Open your web browser and go to http://127.0.0.1:5051/
Upload a chess board image or capture one using your camera.
View the predicted optimal move highlighted on the board image.
Python 3.7+
TensorFlow
Gradio
Stockfish
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes. License
This project is licensed under the MIT License - see the LICENSE file for details.
Content type
Image
Digest
sha256:7c3899923…
Size
4.2 GB
Last updated
over 2 years ago
docker pull wisrovi/chess_api:v1.0