Plugins
Face Detection
@nativescript/mlkit-face-detection β
A plugin that is used with @nativescript/mlkit-core to enable face detection and provide the FaceResult type for the data of the face detection event.
Contents β
Installation β
Install @nativescript/mlkit-face-detection
by running the following command:
cli
npm install @nativescript/mlkit-face-detection
Use @nativescript/mlkit-face-detection β
For more details, read use @nativescript/mlkit-core and @nativescript/mlkit-core
API β
FaceResult β
The Face Detection event data type.
ts
interfaceFaceResult {
smilingProbability:number
leftEyeOpenProbability:number
rightEyeOpenProbability:number
trackingId:number
bounds:Bounds
headEulerAngleZ:number
headEulerAngleY:number
headEulerAngleX:number
}
Bounds β
ts
interfaceBounds {
origin:Origin
size:Size
}
Origin β
ts
interfaceOrigin {
x:number
y:number
}
Size β
ts
interfaceSize {
width:number
height:number
}
License β
Apache License Version 2.0
- Previous
- Digital Ink Recognition
- Next
- Image Labeling