Windows WPF App

The Windows Presentation Foundation (WPF) sample app provides a wide range of features to explore. It demonstrates how to do the following:

Main Window View

The Main Window view has the following features:

Face Registration View

Names can be registered with detected faces.

Note: Valid account credentials entered in Account Settings are required to use face registration.

Account Settings view

To enable identification, enter your SAFR Cloud account information.

Cloud accounts can be created here: https://safr.real.com/signup?sector=enterprise&accountType=local

Recognition Settings View

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.

Shared Image

In the Main Window view, click Share to save the currently detected face and name. Below is an example of a shared image:

Technical Notes

To compile the code and run the app, do the following:

  1. Download the SAFR Windows SDK from the Download Portal.
  2. Install the SAFR SDK NuGet package.
  3. In the package manager console, do the following:
    1. Run Install-Package C:\ArgusSDK\nu-package\RealNetworks.Argus.SDK.<SDK Version Number>.nupkg
    2. Set the Solution Platforms selector to x64. The Any CPU option is not supported.

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.

See Also