capacitor-face-liveness-detection
v0.0.3
Published
A Capacitor plugin for real-time on-device face liveness detection on Android and iOS. It verifies whether a face is from a live person or a spoof (photo/video), making it ideal for biometric authentication, attendance systems, and identity verification a
Readme
capacitor-face-liveness-detection
A Capacitor plugin for real-time on-device face liveness detection on Android and iOS. It verifies whether a face is from a live person or a spoof (photo/video), making it ideal for biometric authentication, attendance systems, and identity verification apps.
Install
npm install capacitor-face-liveness-detection
npx cap syncAPI
detectLiveness(...)
detectLiveness(options: FaceLivenessRequest) => Promise<FaceLivenessResult>| Param | Type |
| ------------- | ------------------------------------------------------------------- |
| options | FaceLivenessRequest |
Returns: Promise<FaceLivenessResult>
Interfaces
FaceLivenessResult
| Prop | Type |
| ---------------- | -------------------- |
| isLive | boolean |
| score | number |
| timeMillis | number |
FaceLivenessRequest
| Prop | Type |
| ------------ | ------------------------------------------------- |
| image | string |
| bounds | FaceBounds |
FaceBounds
| Prop | Type |
| ------------ | ------------------- |
| left | number |
| top | number |
| right | number |
| bottom | number |
