Trapezoid class

Constructors

Trapezoid.new({required Offset topLeftOffset, required Offset bottomLeftOffset, required Offset topRightOffset, required Offset bottomRightOffset})
Trapezoid.fromCornerPoint(List<Point<int>> cornerPoints, Size imageSize)
Convert list of 4 cornersPoints from MlKit to Trapezoid
factory
Trapezoid.fromElementsList(List<TextElement> elements)
Return the global trapezoid containing the list of Offsets
factory
Trapezoid.fromOffsetList(List<Offset> offsets)
Return the global trapezoid containing the list of Offsets
factory

Properties

bottomLeftOffset Offset
getter/setter pair
bottomRightOffset Offset
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topLeftOffset Offset
getter/setter pair
topRightOffset Offset
getter/setter pair

Methods

isInside(Trapezoid outerTrapezoid) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resizedTrapezoid(Size size, Size inputImageSize, InputImageRotation rotation, double paddingWidth, double paddingHeight, double? adjustTranslateX, double? adjustTranslateY) Trapezoid
Resize Trapezoid to scaled image
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override