facial_liveness_verification library
Facial Liveness Verification Package
A simple, logic-focused package for real-time facial liveness verification. Developers handle UI - this package provides detection logic only.
Classes
- CameraManager
- Manages camera initialization and image streaming for face detection.
- ChallengeValidator
- Validates user completion of liveness challenges based on face detection data.
- CoordinateUtils
- Utility functions for coordinate transformations between camera image space and screen space.
- FaceDetectorWrapper
- Wrapper for Google ML Kit FaceDetector that implements IFaceDetector.
- ImageConverter
-
Converts
CameraImagetoInputImageformat required by ML Kit. - LivenessConfig
- Configuration for facial liveness verification.
- LivenessDetector
- Main detector class for facial liveness verification.
- LivenessResult
- Result of a liveness verification session.
- LivenessState
- Represents the current state of the liveness detection process.
Enums
- ChallengeType
- Enumeration of available liveness detection challenges.
- LivenessErrorCode
- LivenessStateType
- Types of states emitted during liveness verification.
Extensions
- ChallengeTypeExtension on ChallengeType
- Extension to provide human-readable descriptions for challenge types.
- LivenessErrorCodeExtension on LivenessErrorCode
Exceptions / Errors
- LivenessError
- Exception thrown during liveness verification operations.