You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Install `@nativescript/mlkit-face-detection` by running the following command:
14
+
15
+
```cli
4
16
npm install @nativescript/mlkit-face-detection
5
17
```
6
18
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
+
interfaceFaceResult {
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
+
interfaceBounds {
45
+
origen:Origin;
46
+
size:Size;
47
+
}
48
+
```
49
+
#### Origin
50
+
```ts
51
+
interfaceOrigin {
52
+
x:number;
53
+
y:number;
54
+
}
55
+
```
56
+
#### Size
57
+
```ts
58
+
interfaceSize {
59
+
width:number;
60
+
height:number;
61
+
}
62
+
```
8
63
9
-
See [@nativescript/mlkit-core](/packages/mlkit-core/README.md) Usage
0 commit comments