face_anti_spoofing_detector 0.0.3 copy "face_anti_spoofing_detector: ^0.0.3" to clipboard
face_anti_spoofing_detector: ^0.0.3 copied to clipboard

Flutter plugin that provides passive liveness detection for facial recognition systems — ensuring that the detected face belongs to a live person rather than a photo, video.

face_anti_spoofing_detector #

face_anti_spoofing_detector is a Flutter plugin that provides passive liveness detection for facial recognition systems — ensuring that the detected face belongs to a live person rather than a photo, video, or mask.

This plugin integrates deep learning–based face anti-spoofing models to perform real-time, passive liveness detection directly on the device, without requiring user interaction.

🧩 Model Attribution #

The core liveness detection model used in this plugin is adapted from the open-source project Silent-Face-Anti-Spoofing by MiniVision AI.
Full credit to the original authors for their excellent research and implementation.

Getting Started #

import plugin #

import 'package:face_anti_spoofing_detector/face_anti_spoofing_detector.dart';

Initialize Model #

final status = await FaceAntiSpoofingDetector.initialize();

Start detect #


final confidenceScore = await FaceAntiSpoofingDetector.detect(
    yuvBytes: yuvBytes,
    previewWidth: cameraViewSize.width.toInt(),
    previewHeight: cameraViewSize.height.toInt(),
    orientation: 7,
    faceContour : faceContour,
);

Release memory #

final status = await FaceAntiSpoofingDetector.destroy();




📬 Contact #

If you have any questions, suggestions, or issues, feel free to reach out via my website:

👉 Website

1
likes
140
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin that provides passive liveness detection for facial recognition systems — ensuring that the detected face belongs to a live person rather than a photo, video.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on face_anti_spoofing_detector

Packages that implement face_anti_spoofing_detector