Landmark class
Indicates the location of the landmark on the face.
Constructors
- Landmark({LandmarkType? type, double? x, double? y})
-
Landmark.fromJson(Map<
String, dynamic> json) -
factory
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 → LandmarkType?
-
Type of landmark.
final
- x → double?
-
The x-coordinate of the landmark expressed as a ratio of the width of the
image. The x-coordinate is measured from the left-side of the image. For
example, if the image is 700 pixels wide and the x-coordinate of the
landmark is at 350 pixels, this value is 0.5.
final
- y → double?
-
The y-coordinate of the landmark expressed as a ratio of the height of the
image. The y-coordinate is measured from the top of the image. For example,
if the image height is 200 pixels and the y-coordinate of the landmark is at
50 pixels, this value is 0.25.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited