facecore 0.3.0
facecore: ^0.3.0 copied to clipboard
Self-contained Flutter plugin for camera-based face liveness, depth, and anti-spoof checks before capturing a photo on Android and iOS.
0.2.0 #
- Add
Facecore.hasDepthCamera({CameraLens lens})to query whether the selected lens has a hardware depth sensor (TrueDepth / LiDAR on iOS,DEPTH_OUTPUTcamera on Android). Use it to choose between fail-closed and fail-open behaviour at runtime. - Add
Facecore.captureWithAntiSpoof— a generic anti-spoof capture flow on either lens (front or back) with a shutter button gated by real-time signals. - Anti-spoof signals: 2D-FFT moiré detection, row-mean refresh-banding
detection, parallax-based depth proxy (with real
AVDepthDataon TrueDepth / LiDAR iOS devices), and rectangular screen-edge detection. AntiSpoofConfig.requireDepthHardwaretoggles fail-closed vs fail-open behaviour on devices without a depth sensor.- New
AntiSpoofConfig/AntiSpoofResult/CameraLenstypes exported frompackage:facecore/facecore.dart.
0.1.0 #
- Initial public release.
- Native liveness capture flow on Android (CameraX + ML Kit Face Detection) and iOS (AVFoundation + Vision).
- Configurable liveness actions: blink, turn left, turn right.
- Optional depth-based anti-spoof check.
- Returns a
FaceCaptureResultwith the captured JPEG path, dimensions, motion standard deviation, and depth range.