- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I'm using the full_pinch gesture and hand openness in my app for a certain action. But every time I lower my hand I get the same events, full_pinch gesture plus openness decrease, until the hand gets out of the camera's range and produces the ALERT_HAND_NOT_DETECTED alert. This behaviour is misleading, I cannot think of a differentiation method other than introducing a delay in order to check for the ALERT_HAND_NOT_DETECTED event.
Any experience or idea on how to overcome this would be highly appreciated. Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nacho C.
When the hand is near the FOV border or partially seen the tracking data can be inaccurate.
This is why we have introduced the alerts mechanism, you can enable the following alerts according to your needs:
ALERT_HAND_OUT_OF_X_BORDER
In order to prevent the case when the hand is out of FOV and thus getting bad data I would also suggest using
SetTrackingBounds(pxcF32 nearTrackingDistance, pxcF32 farTrackingDistance, pxcF32 nearTrackingWidth, pxcF32 nearTrackingHeight)
Setting the tracking bounds only affects the fired alerts and not the tracking itself.
In your case you can set the tracking height to be smaller and you will get for example ALERT_HAND_OUT_OF_BOTTOM_BORDER before the hand is actually went out of FOV and deal with it accordingly (that's the solution for the delay you suggested)
Thank you for reaching out to us, please let me know if the above helped.
Have a nice day,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ron, I can't try it now, but it seems a good solution.
Regards,
Nacho.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page