Example app that uses Realm, Realm Functions, Azure Functions and Cognitive Services to link an emotion to a picture
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
EmotionPicture.gif
LICENSE
README.md

README.md

EmotionPicture

Example app that uses Realm, Realm Functions, Azure Functions and Cognitive Services to link an emotion to a picture

Realm Function

The Realm function runs on the Realm Object server and listens for changes on a specific Realm. Whenever a picture is inserted, the Realm Funtion will call an Azure Function which will return the most present emotion. This emotion is then written to the Emotion Property of the EmotionalPicture object. The changes will be reflected on the UI immediatley.

The reason why I don't call into Cognitive Services directly? I just don't like writing NodeJS, so I've written an Azure Function in which I can write C#. :-)

Azure Function

The Azure Function receives the picture data and sends it to Cognitive Services which will analyse the image. A collection of emotions will be returned from CS, the Azure function filters out the most present emotion and returns this as a result.

alt text