DocumentCorners class

Data structure representing detected document quad bounds.

Constructors

DocumentCorners({required Offset topLeft, required Offset topRight, required Offset bottomRight, required Offset bottomLeft})
const

Properties

area → double
Calculates quadrilateral area using the Shoelace formula.
no setter
aspectRatio → double
Calculates bounding box width-to-height aspect ratio.
no setter
bottomLeft → Offset
final
bottomRight → Offset
final
hashCode → int
The hash code for this object.
no setterinherited
isConvex → bool
Checks if the four corner points form a convex polygon.
no setter
isValidQuad → bool
Validates whether corners form a valid non-zero convex quadrilateral.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topLeft → Offset
final
topRight → Offset
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double scaleX, double scaleY) → DocumentCorners
Returns scaled corners scaled by coordinate multipliers.
toBoundingBox() → Rect
toList() → List<Offset>
toString() → String
A string representation of this object.
inherited

Operators

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