The Windows Presentation Foundation (WPF) sample app provides a wide range of features to explore. It demonstrates how to do the following:
The Main Window view has the following features:
Names can be registered with detected faces.
Note: Valid account credentials entered in Account Settings are required to use face registration.
To enable identification, enter your SAFR Cloud account information.
Cloud accounts can be created here: https://safr.real.com/signup?sector=enterprise&accountType=local
In this view, you can enable or disable different types of recognition and detection parameters.
Under Detection, Minimum Searched Face Size defines the minimum face size that can be detected. A searched size of 80 pixels, for example, can manage to detect faces as small as 60x60 but with lower certainty. Lowering this number enables SAFR to detect much smaller faces but also greatly increases CPU usage.
Note: This parameter does not impact face recognition accuracy.
In the Main Window view, click Share to save the currently detected face and name. Below is an example of a shared image:
To compile the code and run the app, do the following:
Install-Package C:\ArgusSDK\nu-package\RealNetworks.Argus.SDK.<SDK Version Number>.nupkg
This sample has been built using the Model-View-ViewModel (MVVM) design pattern: https://blogs.msdn.microsoft.com/msgulfcommunity/2013/03/13/understanding-the-basics-of-mvvm-design-pattern/
ApplicationModel.cs contains all the code using the SAFR SDK.