wolterlw / hand_tracking

Minimal Python interface for Google's Mediapipe HandTracking pipeline
Apache License 2.0
148 stars 37 forks source link

When my gesture is stationary, the landmarks of the output are still changing. how to solve this problem? #36

Closed Mgz-97 closed 4 years ago

Mgz-97 commented 4 years ago

Hello, I modified the program to input a picture, but when a similar picture is input, the coordinates of the key points of the output gesture will be different. How to eliminate this difference? Thank you!

wolterlw commented 4 years ago

I don’t think this is possible because the neural net uses the whole image as an input, so even if you change a couple of pixels the result may be different. It shouldn’t vary too much, but it won’t be the exact same. If you want to compare outputs you can define a template and then compute distance between it and further outputs.