HandLandmark class

A single keypoint with 3D coordinates and visibility score.

Coordinates are in the original image space (pixels). The z coordinate represents depth relative to the center (not absolute depth).

Constructors

HandLandmark({required HandLandmarkType type, required double x, required double y, required double z, required double visibility})
Creates a hand landmark with 3D coordinates and visibility score.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → HandLandmarkType
The landmark type this represents
final
visibility → double
Visibility/confidence score (0.0 to 1.0). Higher means more confident the landmark is visible.
final
x → double
X coordinate in pixels (original image space)
final
y → double
Y coordinate in pixels (original image space)
final
z → double
Z coordinate representing depth (not absolute depth)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Serializes this landmark to a map for cross-isolate transfer.
toPixel(int imageWidth, int imageHeight) → Point
Converts this landmark to a Point in pixel coordinates.
inherited
toString() → String
A string representation of this object.
inherited
xNorm(int imageWidth) → double
Returns the x coordinate normalized to 0.0..1.0 relative to imageWidth.
inherited
yNorm(int imageHeight) → double
Returns the y coordinate normalized to 0.0..1.0 relative to imageHeight.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic> map) → HandLandmark
Deserializes a landmark from a map.