πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement

View on GitHub

@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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /