Detecting Smiles : )

I wrote some code to detect smiles in a video. This was probably my first real ML project after doing the introductory MNIST project. Github TF, Github OpenCV

Model

The model is quite simple. It uses a haar cascades face detection algorithm to detect a face. After some post processing, this image is passed to a simple CNN that performs logistic regression to determine if the subject is smiling. Easy! I used OpenCV for the face detector and Tensorflow/OpenCV for the neural network. The results can be seen above.