Content-Length: 361242 | pFad | http://github.com/NativeScript/mlkit/commit/93c6d5d5c697694b97879339c468bffc1e204eb7

D6 chore(mlkit-face-detection): README update (#40) · NativeScript/mlkit@93c6d5d · GitHub
Skip to content

Commit 93c6d5d

Browse files
authored
chore(mlkit-face-detection): README update (#40)
1 parent 4fd127e commit 93c6d5d

File tree

1 file changed

+57
-3
lines changed

1 file changed

+57
-3
lines changed
Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,66 @@
11
# @nativescript/mlkit-face-detection
22

3-
```javascript
3+
A plugin that is used with [@nativescript/mlkit-core](../mlkit-core/) to enable face detection and provide the [FaceResult](#faceresult) type for the data of the face detection event.
4+
5+
## Contents
6+
* [Installation](#installation)
7+
* [Use @nativescript/mlkit-face-detection](#use-nativescriptmlkit-face-detection)
8+
* [API](#api)
9+
* [FaceResult](#faceresult)
10+
* [License](#license)
11+
12+
## Installation
13+
Install `@nativescript/mlkit-face-detection` by running the following command:
14+
15+
```cli
416
npm install @nativescript/mlkit-face-detection
517
```
618

7-
## Usage
19+
## Use @nativescript/mlkit-face-detection
20+
21+
For more details, read [use @nativescript/mlkit-core](../mlkit-core#use-nativescriptmlkit-core) and [@nativescript/mlkit-core](../mlkit-core#face-detection)
22+
23+
## API
24+
25+
### FaceResult
26+
27+
The Face Detection event data type.
28+
29+
```ts
30+
interface FaceResult {
31+
smilingProbability: number;
32+
leftEyeOpenProbability: number;
33+
rightEyeOpenProbability: number;
34+
trackingId: number;
35+
bounds: Bounds;
36+
headEulerAngleZ: number;
37+
headEulerAngleY: number;
38+
headEulerAngleX: number;
39+
}
40+
```
41+
42+
#### Bounds
43+
```ts
44+
interface Bounds {
45+
origen: Origin;
46+
size: Size;
47+
}
48+
```
49+
#### Origin
50+
```ts
51+
interface Origin {
52+
x: number;
53+
y: number;
54+
}
55+
```
56+
#### Size
57+
```ts
58+
interface Size {
59+
width: number;
60+
height: number;
61+
}
62+
```
863

9-
See [@nativescript/mlkit-core](/packages/mlkit-core/README.md) Usage
1064
## License
1165

1266
Apache License Version 2.0

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/mlkit/commit/93c6d5d5c697694b97879339c468bffc1e204eb7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy