Opensource deep learning framework TensorFlow is used in Facial Expression Recognition(FER). The trained models achieved 65% accuracy in fer2013.
FER requires:
- Python (>= 3.3)
- TensorFlow (>= 1.1.0) Installation
- OpenCV (python3-version) Installation
Only tested in Ubuntu and macOS Sierra. Other platforms are not sure work well. When problems meet, open an issue, I'll do my best to solve that.
The first stage demo can recognize your facial expression, the second stage demo adds voice recognition functions.
To run the first stage demo, just type:
python demo.py
Then the program will creat a window to display the scene capture by webcamera. You need press SPACE key to capture face in current frame and recognize the facial expression.
To run the second stage demo, just type:
python demo2.py
Then the program will creat a window to display the scene capture by webcamera. It will continually capture your facial expression and typing sounds, showing the results and give warm words to you.