NativeScript MLKit Face Detection module
npm install @nativescript/mlkit-face-detectionA 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.
@nativescript/mlkit-face-detection by running the following command:``cli`
npm install @nativescript/mlkit-face-detection
For more details, read use @nativescript/mlkit-core and @nativescript/mlkit-core
The Face Detection event data type.
`ts`
interface FaceResult {
smilingProbability: number;
leftEyeOpenProbability: number;
rightEyeOpenProbability: number;
trackingId: number;
bounds: Bounds;
headEulerAngleZ: number;
headEulerAngleY: number;
headEulerAngleX: number;
}
#### Bounds
`ts`
interface Bounds {
origin: Origin;
size: Size;
}`
#### Origints`
interface Origin {
x: number;
y: number;
}`
#### Sizets``
interface Size {
width: number;
height: number;
}
Apache License Version 2.0