简体   繁体   中英

How can I Map my hand coordinates to Mouse pointer in KINECT?

I'm doing a kinect project (in WPF) where I need to operate the mouse cursor with my hand.

I was able to track my hand coordinates every time it moving on the window. I want to assign those coordinates to the mouse pointer. But I don't know how to do that. Please somebody help me.

I appreciate your time reviewing and answering my question.

Thank you.

I don't know whether you are using Kinect Interaction. With Kinect Interaction, the hand coordinates in HandPointer there are normalized as 0 to 1 in interaction zone, so just multiply it with approriate resolution will be ok. (The pre-defined Kinect interaction controls in SDK do it too, if the controls can satisfy your goal, you may just use them)

If not so and you are using Skeleton directly, the Skeleton coordinates are based on physical distance in meters, so you must find a properly scale yourself. I think if you intend to use skeleton only, you should normalize Skeleton coordinates yourself, eg subtract hand position by skeleton position, and measure arm length previously to make both adult and child can use your application without inconvenience. Also notice in skeleton coordinates, Y positive direction is upwards, and in screen it's downwards, you should use a negative scale there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM