/face-api-js

Primary LanguageJavaScript

Facial Recognition with JavaScript using face-api.js

To start up the app:

  1. run npm install in the root directory
  2. run node on server.js
  3. go to http://localhost:5000

images in public were generated with fooocus. None are known to have any actual people in them

Loading 4 primary models

    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: