HandLandmarker class

Performs hand landmarks detection on images.

Signature:

export declare class HandLandmarker extends VisionTaskRunner 

Extends: VisionTaskRunner

Properties

Property Modifiers Type Description
HAND_CONNECTIONS static Connection[] An array containing the pairs of hand landmark indices to be rendered with connections.

Methods

Method Modifiers Description
createFromModelBuffer(wasmFileset, modelAssetBuffer) static Initializes the Wasm runtime and creates a new HandLandmarker based on the provided model asset buffer.
createFromModelPath(wasmFileset, modelAssetPath) static Initializes the Wasm runtime and creates a new HandLandmarker based on the path to the model asset.
createFromOptions(wasmFileset, handLandmarkerOptions) static Initializes the Wasm runtime and creates a new HandLandmarker from the provided options.
detect(image, imageProcessingOptions) Performs hand landmarks detection on the provided single image and waits synchronously for the response. Only use this method when the HandLandmarker is created with running mode image.
detectForVideo(videoFrame, timestamp, imageProcessingOptions) Performs hand landmarks detection on the provided video frame and waits synchronously for the response. Only use this method when the HandLandmarker is created with running mode video.
setOptions(options) Sets new options for this HandLandmarker.Calling setOptions() with a subset of options only affects those options. You can reset an option back to its default value by explicitly setting it to undefined.

HandLandmarker.HAND_CONNECTIONS

An array containing the pairs of hand landmark indices to be rendered with connections.

Signature:

static HAND_CONNECTIONS: