LivenessChecker class
Basic liveness detection using ML Kit classification and head pose.
Checks that the face belongs to a live person rather than a photo or video by verifying eye open probability and head orientation.
Constructors
- LivenessChecker({double minEyeOpenProbability = 0.4, double maxHeadAngle = 20.0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxHeadAngle → double
-
Maximum absolute head euler angle (degrees) on any axis.
final
- minEyeOpenProbability → double
-
Minimum probability (0.0–1.0) for eyes to be considered open.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
Face face) → LivenessResult -
Check whether a
Facepasses basic liveness criteria. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited