Problem with hand tracking at medium distance

Hi everyone! I’m a newbie in TD, but very enthusiastic about it.

Right now, I’m developing my first exhibition, and I’ve run into some challenges.

I’ve almost finished my code using a laptop webcam at a close distance, and everything works fine in that setup. However, when I tested it at around 1–2 meters away, the hand tracking started to fail sometimes or behave unpredictably.

I also tried switching to a semi-professional camera, but unfortunately, I didn’t get better results.

So my question is: does MediaPipe not perform well at medium distances? Or could this be related to some configuration or an issue in my code?

I’m also wondering if the background could be a significant factor. I believe a plain white wall might help MediaPipe recognize the hand more reliably. However, the exhibition will likely take place in an open space, so I’m concerned that this could become a major issue.

Any help or suggestions would be greatly appreciated. Thanks!