curtsy icon indicating copy to clipboard operation
curtsy copied to clipboard

How do you plan to detect hand close gesture ?

Open jackey opened this issue 11 years ago • 1 comments

HI, @L1fescape

because hand close gesture is not supported by leapjs API, and do you have any idea how to analysis the frame data and support hand close gesture ?

Thanks

jackey avatar Aug 13 '13 07:08 jackey

I was thinking of saying if your palm and 5 fingers are present and then suddenly no fingers are detected but your palm still is, that could signify a hand close gesture. It's not going to be easy to implement because when you get a frame of data from the leap:

{ 
  valid: true,
  id: 0,
  timestamp: 0,
  hands: [],
  handsMap: {},
  pointables: [],
  tools: [],
  fingers: [],
  interactionBox: {},
  gestures: [],
  pointablesMap: {},
  _translation: [],
  _rotation: [],
  _scaleFactor: 0,
  data: {},
  type: 'frame',
  currentFrameRate: 0,
  controller: {},
  _events: {}
}

I'm currently just parsing the gestures array to determine what gesture occurred and the direction of that gesture. I'll have stop using gestures and implement my own method to detect a hand close/open. Or submit a pull request to the leapjs library implement the hand close gesture.

L1fescape avatar Aug 13 '13 10:08 L1fescape