passive_liveness library

Passive face liveness and anti-spoofing detection library for Flutter.

Classes

AdaptiveScreenFlashOverlay
Overlay widget that renders a full-screen solid flash overlay when triggered by controller.
ColorSpaceAnalysisResult
Result of evaluating YCbCr color space chrominance distributions.
ColorSpaceAnalyzer
Evaluates YCbCr / YUV chrominance sub-sampling metrics ($\sigma^2_{CbCr}$) to detect emissive RGB digital display screen replay attacks.
FaceBoundingBox
Represents a bounding box for a detected face in an image.
FaceGateResult
Result of evaluating face proximity and aspect ratio constraints.
FaceProximityGate
Evaluates face area coverage and bounding box aspect ratios to reject presentation attacks using small printed photos or extreme lens close-ups.
FftMoireAnalyzer
Lightweight Dart-only moiré pattern analyzer using radix-2 Fast Fourier Transform.
HighResScreenAnalysisResult
Result of evaluating high-resolution screen replay indicators.
HighResScreenAnalyzer
Evaluates 2D Laplacian frequency variance, patch focus depth dispersal, and specular screen reflections to detect high-resolution OLED/Retina screen replay attacks.
ImagePreprocessor
Preprocessing utilities for passive face anti-spoofing input.
LbpHogAnalyzer
Lightweight micro-texture analysis engine using Local Binary Pattern (LBP) and Histogram of Oriented Gradients (HOG).
LivenessFlashController
Controller for orchestrating momentary high-brightness screen flashes for active photometric stereo assist.
LivenessFrameProcessor
Helper to handle live camera frame streaming without UI lag or frame dropping.
LivenessImageBuffer
Pure Dart lightweight model representing a raw camera image buffer.
LivenessImagePlane
Represents a single plane in a raw camera frame buffer.
LivenessLogger
Centralized diagnostic logging utility for passive face liveness detection.
LivenessResult
Result of passive liveness detection for a face.
MoireAnalysisResult
Result of evaluating moiré pattern frequency analysis via FFT.
NativeLivenessEngine
Lightweight platform channel engine that delegates TFLite neural inference to native OS runtime.
PassiveLivenessDetector
Core passive liveness detector engine using native TFLite inference.
TextureAnalysisResult
Result of evaluating Local Binary Pattern (LBP) and Histogram of Oriented Gradients (HOG) micro-textures.

Enums

LivenessImageFormat
Image format group supported for passive liveness detection.
LivenessStatus
Status of passive liveness detection result.
ModelClassOrder
Target class index ordering produced by binary neural model classification logits.
NormalizationScheme
Normalization schemes supported for input tensor preparation.

Typedefs

PassiveLivenessResult = LivenessResult
Alias for LivenessResult to prevent class name collisions in host applications.