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

Prem Sharma 1 Reputation point
2021-06-13T03:20:06.507+00:00

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

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,866 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,476 Reputation points Microsoft Employee
    2021-06-14T07:47:39.817+00:00

    @Prem Sharma 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.