@nativescript/mlkit-face-detection
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@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:

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.

interface FaceResult {
    smilingProbability: number;
    leftEyeOpenProbability: number;
    rightEyeOpenProbability: number;
    trackingId: number;
    bounds: Bounds;
    headEulerAngleZ: number;
    headEulerAngleY: number;
    headEulerAngleX: number;
}

Bounds

interface Bounds {
    origin: Origin;
    size: Size;
}

Origin

interface Origin {
    x: number;
    y: number;
}

Size

interface Size {
    width: number;
    height: number;
}

License

Apache License Version 2.0

Package Sidebar

Install

npm i @nativescript/mlkit-face-detection

Weekly Downloads

5

Version

2.1.0

License

Apache-2.0

Unpacked Size

14.4 kB

Total Files

8

Last publish

Collaborators

  • nativescript-user
  • tns-bot
  • lini
  • tachev
  • rosen-vladimirov
  • stoskov
  • rosen_vladimirov
  • walkerrunpdx
  • bradmartin
  • davecoffin
  • rigor789
  • nativescript-bot
  • multishiv19
  • eddyverbruggen
  • edusperoni
  • facetious
  • tdermendjiev
  • sis0k0