Sign inSign up

wisrovi/chess_api

By wisrovi

•Updated over 2 years ago

Analyze chess images and suggest the best moves

Image
0

154

wisrovi/chess_api repository overview

⁠Chess AI Assistant

Chess AI Assistant is a web application that utilizes deep learning and chess engine to analyze chess board images and suggest optimal moves.

⁠Features

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.

⁠Installation

Clone the repository:

bash

git clone https://github.com/wisrovi/chess_api/tree/main/predict_move_in_images⁠

⁠Install dependencies:

bash

pip install -r requirements.txt

⁠Usage

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.

⁠Dependencies

Python 3.7+
TensorFlow
Gradio
Stockfish

⁠Contributing

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.

Tag summary

Content type

Image

Digest

sha256:7c3899923…

Size

4.2 GB

Last updated

over 2 years ago

docker pull wisrovi/chess_api:v1.0