It detects one of 7 basic emotions: happy, surprised, sad, angry, disgust, fear, contempt. Or 8-th expression, neutral. It works live and you usually need to make a very clear expression, like an actor.
It is very good at identifying when someone is neutral, happy or surprised. It is fine when it comes to anger and sadness. Disgust, fear and contempt are for it quite difficult to recognize.