Skip to content
pubscout

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.

$ flutter pub add livelyness_detection
Source repository

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.

Works with

Packages commonly used together with livelyness_detection: ones it builds on, ones built on it, and its own family.