Skip to content

Commit 4010a3c

Browse files
Merge pull request justadudewhohacks#1 from nsthorat/patch-1
Fix typo in README for computing euclidian distance.
2 parents fb7b4c8 + c7a4c7c commit 4010a3c

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
@@ -39,7 +39,7 @@ const imgData2 = ...
3939

4040
const descriptor1 = await net.computeFaceDescriptor(imgData1)
4141
const descriptor2 = await net.computeFaceDescriptor(imgData2)
42-
const distance = facerecognition.computeFaceDescriptor(descriptor1, descriptor2)
42+
const distance = facerecognition.euclidianDistance(descriptor1, descriptor2)
4343

4444
if (distance < 0.6)
4545
console.log('match')
@@ -67,4 +67,4 @@ npm i
6767
npm start
6868
```
6969

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

0 commit comments

Comments
 (0)