Eye class
Eye tracking data: iris center + iris contour + eye mesh.
Constructors
-
Eye({required Point irisCenter, required List<
Point> irisContour, List<Point> mesh = const <Point>[]}) -
Creates an eye with iris center, iris contour, and (optional) eye mesh.
const
-
Eye.fromMap(Map<
String, dynamic> map) -
Creates an eye from a map.
factory
-
Eye.optimized({required Point irisCenter, required List<
Point> irisContour, List<Point> mesh = const <Point>[]}) -
Creates an eye with pre-computed contour for faster repeated access.
factory
Properties
-
contour
→ List<
Point> -
The visible eyelid contour (first 15 points of the mesh).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- irisCenter → Point
-
Center point of the iris in absolute pixel coordinates.
final
-
irisContour
→ List<
Point> -
Four iris boundary points in absolute pixel coordinates.
final
-
mesh
→ List<
Point> -
Complete eye mesh (71 points) covering the eye region.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this eye to a map for isolate serialization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited