justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.53k stars 3.69k forks source link

face match multiple faces not working #897

Open patsygreen opened 1 year ago

patsygreen commented 1 year ago

I am trying to make multiple face matches, real-time, with the face API.

I convert the webcam into an image stream, so I can use the images taken from the webcam as input to see if the face matches my custom data base.

Everything works as it should, however when multiple people come into the webcam the face matcher stops working, only the face detection box stays.

Any idea how to solve this??

below some screenshots of the code.

Screenshot 2023-02-06 at 17 19 45 Screenshot 2023-02-06 at 17 20 04 Screenshot 2023-02-02 at 16 16 14 Screenshot 2023-02-06 at 17 19 32
patsygreen commented 1 year ago

Is it the interval causing the face match not to work properly?