Contact Us

© 2016 Thunkable


Why you might want to use this component?


Artificial intelligence may be the technology that shapes our world more than any other over the next 50 years. . From medical diagnostics to self driving cars, the ability for machines to mimic and potentially surpass some of the complex tasks that humans can perform is both extremely exciting and terrifying.  The Microsoft Emotion Recognizer component puts the power of one of the most powerful artificial intelligence tools currently available--the Microsoft Emotion API--in the palm of your hand and the hands of your users.  Select any picture you’ve already taken or take a new one and you’ll get back the most likely emotion that the machines can detect (from a list that includes happiness, anger, contempt, sadness, fear, neutral or surprise). The Microsoft Emotion API learns its emotions by training over millions (if not billions) of photos and will continue to improve as it trains on more data. 







Microsoft Emotion Recognizer

• Properties


ServerUrl

Distinct Url required for the Emotion API.  Do not change the DEFAULT serverUrl unless you are trying to access this component from China, in which case you need to provide a different server url. 


SubscriptionKey

Unique key from Microsoft Cognitive Services.  You are free to use the DEFAULT key that is already provided if you expect to process less than 1000 images per month.






Events





• Frequently Used Blocks


① Take a picture, send it to the Emotion Recognizer and it returns with the Most Likely Emotion and its Emotion Score (out of 1).


Important: You can only select images that have a single person in it to get a result.


Set-up (None)

No set-up is required. 


Microsoft’s Emotion API is a paid service after a certain amount of free use.  Thunkable is providing its own DEFAULT subscription key for its users to get started quickly but reserves the right to void or modify the key that is provided in the future . This may break apps that have been packaged using Thunkable’s subscription key. 








Important: If you expect your app users to process more than 1000 images per month, please create your own key by following Microsoft’s instructions here. (Currently, it is free up to 30000 images per month)



② Select an Image from your phone, send it to the Emotion Recognizer and it returns with the Most Likely Emotion and its Emotion Score (out of 1).



Important: If you expect your app users to process more than 1000 images per month, please create your own key by following Microsoft’s instructions here. (Currently, it is free up to 30000 images per month)

ResponseCode

If okay, will return a code of 200.  If there is an error, it will return 400


ResponseContent

If okay, will return scores for all emotions analyzed or an explanation of the error in computer (JSON) language


MostlikelyEmotion

If okay, selects from happiness, anger, contempt, sadness, fear, neutral or surprise to describe the image’s most likely emotion


MostLikelyEmotionScore (from 0 to 1)

A score closer to 1 (1 = full confidence, 0 = no confidence) indicates the machine’s higher confidence in the most likely emotion



GotReponse (responseCode, responseContent, mostLikelyEmotion, mostLikelyEmotionScore)

After an image is processed through the Emotion Recognizer, returns:

Artificial Intelligence

Microsoft Emotion  Recognizer

Microsoft Image Recognizer