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.
How to log in to Windows 10 with your face
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);
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.