Performs holistic landmarks detection on images.
Signature:
export declare class HolisticLandmarker extends VisionTaskRunner
Extends: VisionTaskRunner
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
FACE_LANDMARKS_CONTOURS | static |
Connection[] | Landmark connections to draw the face's contour. |
FACE_LANDMARKS_FACE_OVAL | static |
Connection[] | Landmark connections to draw the face's oval. |
FACE_LANDMARKS_LEFT_EYE | static |
Connection[] | Landmark connections to draw the connection between a face's left eye. |
FACE_LANDMARKS_LEFT_EYEBROW | static |
Connection[] | Landmark connections to draw the connection between a face's left eyebrow. |
FACE_LANDMARKS_LEFT_IRIS | static |
Connection[] | Landmark connections to draw the connection between a face's left iris. |
FACE_LANDMARKS_LIPS | static |
Connection[] | Landmark connections to draw the connection between a face's lips. |
FACE_LANDMARKS_RIGHT_EYE | static |
Connection[] | Landmark connections to draw the connection between a face's right eye. |
FACE_LANDMARKS_RIGHT_EYEBROW | static |
Connection[] | Landmark connections to draw the connection between a face's right eyebrow. |
FACE_LANDMARKS_RIGHT_IRIS | static |
Connection[] | Landmark connections to draw the connection between a face's right iris. |
FACE_LANDMARKS_TESSELATION | static |
Connection[] | Landmark connections to draw the face's tesselation. |
HAND_CONNECTIONS | static |
Connection[] | An array containing the pairs of hand landmark indices to be rendered with connections. |
POSE_CONNECTIONS | static |
Connection[] | An array containing the pairs of pose landmark indices to be rendered with connections. |
Methods
Method | Modifiers | Description |
---|---|---|
createFromModelBuffer(wasmFileset, modelAssetBuffer) | static |
Initializes the Wasm runtime and creates a new HolisticLandmarker based on the provided model asset buffer. |
createFromModelPath(wasmFileset, modelAssetPath) | static |
Initializes the Wasm runtime and creates a new HolisticLandmarker based on the path to the model asset. |
createFromOptions(wasmFileset, holisticLandmarkerOptions) | static |
Initializes the Wasm runtime and creates a new HolisticLandmarker from the provided options. |
detect(image, callback) | Performs holistic landmarks detection on the provided single image and invokes the callback with the response. The method returns synchronously once the callback returns. Only use this method when the HolisticLandmarker is created with running mode image . |
|
detect(image, imageProcessingOptions, callback) | Performs holistic landmarks detection on the provided single image and invokes the callback with the response. The method returns synchronously once the callback returns. Only use this method when the HolisticLandmarker is created with running mode image . |
|
detect(image) | Performs holistic landmarks detection on the provided single image and waits synchronously for the response. This method creates a copy of the resulting masks and should not be used in high-throughput applications. Only use this method when the HolisticLandmarker is created with running mode image . |
|
detect(image, imageProcessingOptions) | Performs holistic landmarks detection on the provided single image and waits synchronously for the response. This method creates a copy of the resulting masks and shoul |