HandExtensions
Extension methods for the Hand class.
public static class HandExtensions
This is a static class.
Methods
Name
Return Type
Description
Center(List<Hand>)
Static. Returns the hand closest to the center of the field of view in the specified list of hands.
Example
The examples show how to locate a hand depending on its position with the HandExtensions
class.
Detect hands
First, detect the hands in an image.
List<Hand> hands = handTracker.Load(texture);
Retrieve the hand depending on the position
Get the hand closest to the center in the specified list of hands.
Hand center = HandExtensions.Center(hands);
Get the leftmost hand in the specified list of hands.
Hand leftmost = HandExtensions.Leftmost(hands);
Get the rightmost hand in the specified list of hands.
Hand rightmost = HandExtensions.Rightmost(hands);
Last updated