Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://aws-api.deno.dev/v0.4/services/textract.ts?docs=full";

§Classes

Textract

§Interfaces

AnalyzeDocumentRequest
AnalyzeDocumentResponse
AnalyzeExpenseRequest
AnalyzeExpenseResponse
AnalyzeIDDetections

Used to contain the information detected by an AnalyzeID operation.

AnalyzeIDRequest
AnalyzeIDResponse
Block

A Block represents items that are recognized in a document within a group of pixels close to each other. The information returned in a Block object depends on the type of operation. In text detection for documents (for example "DetectDocumentText"), you get information about the detected words and lines of text. In text analysis (for example "AnalyzeDocument"), you can also get information about the fields, tables, and selection elements that are detected in the document.

BoundingBox

The bounding box around the detected page, text, key-value pair, table, table cell, or selection element on a document page. The left (x-coordinate) and top (y-coordinate) are coordinates that represent the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).

DetectDocumentTextRequest
DetectDocumentTextResponse
DetectedSignature

A structure that holds information regarding a detected signature on a page.

Document

The input document, either as bytes or as an S3 object.

DocumentGroup

Summary information about documents grouped by the same document type.

DocumentLocation

The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous operations.

DocumentMetadata

Information about the input document.

ExpenseCurrency

Returns the kind of currency detected.

ExpenseDetection

An object used to store information about the Value or Label detected by Amazon Textract.

ExpenseDocument

The structure holding all the information returned by AnalyzeExpense

ExpenseField

Breakdown of detected information, seperated into the catagories Type, LabelDetection, and ValueDetection

ExpenseGroupProperty

Shows the group that a certain key belongs to. This helps differentiate between names and addresses for different organizations, that can be hard to determine via JSON response.

ExpenseType

An object used to store information about the Type detected by Amazon Textract.

Extraction

Contains information extracted by an analysis operation after using StartLendingAnalysis.

Geometry

Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.

GetDocumentAnalysisRequest
GetDocumentAnalysisResponse
GetDocumentTextDetectionRequest
GetDocumentTextDetectionResponse
GetExpenseAnalysisRequest
GetExpenseAnalysisResponse
GetLendingAnalysisRequest
GetLendingAnalysisResponse
GetLendingAnalysisSummaryRequest
GetLendingAnalysisSummaryResponse
HumanLoopActivationOutput

Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input did not trigger human review.

HumanLoopConfig

Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes of the image before review.

HumanLoopDataAttributes

Allows you to set attributes of the image. Currently, you can declare an image as free of personally identifiable information and adult content.

IdentityDocument

The structure that lists each document processed in an AnalyzeID operation.

IdentityDocumentField

Structure containing both the normalized type of the extracted information and the text associated with it. These are extracted as Type and Value respectively.

LendingDetection

The results extracted for a lending document.

LendingDocument

Holds the structured data returned by AnalyzeDocument for lending documents.

LendingField

Holds the normalized key-value pairs returned by AnalyzeDocument, including the document type, detected text, and geometry.

LendingResult

Contains the detections for each page analyzed through the Analyze Lending API.

LendingSummary

Contains information regarding DocumentGroups and UndetectedDocumentTypes.

LineItemFields

A structure that holds information about the different lines found in a document's tables.

LineItemGroup

A grouping of tables which contain LineItems, with each table identified by the table's LineItemGroupIndex.

NormalizedValue

Contains information relating to dates in a document, including the type of value, and the value.

NotificationChannel

The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of an asynchronous document operation.

OutputConfig

Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.

PageClassification

The class assigned to a Page object detected in an input document. Contains information regarding the predicted type/class of a document's page and the page number that the Page object was detected on.

Point

The X and Y coordinates of a point on a document page. The X and Y values that are returned are ratios of the overall document page size. For example, if the input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the document page.

Prediction

Contains information regarding predicted values returned by Amazon Textract operations, including the predicted value and the confidence in the predicted value.

QueriesConfig
Query

Each query contains the question you want to ask in the Text and the alias you want to associate.

Relationship

Information about how blocks are related to each other. A Block object contains 0 or more Relation objects in a list, Relationships. For more information, see "Block".

S3Object

The S3 bucket name and file name that identifies the document.

SignatureDetection

Information regarding a detected signature on a page.

SplitDocument

Contains information about the pages of a document, defined by logical boundary.

StartDocumentAnalysisRequest
StartDocumentAnalysisResponse
StartDocumentTextDetectionRequest
StartDocumentTextDetectionResponse
StartExpenseAnalysisRequest
StartExpenseAnalysisResponse
StartLendingAnalysisRequest
StartLendingAnalysisResponse
UndetectedSignature

A structure containing information about an undetected signature on a page where it was expected but not found.

Warning

A warning about an issue that occurred during asynchronous text analysis ("StartDocumentAnalysis") or asynchronous document text detection ("StartDocumentTextDetection").

§Type Aliases

BlockType
ContentClassifier
EntityType
FeatureType
JobStatus
RelationshipType
SelectionStatus
TextType
ValueType