얼굴 인식

· Components

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.

얼굴 인식시스템 센서 풀에서만 지원돼요. 먼저 Windows Hello를 사용해 사용자를 등록해야 해요(WBF는 얼굴 등록을 허용하지 않으며 지문만 지원해요). Windows에 여러 얼굴을 등록할 수 있으며, 새 Windows 계정을 만들고 해당 계정에 새 얼굴을 연결하면 돼요.

요구 사항

Log in Windows 10 with your face

Windows 10에서 얼굴로 로그인하는 방법

Basic Usage 

1. 임의의 폼이나 데이터모듈에 TsgcWinBioFacial을 추가하세요.

2. 세션이 열려 있는지 확인하고, 열려 있지 않으면 InitializeSensors 메서드를 호출해 센서 사용을 시작하세요. 얼굴 인식 컴포넌트는 비동기 모드를 사용하므로 센서 초기화에 대한 타임아웃(밀리초)을 설정하세요.

  if not TsgcWinBioFacial1.SessionIsOpen then

    TsgcWinBioFacial1.InitializeSensors(10000);

  a. 초기화에 성공하면 OnEnumBiometricUnit 이벤트가 호출돼요.

  b. 오류가 발생하면 OnError 이벤트가 발생해요.

3. FacialRecognize를 호출해 얼굴 인식을 시도하세요. true를 반환하면 얼굴이 인식된 거예요.

  if TsgcWinBioFacial1.FacialRecognize then

    ShowMessage('Face Recognized')

  else

    ShowMessage('Unknown Face');

4. FacialIdentify 메서드를 호출해 얼굴 식별 ID를 얻을 수 있어요. 성공하면 AccountSid를 문자열로 반환해요.

  ShowMessage(TsgcWinBioFacial1.FacialIdentify);

});