Quadrilateral
The Quadrilateral class is used to define a quadrilateral shape. This class is mainly used by the roi parameter of SimplifiedCaptureVisionSettings.
Definition
Assembly: dynamsoft_capture_vision_flutter
class Quadrilateral
Constructors
Quadrilateral({required this.points});
Properties
| Property | Type | Description |
|---|---|---|
points |
List<Point> | A list of four points that make up the quadrilateral. |
centrePoint |
Point<int> |
Gets the centre point of the Quadrilateral. |
points
A list of four points that make up the quadrilateral. The points list start from the top-left point of the quadrilateral and go clockwise.
List<Point<int>> points;
Remarks
The coordinates are typically set in pixels. However, if you are setting a region via the SimplifiedCaptureVisionSettings, you can set the coordinates of the Quadrilateral as percentages (of the frame dimensions) instead of pixels if roiMeasuredInPercentage is set to true.
centrePoint
Gets the centre point of the Quadrilateral.
Point<int> centrePoint()
Return Value
A Point<int> object representing the centre point of the quadrilateral.