Windows Biometric Framework, problem with WINBIO_TYPE_FACIAL_FEATURES

Ekaterina 1 Reputation point
2020-04-23T17:19:26.02+00:00

Good day!
My team and I want to use Windows Biometric Framework for our current project. We use HP EliteBook 840 G6 with HD IR webcam.
All examples in the documentation are created for WINBIO_TYPE_FINGERPRINT, but we need to use WINBIO_TYPE_FACIAL_FEATURES. Unfortunately, we did not find examples for this type in the documentation, only for the fingerprints type. We ran the fingerprints code from the examples, everything works fine. But for type WINBIO_TYPE_FACIAL_FEATURES we faced with the following problems:

1) Function WinBioLocateSensor returns hresult = 0x8009802c (WINBIO_E_INVALID_OPERATION - 0x8009802C - (32812) The requested operation is not valid for the current state of the session or biometric unit.). Biometric session opened successfully by calling WinBioOpenSession as required in the documentation. Also we tried open asynchronous session handle by calling WinBioAsyncOpenSession. We got the same results.
Could you explain why this happens? The documentation says that these values apply only for Windows 10 and later. We use Windows 10 version 1909 (OS Build 18363.657)

2) We get UnitId using the WinBioEnumBiometricUnits function, which successfully finds the id of biometric device. But after that, we ran into a problem with the WinBioEnrollCapture function (WinBioEnrollBegin completed successful). WinBioEnrollCapture returns hresult = WINBIO_E_BAD_CAPTURE (From the documentation: The sample could not be captured. Use the RejectDetail value for more information). And RejectDetail = 0 in this case (from the documentation: If the capture succeeded, this parameter is set to zero). Also we tried calling the function WinBioEnrollCapture in a loop, were received 15 times WINBIO_E_BAD_CAPTURE and the process was finished with hresult = 0x8009802c.

Could you help us with these problems, please?

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,889 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Teemo Tang 821 Reputation points
    2020-04-24T06:15:55.7+00:00

    Welcome to Microsoft Q&A Platform.

    In fact, for Win32 app development question, you’d better ask for help from specific developer community

    Such as this similar case:

    https://developercommunity.visualstudio.com/content/problem/307903/using-windows-biometric-framework-to-do-face-recog.html

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn.

    Thanks for your understanding and cooperating.

    0 comments No comments