livelyness_detection
2.0.1, released 3 weeks ago by kryonex.io
Detects if a face visible in the camera is a live person using facial challenges.
What it does
Performs face liveness detection by prompting users to complete specific challenges like blinking, smiling, or turning their head. It uses Google ML Kit face detection to prevent presentation attacks and spoofing.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to verify that a real, live human is interacting with your app during onboarding or authentication.
- You want to protect against spoofing attacks using printed photos, recordings, or masks.
Skip it when
- You only need standard face recognition without liveness checks.
- You need web, desktop, or macOS support, as this package is limited to iOS and Android.
Strengths
- Includes built-in challenges like blinking, smiling, and head turns.
- Highly customizable UI including oval guides, step cards, and info screens.
- Performs no network I/O locally, keeping biometric data handling client-side.
Weaknesses
- Limited platform support (Android and iOS only).
- Requires manual cleanup of temporary captured image files.
- Client-side liveness detection signals are not fully tamper-proof without server-side verification.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 8
Requires adding NSCameraUsageDescription on iOS, setting iOS deployment target to 14.0+, and setting minSdkVersion to 21 with camera permission on Android.
final CapturedImage? result = await LivelynessDetection.detect(
context: context,
config: DetectionConfig(
steps: [
LivelynessStepItem(
step: LivelynessStep.blink,
title: "Blink",
isCompleted: false,
),
],
startWithInfoScreen: true,
),
);Alternatives
Packages that do the same job and could replace livelyness_detection.
- camera_android
Android implementation of the camera plugin using the Camera2 library.
85Compare - camera_avfoundation
iOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
84Compare - camera_android_camerax
Android camera implementation using CameraX library
89Compare - flutter_face_api
Flutter plugin for Regula Face SDK to compare faces and perform liveness detection.
83Compare
Works with
Packages commonly used together with livelyness_detection: ones it builds on, ones built on it, and its own family.
- uuidlivelyness_detection depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- plugin_platform_interfacelivelyness_detection depends on itReusable base class for platform interfaces of Flutter federated plugins.
- equatablelivelyness_detection depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- lottielivelyness_detection depends on itRender After Effects JSON animations natively in Flutter.
- cameralivelyness_detection depends on itFlutter plugin to preview, capture photos/video and stream camera images.
- google_mlkit_face_detectionlivelyness_detection depends on itFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- animate_dolivelyness_detection depends on itWidget-based animations inspired by Animate.css with zero external dependencies.