chess-engine icon indicating copy to clipboard operation
chess-engine copied to clipboard

Add Facial Expression-Based Move Detection Feature

Open omrode1 opened this issue 7 months ago • 0 comments

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.

omrode1 avatar Jul 24 '24 06:07 omrode1