Detect hand and retrieve joints
An example on how to detect hands and retrieve finger joint information.
Step 1: Load the Image into Texture2D
// Create an empty Texture2D.
Texture2D texture = new Texture2D(0, 0);
// Load a file to a byte array.
string filename = "path/to/image";
byte[] rawData = System.IO.File.ReadAllBytes(filename);
// Load an byte array to the Texture2D.
texture.LoadImage(rawData);Step 2: Create and Use a HandTracker
// Create a handTracker.
HandTracker tracker = new HandTracker();
// Detect hands.
List<Hand> hands = tracker.Load(texture);Step 3: Retrieve Index Finger Joint Information
Full example code
Last updated