textract

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Textract

type Textract struct {
	// define the AWS region that Textract is located at
	AwsRegion awsregion.AWSRegion

	// custom http2 client options
	HttpOptions *awshttp2.HttpClientSettings
	// contains filtered or unexported fields
}

Textract struct encapsulates the AWS Textract access functionality

func (*Textract) AnalyzeID

func (s *Textract) AnalyzeID(data []byte) (fields map[string]string, err error)

Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields , which records both the normalized field and value of the extracted text. Unlike other Amazon Textract operations, AnalyzeID doesn't return any Geometry data.

func (*Textract) Connect

func (s *Textract) Connect(parentSegment ...*xray.XRayParentSegment) (err error)

Connect will establish a connection to the Textract service

func (*Textract) Disconnect

func (s *Textract) Disconnect()

Disconnect will clear textract client

func (*Textract) UpdateParentSegment

func (s *Textract) UpdateParentSegment(parentSegment *xray.XRayParentSegment)

UpdateParentSegment updates this struct's xray parent segment, if no parent segment, set nil

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL