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
| Name | Description |
|---|---|
ALeft | Specify the Left coordinate of the bounding box as a ratio of the overall image width. |
ATop | Specify the coordinate of the bounding box as a ratio of the overall image height. |
AWidth | Specify the coordinate of the bounding box as a ratio of the overall image width. |
AHeight | Specify the height of the bounding box as a ratio of the overall image height. |
constructor Create(const APoints: array of IRekognitionPoint); overload;
Constructor for TRekognitionRegionOfInterest.
Parameters
| Name | Description |
|---|---|
APoints | Specify an array of points (X and Y coordinates) for the polygon. |
Methods
InBoundingBox
class function InBoundingBox( const ALeft, ATop, AWidth, AHeight: Single): TRekognitionRegionOfInterest;
Define a region of interest in a bounding box.
Parameters
| Name | Description |
|---|---|
ALeft | Specify the Left coordinate of the bounding box as a ratio of the overall image width. |
ATop | Specify the coordinate of the bounding box as a ratio of the overall image height. |
AWidth | Specify the coordinate of the bounding box as a ratio of the overall image width. |
AHeight | Specify 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;
IRekognitionPoint → TRekognitionRegionOfInterest
Define a region of interest in a polygon.
Parameters
| Name | Description |
|---|---|
APoints | Specify an array of points (X and Y coordinates) for the polygon. |
Returns
Returns a TRekognitionRegionOfInterest with a Polygon.