facecore 0.6.0
facecore: ^0.6.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.
Unreleased #
- Real depth anti-spoof check, opt-in via
requireDepth: true(defaultfalse):- iOS devices with a TrueDepth camera measure facial relief (mm) from the depth map and reject flat or bent photos and screens.
- Android and iOS devices without TrueDepth use a motion-parallax check (planar-homography residual of facial landmarks during head turns).
- New
LivenessConfig.minParallaxScore;minDepthRangeis now in millimetres (default10.0). - Breaking:
FaceCaptureResult.depthRangereplaced bydepthMethodanddepthScore.
0.4.1 #
- Fix iOS liveness flow freezing on "Capturing..." after all checks pass. The photo capture delegate was deallocated before its callback fired, so no image was ever returned. The delegate is now retained for the capture's lifetime, and a watchdog fails cleanly instead of hanging if a capture stalls.
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.