Skip to content

Commit c66dbbd

Browse files
fix typos
1 parent c9cb7a0 commit c66dbbd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ const detection = await faceapi.detectSingleFace(input)
204204
By default **detectAllFaces** and **detectSingleFace** utilize the SSD Mobilenet V1 Face Detector. You can specify the face detector by passing the corresponding options object:
205205

206206
``` 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())
210210
```
211211

212212
You can tune the options of each face detector as shown [here](#usage-face-detection-options).
@@ -380,7 +380,7 @@ export interface ISsdMobilenetv1Options {
380380
}
381381

382382
// example
383-
const options = new SsdMobilenetv1Options({ minConfidence: 0.8 })
383+
const options = new faceapi.SsdMobilenetv1Options({ minConfidence: 0.8 })
384384
```
385385

386386
### TinyFaceDetectorOptions
@@ -401,7 +401,7 @@ export interface ITinyFaceDetectorOptions {
401401
}
402402

403403
// example
404-
const options = new TinyFaceDetectorOptions({ inputSize: 320 })
404+
const options = new faceapi.TinyFaceDetectorOptions({ inputSize: 320 })
405405
```
406406

407407
### MtcnnOptions
@@ -435,7 +435,7 @@ export interface IMtcnnOptions {
435435
}
436436

437437
// example
438-
const options = new MtcnnOptions({ minFaceSize: 100, scaleFactor: 0.8 })
438+
const options = new faceapi.MtcnnOptions({ minFaceSize: 100, scaleFactor: 0.8 })
439439
```
440440

441441
<a name="usage-utility-classes"></a>

0 commit comments

Comments
 (0)