JcBernack / WinBioNET

Managed wrapper in C#/NET for the Windows Biometric Framework
MIT License
58 stars 14 forks source link

WBF FacialFeatures support? #4

Open aswierczek opened 8 years ago

aswierczek commented 8 years ago

Hey @JcBernack I know this is not really directly related to your WinBio wrapper (BTW, AWESOME WORK!), but I'm trying to verify if WinBio framework works with facial recognition which was introduced in Windows 10 (aka Windows Hello). I've modified your wrapper adding appropriate biometric device type and I was able to enumerate devices (in my case this is basically Kinect v2 with special driver installed as described here) but I wasn't able to use it in my custom app either as System pool device or a Private pool device. Let me know if you have some info on this.

JcBernack commented 8 years ago

Hey @aswierczek, glad you like it!

I have not tried anything related to facial recognition and I wonder how you got it to show up as a sensor. The documentation on msdn does not even list a sensor type for that. On the other hand, parts of the documentation do mention facial recognition, so it is probably partially outdated.

On the page of WinBioEnrollSelect there are some remarks about facial recognition, e.g. it says you need to use an asynchronous session. Unfortunately my wrapper does not yet contain any of the asynchronous methods or WinBioEnrollSelect (as it is not needed for fingerprints and I thought that was the only application for this framework up to now).

If you add features to this wrapper or get something to work regarding facial recognition I would be happy to hear from it and merge any PRs coming my way. :+1:

aswierczek commented 8 years ago

To enumerate facial rec sensor I only needed to add and use new entry to WinBioBiometricType with value of 0x2, you can check all the possible values for this enum in http://csrc.nist.gov/publications/nistir/NISTIR6529A.pdf (page 8).

The WinBioEnrollSelect function you mentioned shed some light on the topic, as it's one of a few functions available only in Win10, so it clearly needs to be related to new features like facial recognition. Not sure why other pages are not updated accordingly, which is absolutely misleading!

I cannot promise a PR at the moment as I'm not sure if we even use WBF in our project eventually, but thanks for your feedback so far.