Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Facial Expression-Based Move Detection Feature #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

omrode1
Copy link

@omrode1 omrode1 commented Jul 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant