chess-engine
chess-engine copied to clipboard
Add Facial Expression-Based Move Detection Feature
This pull request adds a new feature to the chess game that allows players to make moves using facial expressions detected through their webcam. The feature uses a pre-trained neural network model to predict facial expressions and translate them into corresponding chess moves.
Changes Made Facial Expression Capture and Prediction:
Integrated a webcam capture process using OpenCV to continuously capture facial expressions. Added a pre-trained model (expression_model.h5) to predict facial expressions. Mapped predicted expressions to corresponding chess moves using a label map. Chess Game Integration:
Modified the main game loop to include a separate process for capturing and predicting facial expressions. Updated the game logic to process moves from the predicted expressions and make the corresponding chess moves.