| """OpenCV with Python Blueprints
Chapter 7: Learning to Recognize Emotion in Faces |
| |
| An app that combines both face detection and face recognition, with a |
| focus on recognizing emotional expressions in the detected faces. |
| |
| The process flow is as follows: |
| * Run the GUI in Training Mode to assemble a training set. Upon exiting |
| the app will dump all assembled training samples to a pickle file |
| "datasets/faces_training.pkl". |
| * Run the script train_test_mlp.py to train a MLP classifier on the |
| dataset. This file will store the parameters of the trained MLP in |
| a file "params/mlp.xml" and dump the preprocessed dataset to a |
| pickle file "datasets/faces_preprocessed.pkl". |
| * Run the GUI in Testing Mode to apply the pre-trained MLP classifier |
| to the live stream of the webcam. |
| """ |