Software Archive
Read-only legacy content
17061 Discussions

Swipe with left hand or right hand

HexLord
Beginner
426 Views

hi,

Can someone tell me how to tell if the swipe was made by right hand or left hand.

Thanks,

Shaleen

0 Kudos
5 Replies
samontab
Valued Contributor II
426 Views

Hi Shaleen,

I think there is only one direction per event, so you always know which hand did the event (i.e. right hand goes from right to left)

0 Kudos
HexLord
Beginner
426 Views

hi,

thanks for the reply.

The issue I face is that every time I make a swipe gesture it is recognized as swipe.

I want it to be listed as left swipe or right swipe.

Is there a way to find out which hand(left or right) is presented in front of the camera?

 

thanks,

Shaleen

0 Kudos
AndreCarlucci
Beginner
426 Views

I don't know which programming language you are using but you can specify it when detecting the hand using:

call PXCMHandData.QueryHandData() with

PXCMHandData.AccessOrderType.ACCESS_ORDER_LEFT_HANDS

or

PXCMHandData.AccessOrderType.ACCESS_ORDER_RIGHT_HANDS

0 Kudos
HexLord
Beginner
426 Views

hi ,

Thanks for the reply.

I tried setting the access order but I want both left and right hand swipe to be detected.

I want to know which hand was used for the swipe.

I tried writing this code but it gave an error:

 handdata.QueryHandData(PXCMHandData.AccessOrderType.ACCESS_ORDER_RIGHT_HANDS,int j, PXCMHandData.IHand handData);
     

Pls help.

 

Thanks,

Shaleen

0 Kudos
samontab
Valued Contributor II
426 Views

I haven't worked with that part of the SDK but I am sure there has to be some kind of event ID or something when an event happens, and by looking at that ID or something should tell you the source of that event.

0 Kudos
Reply