👐
Hand & Finger Tracking for Unity
HomepageSupportContact
  • Hand Tracking Unity Plugin
    • Overview
    • System Requirements
    • Installation
    • QuickStart
    • Supported Joints
  • Help & Support
    • Ask for help
    • Request a feature
  • Examples
    • Detect hand and retrieve joints
    • No Code: Detect and visualize hands from a Sprite
    • Detect and visualize hands from a Sprite
    • Detect and visualize hands from a video
    • Use webcam to detect and visualize hands (2D Canvas)
    • Use webcam to detect and visualize hands (3D World space)
  • API Reference
    • Finger
      • Index
      • Middle
      • Palm
      • Pinky
      • Ring
      • Thumb
    • FingerJoint
    • FingerJointType
    • Hand
    • HandExtensions
    • HandSide
    • HandTracker
  • UI Reference
    • HandManager
    • HandViewer
    • HandVisual
    • ImageView
    • StreamSource
      • SpriteSource
      • VideoSource
      • WebcamSource
    • HandTrackerExtensions
    • WebcamSelector
Powered by GitBook
On this page
  • Methods
  • Example
  1. UI Reference

HandTrackerExtensions

Extension methods for the StreamSource class.

PreviousWebcamSourceNextWebcamSelector

Last updated 1 year ago

public static class HandTrackerExtensions

This is a static class.

Methods

Name
Return Type
Description

Load(, )

List<>

Static. Detects hands in the current stream.

Example

The example shows how to detect hands with the StreamSourceExtensions class.

Detect hands in StreamSource

First, create a component and a object.

[SerializeField] private StreamSource _source;
private readonly HandTracker handTracker = new HandTracker();

Then, use the HandTrackerExtensions class to detect hands in the specified .

List<Hand> hands = _handTracker.Load(_source);
StreamSource
Handtracker
StreamSource
HandTracker
StreamSource
Hand