Skip to content

Commit 0387fd2

Browse files
2 parents 156d320 + 4010a3c commit 0387fd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const imgData2 = ...
4343

4444
const descriptor1 = await net.computeFaceDescriptor(imgData1)
4545
const descriptor2 = await net.computeFaceDescriptor(imgData2)
46-
const distance = facerecognition.computeFaceDescriptor(descriptor1, descriptor2)
46+
const distance = facerecognition.euclidianDistance(descriptor1, descriptor2)
4747

4848
if (distance < 0.6)
4949
console.log('match')
@@ -71,4 +71,4 @@ npm i
7171
npm start
7272
```
7373

74-
Browse to http://localhost:3000/.
74+
Browse to http://localhost:3000/.

0 commit comments

Comments
 (0)