By Admin on Saturday, 09 January 2021
Category: All

Facial Recognition

​From sgcBiometrics 2.0, Facial Recognition is supported using a compatible Windows Hello camera, this allows to monitor if there is a human person in front of the camera (you can know if there is someone, identify, arrives, departs and more). Facial Recognition and Identification is supported too.

Facial Recognition is only supported by system sensor pool, so you must first enroll a user using Windows Hello (WBF doesn't allow to enroll faces, only fingerprints are supported). You can register more than one face in your windows, you only must create a new windows account and attach the new face to this account.

Requirements

Log in Windows 10 with your face

How to log in to Windows 10 with your face

Basic Usage 

1. Drop a TsgcWinBioFacial in any form or datamodule.

2. Check if there is a Session opened, if not, call InitializeSensors method to start to use your sensor. The Facial Recognition component uses Asynchronous mode, so set a Timeout to Initialize sensors (in milliseconds).

  if not TsgcWinBioFacial1.SessionIsOpen then

    TsgcWinBioFacial1.InitializeSensors(10000);

  a. If initialization is successful, then OnEnumBiometricUnit event will be called.

  b. If there is any error, OnError event is raised.

3. Call FacialRecognize to try to recognize the face, if returns true, means that face has been recognized.

  if TsgcWinBioFacial1.FacialRecognize then

    ShowMessage('Face Recognized')

  else

    ShowMessage('Unknown Face');

4. You can get the Face Identification Id calling the method FacialIdentify, if successful returns the AccountSid as a string.

  ShowMessage(TsgcWinBioFacial1.FacialIdentify);

This browser does not support the video element.

Related Posts