Skip to main content

ITextractAnalyzeDocumentRequest

Interface in AWS.Textract

Interface for AnalyzeDocument requests.

Ancestors

Properties

AdaptersConfig

property AdaptersConfig: ITextractAdaptersConfig

Type: ITextractAdaptersConfig

Specify the adapter to be used when analyzing a document.

Document

property Document: ITextractDocument

Type: ITextractDocument

Specify the input document.

FeatureTypes

property FeatureTypes: TList<string>

Specify a list of feature types of analysis to perform.

Valid values: FORMS | TABLES. Add FORMS to the list to return detected form data. Add TABLES to the list to return information about tables detected. All lines and words detected in the document will be included in the response (including text that isn't related to the value of FeatureTypes).

HumanLoopConfig

property HumanLoopConfig: ITextractHumanLoopConfig

Type: ITextractHumanLoopConfig

Specify configuration for the human in the loop workflow for analyzing documents.

QueriesConfig

property QueriesConfig: ITextractQueriesConfig

Type: ITextractQueriesConfig

Specify queries and their aliases.

Methods

AddAdapter

function AddAdapter(const AAdapter: ITextractAdapter): NativeInt; overload;

ITextractAdapter

Add an adapter to AdaptersConfig.

Parameters

NameDescription
AAdapterSpecify an adapter to add to AdaptersConfig.

Returns

Returns the index of the adapter added to AdaptersConfig.


function AddAdapter(const AAdapterId, AVersion: string): NativeInt; overload;

Add an adapter to AdaptersConfig.

Parameters

NameDescription
AAdapterIdSpecify the unique identifier for the adapter resource.
AVersionSpecify the version of the adapter.

Returns

Returns the index of the adapter added to AdaptersConfig.


function AddAdapter(const AAdapterId, AVersion: string; const APages: array of string): NativeInt; overload;

Add an adapter to AdaptersConfig.

Parameters

NameDescription
AAdapterIdSpecify the unique identifier for the adapter resource.
AVersionSpecify the version of the adapter.
APagesSpecify the pages to apply the adapter to.

Returns

Returns the index of the adapter added to AdaptersConfig.

AddQuery

function AddQuery(const AQuery: ITextractQuery): NativeInt; overload;

ITextractQuery

Add a query to QueriesConfig.

Parameters

NameDescription
AQuerySpecify a query to add to Queries.

Returns

Returns the index of the query added to QueriesConfig.


function AddQuery(const AText: string; const AAlias: string = ''): NativeInt; overload;

Add a query to QueriesConfig.

Parameters

NameDescription
ATextSpecify a question that Amazon Textract will be applied to the document.
AAliasSpecify an alias to attach to the query, for ease of location.

Returns

Returns the index of the query added to QueriesConfig.


function AddQuery(const AText, AAlias: string; const APages: array of string): NativeInt; overload;

Add a query to QueriesConfig.

Parameters

NameDescription
ATextSpecify a question that Amazon Textract will be applied to the document.
AAliasSpecify an alias to attach to the query, for ease of location.
APagesSpecify the pages to apply the query to.

Returns

Returns the index of the query added to QueriesConfig.