The aim of this project is to put in practice some of the recent adquired Azure knowledge. The UI is very simple and its only porpuse is to allow the user post images as input and see the computed results as output.
Now days a very common practice on internet is posting pictures on social networks. Most of them are about people :). We want to messaure how happy people are in posted pictures. We provide a view with the total people in pictures and theirs happiness average on every day.
- User posts a picture containing faces -the more faces, the better- into the webserver
- The posted date is set randomly with an offset of +- 5 days to simulate many inputs in different days.
- The picture is stored in blob storage
- A funtion is triggered(BlobTrigger) and received the posted picture,
- Gets face api key from key vaults
- Sends picture to the face service to be processed
- And stores results in a cosmos db container
- A second function is triggered(CosmosDBTrigger) receiving the change feed from cosmos db,
- Processes the changes
- And updates the happiness per day projection in a different container
- A third http functon(HttpTrigger) is in charge to provide all data from the materilized view when user requires it
- User can see the consolidated data on the same page. It might be possible you have to use the Refresh button to update data :)