Want to know what somebody’s really feeling – just by looking at their photograph? Well, now you can, thanks to the Emotion Demo.

The new software, developed by Microsoft, uses artificial intelligence to identify emotions in the photograph of a face.

Upload a photograph to the Project Oxford website and emotion recognition software will examine it and seek to detect emotions such as anger, contempt, disgust, fear, happiness, sadness and surprise. It will also decide if an expression is ‘neutral’.

For example, in the main photo Good Morning Britain presenter Susanna Reid's emotion is pure happiness at the Spectre premiere. 

Project Oxford comprises of APIs and SDKs which developers can use to add intelligent capabilities – such as language understanding, face recognition and speech recognition – to their apps.

Microsoft has previously developed TwinsOrNot, which detects if you and a friend are twins, and How-Old.net, which guesses your age based on a photograph.

We put some famous faces to the test to find out exactly what emotions their photographs revealed. The majority came up as neutral – with telling secondary emotions…

Boris Johnson with Microsoft Facial recognition result

It’s happiness, followed by neutral and contempt, from Boris Johnson during his tour of the Middle East.

Duchess of Cambridge with Microsoft Facial recognition result

The Duchess of Cambridge is happy talking to her husband William.

Judi Dench with Microsoft Facial recognition result

Dame Judi’s expression belies a lot of emotions: it’s neutral and then near equal-parts happy, sad and surprised.

David Cameron with Microsoft Facial recognition result

Prime Minister David Cameron’s expression is neutral – followed by anger and disgust.

Jeremy Corbyn with Microsoft Facial recognition result

Labour leader Jeremy Corbyn’s face is neutral and sad.

Sep Blatter with Microsoft Facial recognition result

Disgraced former FIFA president Sepp Blatter’s expression is neutral, with contempt.

Jeremy Clarkson with Microsoft Facial recognition result

Jeremy Clarkson’s face is neutral, but displaying contempt. It was taken ahead of a soccer match between Chelsea and Paris Saint Germain. Pre-match nerves, perhaps?

Why not try out the Emotion Recognition demo and let us know what you think in the Comments below.