Skip to content

This repository helps to identify whether the presented image contains the living person or just a static image

Notifications You must be signed in to change notification settings

Bishow-99/Advance-Liveness-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liveness-Detection

The main aim of liveness detection is to confirm that the biometric data comes from a real person and not from a fake image, video, mask, or any other trickery.

Demo

test_liveness.mp4

How does it Works?

Here are the steps to find the living person in the frame:

(i) Utilize Google's MediaPipe package to locate key points on a person's face.

(ii) Analyze these points to measure changes in the distance between specific landmarks, such as the corners of the eyes. When the distance between these points becomes smaller, it suggests that the person is blinking their eyes.

(ii) Moreover, this repository covers one of the important topics which is camera calibration, which is used to find the head position of the person.

Camera Calibration 3D to 2D Transformation

In order to find the position of the face or head we need to understand how camera calibration works.

Camera Calibration is the process of transforming 3D world coordinates into 2D image coordinates. It involves establishing relationships between the camera's internal parameter(intrinsic) and position and orientation in the world that is called extrinsic parameters.

(a) Intrinsic Parameters:

Intrinsic parameter relate to the internal characteristics of the camera that includes:

* Focal Length: The focal length of the camera determines the distance between the lens and image sensor or it indicates how much the camera can zoom in and zoom out.

* Principal Point(c_x, c_y): The coordinates of the optical center which is the point where the optical axis(the imaginary line that passes from the camera's lens through its center to the image sensor) intersects the image pane.

*Lens Distortion: The camera may introduce radial distortion which can cause straight lines to appear as curved.

(b) Extrinsic Parameters:

It defines the camera position and orientation in the real world, which contains:

* Rotation Matrix(R): It describes the camera's orientation relative to a global coordinate system. It tells you how much the camera is tilted, turned, and rolled.

* Translation Vector(T): It represents the camera's position in the same global coordinate system. Furthermore, it provides information on the camera's location in terms of its distance from a reference point in the world and its position along the X, Y, and Z axes.

Screenshot from 2023-11-03 11-32-57

About

This repository helps to identify whether the presented image contains the living person or just a static image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages