TRekognitionImage
Class in AWS.Rekognition
Image class.
Ancestors
Properties
Bytes
property Bytes: TStream
S3Object
property S3Object: IRekognitionS3Object
Type: IRekognitionS3Object
Constructors
Create
constructor Create; overload;
Constructor for TRekognitionImage.
constructor Create(const ABytes: TStream; const AOwnsBytes: Boolean = True); overload;
Constructor for TRekognitionImage.
Parameters
| Name | Description |
|---|---|
ABytes | Specify a stream of bytes containing an image. |
AOwnsBytes | Specify whether the ABytes will be owned by the instance of TRekognitionImage. If the stream ABytes is owned, it will be freed on destruction. |
constructor Create(const ABucket, AObject: string; const AVersion: string = ''); overload;
Constructor for TRekognitionImage.
Parameters
| Name | Description |
|---|---|
ABucket | Specify the name of the bucket containing the source object. |
AObject | Specify the key of the object in the bucket. |
AVersion | Optional, specify an object version. |
Methods
FromFile
class function FromFile(const AFilename: string): TRekognitionImage;
Source an image from a file.
Parameters
| Name | Description |
|---|---|
AFilename | Specify the name of an image file. |
Returns
Returns an instance of TRekognitionImage containing a stream of bytes with the contents of the file.
FromStream
class function FromStream(const ABytes: TStream; const AOwnsBytes: Boolean = True): TRekognitionImage;
Source an image from a stream of bytes.
Parameters
| Name | Description |
|---|---|
ABytes | Specify a stream of bytes containing an image. |
AOwnsBytes | Specify whether the ABytes will be owned by the instance of TRekognitionImage. If the stream ABytes is owned, it will be freed on destruction. |
Returns
Returns an instance of TRekognitionImage containing a stream of bytes.
FromS3Object
class function FromS3Object(const ABucket, AObject: string; const AVersion: string = ''): TRekognitionImage;
Source an image from an S3 object.
Parameters
| Name | Description |
|---|---|
ABucket | Specify the name of the bucket containing the source object. |
AObject | Specify the key of the object in the bucket. |
AVersion | Optional, specify an object version. |
Returns
Returns an instance of TRekognitionImage containing an S3 object source.