faceping library
FacePing: offline face verification with liveness, for Flutter on Android and iOS.
A thin bridge over the native FacePing SDKs (ai.faceping:faceping-android and the FacePing Swift package).
Classes
- EnrollResult
- The result of FacePing.enroll.
- FaceCamera
- The front camera with FacePing's face guide and liveness prompts ("Turn your head left").
- FaceImage
- A photo of a face: JPEG or PNG bytes, a file, or a picture from FacePingCameraController.capture.
- FacePing
- FacePing on this device: enrol a face (in the sandbox), then verify it with a live check, with no network.
- FacePingCameraController
- Drives a FaceCamera: pass it to FacePing.verifyLive, or call capture for a photo to enrol.
- FacePingOptions
- How FacePing runs in this app. Set sandboxKey or deviceToken, not both.
- SyncResult
- The outcome of a sync: how many people this device can verify, and until when.
- VerifyResult
- The result of FacePing.verify or FacePing.verifyLive.
Enums
- EnrollOutcome
- What happened to an enrolment.
- FaceGuideState
- How the camera's face guide looks.
- FacePingRegion
-
Where your FacePing account's data lives. EU today; for the UK and US regions, set
apiBaseUrlto the address we give you. - SigningState
- Whether FacePing's server has this device's signing key, as of the last sync.
- SyncStatus
- How a sync went.
- VerifyOutcome
- What a verification found.
Exceptions / Errors
- FacePingCameraException
- The camera couldn't start, didn't deliver a picture, or isn't on screen.
- FacePingCanceledException
- A live check was stopped with FacePingCameraController.cancel.
- FacePingException
- Everything FacePing throws. Face checks never throw for what they find: they return an outcome.
- FacePingInvalidArgumentException
- A bad argument: an empty id, or a photo that isn't a readable image.
- FacePingInvalidOperationException
- Not allowed in this mode or state: enrolling or forgetting one person in production, or a closed FacePing.
- FacePingModelException
- The face models couldn't load on this device. Send people to your normal entry.
- FacePingSetupException
- The sandbox key or device token is missing, invalid or revoked, or a sandbox key couldn't be activated (the first run needs a connection).
- FacePingStorageException
- The device's secure storage (Keychain, Keystore or files) failed.