Quantcast
Channel:
Viewing all articles
Browse latest Browse all 6

Hi,

$
0
0

Hi,

Every enum have it's own integer value for some key. All predefined gestures have their own different value that can be identified by the enum. As we are not able to remember numbers so for that reason enum is there to map particular gesture.

LABEL_MASK_SET = -65536,
LABEL_ANY = 0,
LABEL_MASK_DETAILS = 65535,
LABEL_SET_HAND = 65536,
LABEL_HAND_WAVE = 65537,
LABEL_HAND_CIRCLE = 65538,
LABEL_SET_NAVIGATION = 131072,
LABEL_NAV_SWIPE_LEFT = 131073,
LABEL_NAV_SWIPE_RIGHT = 131074,
LABEL_NAV_SWIPE_UP = 131075,
LABEL_NAV_SWIPE_DOWN = 131076,
LABEL_SET_POSE = 262144,
LABEL_POSE_THUMB_UP = 262145,
LABEL_POSE_THUMB_DOWN = 262146,
LABEL_POSE_PEACE = 262147,
LABEL_POSE_BIG5 = 262148,
LABEL_SET_CUSTOMIZED = 524288,

All above values are integer but if you convert it in hex, all your given values will be there. It is internally used by the camera and it can be identifed by masking.
I am not sure but there must be some hex value return from the camera through SDK library. i think thats the reason.
Even i am learning the SDK, so forgive me if i am not correct.


Viewing all articles
Browse latest Browse all 6

Trending Articles