Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ankitasharma1 on github.
  • I am anquixote (https://keybase.io/anquixote) on keybase.
  • I have a public key ASBBCJVTQqcpJkl2p1b5TtppgVoujlcxeKPM1MQPAyR1pAo

To claim this, I am signing this object:

@ankitasharma1
ankitasharma1 / python2.7
Created November 12, 2016 21:27 — forked from jsturtevant/python2.7
Python Cognitive Services Strongest Emotion
import httplib, urllib, base64
import json
def get_strongest_emotion(raw_result):
"""
Returns:
The strongest emotion in image or if there's multiple faces a list representing
strongest emotion in each face is returned.
MIT liscence for this function from https://github.com/zooba/projectoxford
"""