Debounce mechanism for accuracy #427
-
Hi, I'm currently developing an internal face recognition system. It's works similarly to the face Id demo, but runs 24 / 7 and without most of the validation checks as it's meant to record them from a distance (about 2-3 meters). The challenge I've got is the accuracy, especially when the person first enters the frame, when the lighting / angle isn't perfect. This usually returns an incorrect match from the database, while also returning a high score (close to 100%). I was wondering if there's a built-in way for a 'debounce' mechanism. Essentially keeping track of the face to see if it's the same person for a short period (eg 500ms). The idea is that it would only confirm the recognition if it consistently identifies the person as the same individual throughout this duration. If there's nothing built-in, could you recommend any workarounds for this? (eg should I just keep track of the faces with a timer and validate accordingly). Also wondering if I should look into an alternative model to BlazeFace, as I'm assuming it's meant for more optimal conditions. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
there is no such built-in functionality, its expected that would be done in the app level. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Also with regards to the config, I'm using angular with typescript. I downloaded the 'insightface-mobilenet-swish.json' and 'insightface-mobilenet-swish.bin' from the github url in the config below, and put them in the face-models folder.
|
Beta Was this translation helpful? Give feedback.
-
i'll double-check |
Beta Was this translation helpful? Give feedback.
there is no such built-in functionality, its expected that would be done in the app level.
regarding face match, blazeface is just a bounding box detector. actual face feature vector is performed using one of three options: facenet, insightface or mobilefacenet. facenet is default primarily because its fast and unobstrusive, not because its best.
see https://github.com/vladmandic/human/blob/main/demo/faceid/index.ts for example.