Skip to content

How To Check If The Selfie Your Users Take Is Live Using This API

Do you want to check if the selfies your users take are live? If so, you can do it by using this API!

A “live selfie” is a selfie that was taken with a front-facing camera and then uploaded to social media. On the other hand, a “non-live selfie” is a selfie that was taken with a rear-facing camera and then uploaded to social media. In addition, checking if a selfie is live will help you understand how people use your app or website; and how they interact with other users; which will help you improve your product in the future.

So, if you’re looking for a way to determine whether a selfie is live, we advise using an API. A piece of software called multiple face detector API enables two applications to communicate with one another in order to exchange data, send requests, and get responses. So, if you need to find out if a selfie is live; then you should use an API that allows you to verify whether a URL is live or not.

How To Check If The Selfie Your Users Take Is Live Using This API

Taking selfies has become a daily activity for many people, but sometimes this can lead to problems. One of these problems is when the image is not live, which means that it has been taken before and then edited. This is not a problem in itself, but it can be when you are using the image for different purposes. For example, if you want to use it for social media or dating apps, you may want to avoid using images that have been edited or taken before.

This is because edited images may hide information about their original state. For example, if someone has had plastic surgery, an edited selfie could hide it and make them look younger than they really are. Or if someone has a big bruise or swelling on their face, an edited selfie could make it look like they don’t have any problem at all.

Face Liveness Check API

How To Check If The Selfie Your Users Take Is Live Using This API

Face liveness detection ensures that the image you have been given isn’t a picture of a photograph, a passport-sized image, or an image of another person on a cell phone/laptop screen, which helps in the identification of fraud. To ensure that the selfie is real and belonged to the person you were expecting, use it in conjunction with the Face Comparison Validator API

The picture URL that you want to check is sent to this API as input. It will include details on the state of the face, whether the picture was taken in real time, and where it is in the picture. 

How To Start Using This Face Liveness Check API:

You must first register for a Zyla API Hub account in order to acquire an API key that you may use to access any of the APIs that are made available there.

Second, to authenticate your API key, put your bearer token in the Authorization header. When you’re done, you’ll be ready to access the API.

It is necessary to click the “START FREE TRIAL” button first. Then, provide the URL of the image you want to analyze as an argument when calling the endpoint Detect Faces. You can get the solution right away by pressing “test endpoint”! When using this API, your choices are limited to the “Check Liveness” and “Get Results” endpoints.

[
{
"action": "check_photo_liveness",
"completed_at": "2022-09-13T20:52:02+05:30",
"created_at": "2022-09-13T20:52:01+05:30",
"group_id": "123",
"request_id": "d3dc6e39-a4fc-4d6d-88c8-4c23b9ddd360",
"result": {
"are_eyes_open": true,
"confidence": 99,
"face_box": {
"height": 490,
"left": 345,
"top": 85,
"width": 352
},
"face_coverage": {
"message": "optimal",
"percentage": 29,
"status": "optimal"
},
"face_detected": true,
"face_quality": {
"message": "optimal",
"status": "optimal"
},
"is_face_cropped": false,
"is_live": false,
"multiple_faces_detected": false,
"review_required": false
},
"status": "completed",
"task_id": "123",
"type": "face"
}
]

The “Get Results” API gave us this response, which contained a review of the submitted image and its request id.

Published inAd TechAPIAppsApps, technologyArtificial Intelligence (AI)E-commerceTechnologyTools
%d bloggers like this: