- Face Detection
This code is provided for demo purposes only for course AI-102.
- Azure Subscription
- Visual Studio 2019 or higher
- Windows Presentation Foundation
-
Open solution file
FaceAnalysis.sln
in VS 2019. -
Build and run project. The white background window appears with settings form. If the settings form is not appear by default select 'Show/Hide Settings'. Update form with your key and region of the cognitive service.
-
Select from
Mode
Face then start camera by clicking on button 'start camera' -
Observe the result. Your face from the camera should be shown with borders and information of age and gender. Even a mask can not prevent face detection:
-
You also can monitor top emotion with
Mode
Emotion on the face from the camera. -
Another
Mode
Celebrity helps you to detect celebrity: