Smile detection with Keras 😄. Uses OpenCV to detect and crop faces and Keras for trained model to detect if the face is smiling.
Neutral ------------------------------------###-------------- Smiling
Neutral ###-------------------------------------------------- Smiling
-
Download the project on your computer.
git clone https://github.com/sarvasvkulpati/Smiler
or download the ZIP file -
Go to the directory with the file:
cd Smiler
-
Download the required packages:
pip install -r requirements.txt
-
Run the project:
python smile.py
I've also set up a version of this script that works with the Raspberry Pi, to use it, just replace smile.py with smileRaspi.py in the getting started instructions above. You can run it with a webcam and some LED's so that it detects how long you've been smiling!