Skip to main content

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

NameDescription
ABytesSpecify a stream of bytes containing an image.
AOwnsBytesSpecify 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

NameDescription
ABucketSpecify the name of the bucket containing the source object.
AObjectSpecify the key of the object in the bucket.
AVersionOptional, specify an object version.

Methods

FromFile

class function FromFile(const AFilename: string): TRekognitionImage;

TRekognitionImage

Source an image from a file.

Parameters

NameDescription
AFilenameSpecify 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;

TRekognitionImage

Source an image from a stream of bytes.

Parameters

NameDescription
ABytesSpecify a stream of bytes containing an image.
AOwnsBytesSpecify 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;

TRekognitionImage

Source an image from an S3 object.

Parameters

NameDescription
ABucketSpecify the name of the bucket containing the source object.
AObjectSpecify the key of the object in the bucket.
AVersionOptional, specify an object version.

Returns

Returns an instance of TRekognitionImage containing an S3 object source.