Skip to main content

TRekognitionRegionOfInterest

Class in AWS.Rekognition

RegionOfInterest class.

Ancestors

Properties

BoundingBox

property BoundingBox: IRekognitionBoundingBox

Type: IRekognitionBoundingBox

Polygon

property Polygon: TList<IRekognitionPoint>

Type: IRekognitionPoint

Constructors

Create

constructor Create(const ALeft, ATop, AWidth, AHeight: Single); overload;

Constructor for TRekognitionRegionOfInterest.

Parameters

NameDescription
ALeftSpecify the Left coordinate of the bounding box as a ratio of the overall image width.
ATopSpecify the coordinate of the bounding box as a ratio of the overall image height.
AWidthSpecify the coordinate of the bounding box as a ratio of the overall image width.
AHeightSpecify the height of the bounding box as a ratio of the overall image height.

constructor Create(const APoints: array of IRekognitionPoint); overload;

IRekognitionPoint

Constructor for TRekognitionRegionOfInterest.

Parameters

NameDescription
APointsSpecify an array of points (X and Y coordinates) for the polygon.

Methods

InBoundingBox

class function InBoundingBox( const ALeft, ATop, AWidth, AHeight: Single): TRekognitionRegionOfInterest;

TRekognitionRegionOfInterest

Define a region of interest in a bounding box.

Parameters

NameDescription
ALeftSpecify the Left coordinate of the bounding box as a ratio of the overall image width.
ATopSpecify the coordinate of the bounding box as a ratio of the overall image height.
AWidthSpecify the coordinate of the bounding box as a ratio of the overall image width.
AHeightSpecify the height of the bounding box as a ratio of the overall image height.

Returns

Returns a TRekognitionRegionOfInterest with a BoundingBox.

InPolygon

class function InPolygon( const APoints: array of IRekognitionPoint): TRekognitionRegionOfInterest;

IRekognitionPointTRekognitionRegionOfInterest

Define a region of interest in a polygon.

Parameters

NameDescription
APointsSpecify an array of points (X and Y coordinates) for the polygon.

Returns

Returns a TRekognitionRegionOfInterest with a Polygon.