A Python script that recognizes facial expressions and displays an avatar image accordingly.
Demonstration video
Uses tensorflow, keras, and opencv to recognize facial expressions from camera.
Uses pygrabber to get a list of webcams available.
Currently, the script only recognizes 7 emotions: Anger, Disgust, Fearful, Happiness, Neutral, Sadness, Surprise.
Installation guide:
After downloading, run
pip install -r requirements.txt
to install the required packages to run the script.
If you do not have pip installed, follow the installation instructions here: https://pip.pypa.io/en/stable/installation/
After the script is loaded, change the avatar image file path for each emotion to your own image file.
Afterwards, hit 'Add Avatar'. You will see the avatar added in your current scene in the form of a image source.
If you have any bugs to report, feedback, suggestions, please contact andrewsoncha2@gmail.com or write on the issues section of the repository
Demonstration video
Uses tensorflow, keras, and opencv to recognize facial expressions from camera.
Uses pygrabber to get a list of webcams available.
Currently, the script only recognizes 7 emotions: Anger, Disgust, Fearful, Happiness, Neutral, Sadness, Surprise.
Installation guide:
After downloading, run
pip install -r requirements.txt
to install the required packages to run the script.
If you do not have pip installed, follow the installation instructions here: https://pip.pypa.io/en/stable/installation/
After the script is loaded, change the avatar image file path for each emotion to your own image file.
Afterwards, hit 'Add Avatar'. You will see the avatar added in your current scene in the form of a image source.
If you have any bugs to report, feedback, suggestions, please contact andrewsoncha2@gmail.com or write on the issues section of the repository