Facial Recognition with JavaScript using face-api.js
- run npm install in the root directory
- run node on server.js
- go to http://localhost:5000
images in public were generated with fooocus. None are known to have any actual people in them
await Promise.all([
faceapi.nets.ssdMobilenetv1.loadFromUri('./models'),
faceapi.nets.faceLandmark68Net.loadFromUri('./models'),
faceapi.nets.faceRecognitionNet.loadFromUri('./models'),
faceapi.nets.ageGenderNet.loadFromUri('./models'),
])
Stock photos I use, 2 Ronaldo and 1 Musk: