Azure Cognitive Services Vision / Face - How to detect if photo taken is from another photo

Cezar Pimentel 46 Reputation points
2022-05-05T01:40:18.813+00:00

Hi there! I'm finishing a face recognition app that uses Azure Cognitive Services to identify users.

The problem is: I need to check if the photo taken by the user is a live picture from his face, or if he is taking a picture from another picture.

I mean, I need to check if a person is currently in the place he/she is meant to be, so I need a live photo from his/her face. Another colleague or co-worker could simply run the app and take a picture from another picture containing his friend face.

Is it possible to check if the picture taken is from a live face or a static picture taken previously and displayed on a smartphone or computer screen?

Thanks in advance!

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
316 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,421 questions
{count} vote

3 answers

Sort by: Most helpful
  1. romungi-MSFT 42,321 Reputation points Microsoft Employee
    2022-05-05T13:17:47.507+00:00

    @Cezar Pimentel You can detect head gestures like nodding and head shaking by tracking HeadPose changes in real time with your app. You can use this feature as a custom liveness detector. This is basically an attribute that is available with the detect API, by tracking this value by passing multiple frames to the detect API you can determine if an actual face or an image was used. I hope this helps!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.


  2. Qingfen Lin 0 Reputation points Microsoft Employee
    2024-02-26T04:42:38.89+00:00

    We have a face liveness service in public preview which can detect whether a live face is presented in front of the mobile. Are You Alive: Enhancing Azure AI Vision Face API with Liveness Detection - Microsoft Community Hub And here is the tutorial Detect liveness in faces - Azure AI services | Microsoft Learn

    0 comments No comments

  3. Qingfen Lin 0 Reputation points Microsoft Employee
    2024-02-26T04:43:07.7566667+00:00

    remove duplicate.

    0 comments No comments