victordibia / handtrack.js

A library for prototyping realtime hand detection (bounding box), directly in the browser.
https://victordibia.com/handtrack.js/
MIT License
2.83k stars 250 forks source link

Ignoring Faces? #49

Open tinchoforever opened 3 years ago

tinchoforever commented 3 years ago

Hello everyone, we are creating a simple gesture app that will understand when hands move from left to right and viceverse. The problem that we are finding is that if the user has it camera point to the face, the default config always detect faces and the hand over the face is never recognized. Is there any way to configure handtrackjs to ignore faces vs hands ?

Regards

victordibia commented 3 years ago

Hi @tinchoforever

Thanks for reporting this. Handtrack.js reports all predictions it (below the threshold you specify). It probably still finds a face but that does not show up because of a low confidence value. Some options you can explore:

In the mean time, I'll work to finetune the underlying handtrack.js model with more data that covers the hand + face scenario so it does a better job of detecting both hands and face when they overlap/intersect. This way, the model should more confidently predict

-V

Zireael07 commented 1 year ago

Bump. I would also like to be able to ignore the face (totally unneeded for my use case of gesture controls, and only eats performance/needs to be filtered out from results)