Sunday, 25 March 2012

Expression detection using neural networks in OpenCv



The expression classifiers work well for discerning between when a person is smiling and not smiling.For other emotions they perform relatively poorly. I believe this is due to a lack of data, its much harder to find images of people with facial expressions other than smiling.

For discerning between smiling with teeth baring and an angry expression with  teeth baring it performs surprisingly well, compared with how poorly it performs for discerning between fear , surprise and disgust. Perhaps its because these overlap?



All of the networks are using the pixel values of the images as inputs, face images are being scaled to 50x50 images which gives all the classifiers input sizes of 2500, hidden layers are between 9 and 12 neurons in size, and the output layer consists of 2 neurons one for a true value and one for a false value.

Monday, 19 March 2012

Sunday, 11 March 2012

Expression Detection

Seems to partially work, i believe i need more data for training the classifier and more inputs.

This was wrong, it was a completely fluke this worked at all as i had used far to many nodes in the hidden layer