QuickStart
A QuickStart overview on how to detect hands and retrieve finger joint information.
Following the steps described in the Workflow section, here is how to detect hands and fingers in 3 easy steps:
Step 1: Load image data
Load an image to a Texture2D. The image could be loaded from one of the following sources:
🖼️ Image file
An image file is a PNG, JPG, WEBP, or BMP image.
// 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); 🎥 Video file
A video may by an MP4, AVI, MOV, WEBM, or WMV file.
📷 Camera feed
Computer webcams, external USB cameras, and phone rear/selfie cameras are supported.
Step 2: Detect hands
Pass the Texture2D from step 1 to a HandTracker. The HandTracker will detect the hands and fingers in the texture.
Step 3: Access hand & finger data
Access the detected hand's information.
Examples
For more detailed examples, check our dedicated Examples section:
Detect hand and retrieve jointsNo Code: Detect and visualize hands from a SpriteDetect and visualize hands from a SpriteDetect and visualize hands from a videoUse webcam to detect and visualize hands (2D Canvas)Use webcam to detect and visualize hands (3D World space)Last updated