@@ -204,9 +204,9 @@ const detection = await faceapi.detectSingleFace(input)
204
204
By default ** detectAllFaces** and ** detectSingleFace** utilize the SSD Mobilenet V1 Face Detector. You can specify the face detector by passing the corresponding options object:
205
205
206
206
``` javascript
207
- const detections1 = await faceapi .detectAllFaces (input, new SsdMobilenetv1Options ())
208
- const detections2 = await faceapi .detectAllFaces (input, new TinyFaceDetectorOptions ())
209
- const detections3 = await faceapi .detectAllFaces (input, new MtcnnOptions ())
207
+ const detections1 = await faceapi .detectAllFaces (input, new faceapi. SsdMobilenetv1Options ())
208
+ const detections2 = await faceapi .detectAllFaces (input, new faceapi.inyFaceDetectorOptions ())
209
+ const detections3 = await faceapi .detectAllFaces (input, new faceapi. MtcnnOptions ())
210
210
```
211
211
212
212
You can tune the options of each face detector as shown [ here] ( #usage-face-detection-options ) .
@@ -380,7 +380,7 @@ export interface ISsdMobilenetv1Options {
380
380
}
381
381
382
382
// example
383
- const options = new SsdMobilenetv1Options ({ minConfidence: 0.8 })
383
+ const options = new faceapi. SsdMobilenetv1Options ({ minConfidence: 0.8 })
384
384
```
385
385
386
386
### TinyFaceDetectorOptions
@@ -401,7 +401,7 @@ export interface ITinyFaceDetectorOptions {
401
401
}
402
402
403
403
// example
404
- const options = new TinyFaceDetectorOptions ({ inputSize: 320 })
404
+ const options = new faceapi. TinyFaceDetectorOptions ({ inputSize: 320 })
405
405
```
406
406
407
407
### MtcnnOptions
@@ -435,7 +435,7 @@ export interface IMtcnnOptions {
435
435
}
436
436
437
437
// example
438
- const options = new MtcnnOptions ({ minFaceSize: 100 , scaleFactor: 0.8 })
438
+ const options = new faceapi. MtcnnOptions ({ minFaceSize: 100 , scaleFactor: 0.8 })
439
439
```
440
440
441
441
<a name =" usage-utility-classes " ></a >
0 commit comments