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
Copy file name to clipboardExpand all lines: README.md
+33-22Lines changed: 33 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -319,13 +319,13 @@ You can tune the options of each face detector as shown [here](#usage-face-detec
319
319
320
320
**After face detection, we can furthermore predict the facial landmarks for each detected face as follows:**
321
321
322
-
Detect all faces in an image + computes 68 Point Face Landmarks for each detected face. Returns **Array<[FaceDetectionWithLandmarks](#interface-face-detection-with-landmarks)>**:
322
+
Detect all faces in an image + computes 68 Point Face Landmarks for each detected face. Returns **Array<[WithFaceLandmarks<WithFaceDetection<{}>>](#usage-utility-classes)>**:
Detect the face with the highest confidence score in an image + computes 68 Point Face Landmarks for that face. Returns **[FaceDetectionWithLandmarks](#interface-face-detection-with-landmarks) | undefined**:
328
+
Detect the face with the highest confidence score in an image + computes 68 Point Face Landmarks for that face. Returns **[WithFaceLandmarks<WithFaceDetection<{}>>](#usage-utility-classes) | undefined**:
**After face detection and facial landmark prediction the face descriptors for each face can be computed as follows:**
344
344
345
-
Detect all faces in an image + computes 68 Point Face Landmarks for each detected face. Returns **Array<[FullFaceDescription](#interface-full-face-description)>**:
345
+
Detect all faces in an image + computes 68 Point Face Landmarks for each detected face. Returns **Array<[WithFaceDescriptor<WithFaceLandmarks<WithFaceDetection<{}>>>](#usage-utility-classes)>**:
Detect the face with the highest confidence score in an image + computes 68 Point Face Landmarks and face descriptor for that face. Returns **[FullFaceDescription](#interface-full-face-description) | undefined**:
351
+
Detect the face with the highest confidence score in an image + computes 68 Point Face Landmarks and face descriptor for that face. Returns **[WithFaceDescriptor<WithFaceLandmarks<WithFaceDetection<{}>>>](#usage-utility-classes) | undefined**:
@@ -361,43 +361,43 @@ To perform face recognition, one can use faceapi.FaceMatcher to compare referenc
361
361
First, we initialize the FaceMatcher with the reference data, for example we can simply detect faces in a **referenceImage** and match the descriptors of the detected faces to faces of subsquent images:
362
362
363
363
```javascript
364
-
constfullFaceDescriptions=await faceapi
364
+
constresults=await faceapi
365
365
.detectAllFaces(referenceImage)
366
366
.withFaceLandmarks()
367
367
.withFaceDescriptors()
368
368
369
-
if (!fullFaceDescriptions.length) {
369
+
if (!results.length) {
370
370
return
371
371
}
372
372
373
373
// create FaceMatcher with automatically assigned labels
374
374
// from the detection results for the reference image
0 commit comments