Now that you've created a Cognitive Service to tell you where noses are in pictures sent from the Knowzy mobile app, you'll need to create an endpoint to accept those pictures and talk to your Cognitive Service. This task requires you to set up a new Azure Function, and then code and design it to expose an HTTP endpoint that accepts an image file and returns the location of the nose(s) in any faces found in the picture.
This task has a dependency on Task 3.4.1 and all of it's prerequisites
This walkthrough assumes that you have:
- Create a new Azure Functions project in Visual Studio.
- Create an HTTP Trigger which will take in a picture and return data.
- Within your Function, use the Name and Key from Task 3.4.1 to connect to your Cognitive Service and run face detection on the image.
- Return the data for the nose location(s) from your Function.
- Position Knowzy nose(s) on top of the image in app.
This blog post shows off the Visual Studio tooling that you can use to create a new Azure function.
I found this explanation for Azure Functions of how to do HTTP and Webhook Bindings.
I was curious about what the Face API is capable of so I found the REST Docs.
This quickstart really walks through how to call the Face API from C#.