Skip to main content

facecore 0.6.0 copy "facecore: ^0.6.0" to clipboard
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 (default false):
    • 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; minDepthRange is now in millimetres (default 10.0).
  • Breaking: FaceCaptureResult.depthRange replaced by depthMethod and depthScore.

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 FaceCaptureResult with the captured JPEG path, dimensions, motion standard deviation, and depth range.
0
likes
145
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Self-contained Flutter plugin for camera-based face liveness, depth, and anti-spoof checks before capturing a photo on Android and iOS.

Repository
View/report issues

Topics

#face-detection #liveness #camera #biometrics #anti-spoofing

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on facecore

Packages that implement facecore