error in returned value in opennessState from PXCMGesture.GeoNode

error in returned value in opennessState from PXCMGesture.GeoNode

Hi, i'm trying to recognize open and closed hands, using opennessState, but when i get the returned value from PXCMGesture.GeoNode, it always return me PXCMGesture.GeoNode.Openness.LABEL_OPENNESS_ANY. What I've done is to calculate fingers position and from that find out if a hand is closed or not, but this behavior is really strange, it will be really great to do this using this tool, so if someone knows what i'm doing wrong, I will be really grateful.

Thanks.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I do not know if you are using right label. Openness value or opennessState value is only available for hand labels (but not for finger labels). 

The correct usage should be like (C#)

   gesture.QueryNodeData(0, PXCMGesture.GeoNode.Label.LABEL_BODY_HAND_PRIMARY, out ndata);

Thanks,

David

Leave a Comment

Please sign in to add a comment. Not a member? Join today