![]() |
Spoofing Detection Engine
1.0
|
The Spoofing Detection Engine is a software library designed to determine whether a face detected in an image or video stream is genuine or a spoof (a presentation attack, such as showing a photo or a video of a face to the camera). The engine employs a specialized neural network to classify detected faces as either "real" or "spoof," providing a critical layer of security for face-based authentication systems.
SpoofClassifier inherits from this class.core::face::FaceDetectorYunet: This class is used for the initial, essential step of detecting faces in the input image or video frame. The detected face region is the input for the spoof classifier.
core::face::FaceMesh: While not directly used for the spoof classification itself, this component can provide detailed facial landmarks which are often used for pre-processing steps like face alignment to ensure consistent input to the classifier.
SpoofEngine::init(resourcePath) initializes the main engine and loads all necessary models, including the weights for the SpoofClassifier.SpoofEngine::process(input, output) executes the full pipeline on each frame. It detects faces and then, for each face, runs the spoof classifier to determine its authenticity, visualizing the result on the output image.core::NeuralClassifierBase::runNetwork(frame, detection) is called by the engine on an instance of SpoofClassifier to get the classification result (real or spoof) for a detected face.FaceDetectorYunet::process(frame) finds all faces in the input frame that need to be analyzed.The project files are organized in the C:/Projects/Engine/AntalEngine/Engine directory. Key header files include: