question

PremSharma-0375 avatar image
0 Votes"
PremSharma-0375 asked PremSharma-0375 commented

How can we check the liveness of any image using Coginitive Face API Services?

Dear Team,

We are developing attendance app using Xamarin Forms and FACE API of Cognitive services. What we are doing is like this.

  1. Registering Photo : When user clicks on this button we open the mobile camera , user click his/her photograph and then we submit that image to Face API . No issue in that we have successfully implemented/registered the same using Cognitive Face API services.


  2. Verify User : When user clicks on this button again we open the camera, user click his/her photograph and then we send this image to FACE api for verification . No issue in that we have successfully implemented the same.

Now what issue we are facing is :-

On verification button, user shows his/her old saved photograph to camera and click its photo not the real live image. Obviously that matches the same and got verified successfully. Here we always want to take his/her live photo not the fake one because its attendance application also used to field staff. Any body can fool the app.

We want to stop clicking the fake images. We want to track liveness of the photo. If something available at camera level which can tell user not to show fake photos , show real live photo. Otherwise FACE API would not be useful for us.

Any help/response is highly appreciable.



Regards
Prem Sharma
India








dotnet-xamarinazure-cognitive-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered PremSharma-0375 commented

@PremSharma-0375 As per the guidance you can use the headpose attribute to detect a person rather than a image while using a live stream or camera and passing the images to face API. There is a sample WPF application on github on how it can be used. I hope this helps.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are using Xamarin Form for Both Andriod and IOS. We are using Xamarin Essential to open camera in which it is not getting implement.

0 Votes 0 ·