FaceDetection
This activity is used to detect faces within an image.
Important Point: Click on the following images to get full screen view.
How to use the activity
Drag a MicrosoftVisionScope dropzone activity from the MicrosoftComputerVision package and drop it on the canvas. Enter the Service URL and Subscription Key in the Property window. DisplayName will be auto populated for all activities.
Note: Append the version of MicrosoftVisionScope activity in the Service URL.
Drag and drop a FaceDetection activity inside the MicrosoftVisionScope dropzone. Specify the local ImagePath to detect the face. Create a variable under the Output header in the Result field.
Figure 1
Drag and drop a WriteLog activity from the NotificationAutomation package. Provide the InputString and set the LogLevel. Execute.
Figure 2
Provided input is as follows:
Figure 3
The following example demonstrates the JSON response returned for an image containing a single human face as seen above.
Figure 3.1
For two faces, it will display the corresponding JSON response.
Figure 4 Figure 4.1