Software Archive
Read-only legacy content
17061 Discussions

Simple swipe left/right

AndreCarlucci
Beginner
1,114 Views

Hello!

I was reading the docs and found this:

"Working with multiple gesture packs is a reserved feature. The SDK currently works with the default gesture pack only."

So it's not possible to detect a simple swipe left/right/up/down for now? C# SDK.

Thanks,

André

0 Kudos
1 Solution
Colleen_C_Intel
Employee
1,114 Views

The right hand swipe goes towards the left hand.
The left hand swipe goes towards the right hand.
Both are one way only and should be done with the wrist staying still and just fingers moving for the most part.

View solution in original post

0 Kudos
6 Replies
Colleen_C_Intel
Employee
1,114 Views

The beta SDK supports a left hand and a right hand swipe gesture.

0 Kudos
AndreCarlucci
Beginner
1,114 Views

I managed to print all available gestures with this:

int numGestures = handConfig.QueryGesturesTotalNumber();
for (int i = 0; i < numGestures; i++) {
	string name;
	handConfig.QueryGestureNameByIndex(i, out name);
	Debug.WriteLine("Gestures: " + name);
}

And I got this:

Gestures: fist
Gestures: full_pinch
Gestures: spreadfingers
Gestures: swipe
Gestures: tap
Gestures: thumb_down
Gestures: thumb_up
Gestures: two_fingers_pinch_open
Gestures: v_sign
Gestures: wave

How can I know if it's a left or right swipe?

Also, it's seems that the camera is not doing a good job detecting the gestures, the Perceptual one has more accuracy to me (even using the demo provided by the sdk). thumb_down is impossible to get for instance.

Do you thing it could be a problem with my hardware?

Thanks!

0 Kudos
Colleen_C_Intel
Employee
1,115 Views

The right hand swipe goes towards the left hand.
The left hand swipe goes towards the right hand.
Both are one way only and should be done with the wrist staying still and just fingers moving for the most part.

0 Kudos
AndreCarlucci
Beginner
1,114 Views

Thanks Colleen, I got it now.

And I have to use the handId to know which hand did the move. I guess it changed a bit from the Perceptual SDK :)

Another issue: the OnFiredGesture returns the GestureData, and the docs say that the state property is a GestureStateType.

The GestureStateType is as it follows:

  •  GESTURE_STATE_START -  The gesture tracking is started.
  •  GESTURE_STATE_IN_PROGRESS -  The gesture tracking is in progress.
  •  GESTURE_STATE_END -  The gesture tracking completes.

The value of the this property is always GESTURE_STATE_START for any detected gesture, is that supposed to be like this?

If this event is only fired at the end of the gestures, wouldn't be better to always return GESTURE_STATE_END?

Thanks,

 

 

 

 

0 Kudos
Xusheng_L_Intel
Employee
1,114 Views

It is a known bug and will be fixed in future release. Thanks!

 

Andre Carlucci wrote:

Thanks Colleen, I got it now.

And I have to use the handId to know which hand did the move. I guess it changed a bit from the Perceptual SDK :)

Another issue: the OnFiredGesture returns the GestureData, and the docs say that the state property is a GestureStateType.

The GestureStateType is as it follows:

  •  GESTURE_STATE_START -  The gesture tracking is started.
  •  GESTURE_STATE_IN_PROGRESS -  The gesture tracking is in progress.
  •  GESTURE_STATE_END -  The gesture tracking completes.

The value of the this property is always GESTURE_STATE_START for any detected gesture, is that supposed to be like this?

If this event is only fired at the end of the gestures, wouldn't be better to always return GESTURE_STATE_END?

Thanks,

 

 

 

 

0 Kudos
Dagan_E_Intel
Employee
1,114 Views

For motion gestures like "swipe" you will get both the START and END events immediately one after the other, so you can safely ignore one of them.

For poses like the "thumb up" (which, btw, is significantly improved) you will get the START event when the gesture is first detected (can be immediate) and the END event when the gesture is no longer detected.

If you choose to enable the continuous gesture events you will get the IN_PROGRESS event for every frame where the gesture can be seen

0 Kudos
Reply