PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::Textract; use Moose; sub service { 'textract' } sub signing_name { 'textract' } sub version { '2018-06-27' } sub target_prefix { 'Textract' } sub json_version { "1.1" } has max_attempts => (is => 'ro', isa => 'Int', default => 5); has retry => (is => 'ro', isa => 'HashRef', default => sub { { base => 'rand', type => 'exponential', growth_factor => 2 } }); has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ ] }); with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; sub AnalyzeDocument { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::AnalyzeDocument', @_); return $self->caller->do_call($self, $call_object); } sub DetectDocumentText { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::DetectDocumentText', @_); return $self->caller->do_call($self, $call_object); } sub GetDocumentAnalysis { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::GetDocumentAnalysis', @_); return $self->caller->do_call($self, $call_object); } sub GetDocumentTextDetection { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::GetDocumentTextDetection', @_); return $self->caller->do_call($self, $call_object); } sub StartDocumentAnalysis { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::StartDocumentAnalysis', @_); return $self->caller->do_call($self, $call_object); } sub StartDocumentTextDetection { my $self = shift; my $call_object = $self->new_with_coercions('Paws::Textract::StartDocumentTextDetection', @_); return $self->caller->do_call($self, $call_object); } sub operations { qw/AnalyzeDocument DetectDocumentText GetDocumentAnalysis GetDocumentTextDetection StartDocumentAnalysis StartDocumentTextDetection / } 1; ### main pod documentation begin ### =head1 NAME Paws::Textract - Perl Interface to AWS Amazon Textract =head1 SYNOPSIS use Paws; my $obj = Paws->service('Textract'); my $res = $obj->Method( Arg1 => $val1, Arg2 => [ 'V1', 'V2' ], # if Arg3 is an object, the HashRef will be used as arguments to the constructor # of the arguments type Arg3 => { Att1 => 'Val1' }, # if Arg4 is an array of objects, the HashRefs will be passed as arguments to # the constructor of the arguments type Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], ); =head1 DESCRIPTION Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract. For the AWS API documentation, see L =head1 METHODS =head2 AnalyzeDocument =over =item Document => L =item FeatureTypes => ArrayRef[Str|Undef] =item [HumanLoopConfig => L] =back Each argument is described in detail in: L Returns: a L instance Analyzes an input document for relationships between detected items. The types of information returned are as follows: =over =item * Form data (key-value pairs). The related information is returned in two Block objects, each of type C: a KEY C object and a VALUE C object. For example, I contains a key and value. I is the key. I is the value. =item * Table and table cell data. A TABLE C object contains information about a detected table. A CELL C object is returned for each cell in a table. =item * Lines and words of text. A LINE C object contains one or more WORD C objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of C). =back Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT C object contains information about a selection element, including the selection status. You can choose which type of analysis to perform by specifying the C list. The output is returned in a list of C objects. C is a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis. For more information, see Document Text Analysis (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html). =head2 DetectDocumentText =over =item Document => L =back Each argument is described in detail in: L Returns: a L instance Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be an image in JPEG or PNG format. C returns the detected text in an array of Block objects. Each document page has as an associated C of type PAGE. Each PAGE C object is the parent of LINE C objects that represent the lines of detected text on a page. A LINE C object is a parent for each word that makes up the line. Words are represented by C objects of type WORD. C is a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection. For more information, see Document Text Detection (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html). =head2 GetDocumentAnalysis =over =item JobId => Str =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document. You start asynchronous text analysis by calling StartDocumentAnalysis, which returns a job identifier (C). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to C. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is C. If so, call C, and pass the job identifier (C) from the initial call to C. C returns an array of Block objects. The following types of information are returned: =over =item * Form data (key-value pairs). The related information is returned in two Block objects, each of type C: a KEY C object and a VALUE C object. For example, I contains a key and value. I is the key. I is the value. =item * Table and table cell data. A TABLE C object contains information about a detected table. A CELL C object is returned for each cell in a table. =item * Lines and words of text. A LINE C object contains one or more WORD C objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of the C C input parameter). =back Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT C object contains information about a selection element, including the selection status. Use the C parameter to limit the number of blocks that are returned. If there are more results than specified in C, the value of C in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call C, and populate the C request parameter with the token value that's returned from the previous call to C. For more information, see Document Text Analysis (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html). =head2 GetDocumentTextDetection =over =item JobId => Str =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Gets the results for an Amazon Textract asynchronous operation that detects text in a document. Amazon Textract can detect lines of text and the words that make up a line of text. You start asynchronous text detection by calling StartDocumentTextDetection, which returns a job identifier (C). When the text detection operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to C. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is C. If so, call C, and pass the job identifier (C) from the initial call to C. C returns an array of Block objects. Each document page has as an associated C of type PAGE. Each PAGE C object is the parent of LINE C objects that represent the lines of detected text on a page. A LINE C object is a parent for each word that makes up the line. Words are represented by C objects of type WORD. Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in C, the value of C in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call C, and populate the C request parameter with the token value that's returned from the previous call to C. For more information, see Document Text Detection (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html). =head2 StartDocumentAnalysis =over =item DocumentLocation => L =item FeatureTypes => ArrayRef[Str|Undef] =item [ClientRequestToken => Str] =item [JobTag => Str] =item [KMSKeyId => Str] =item [NotificationChannel => L] =item [OutputConfig => L] =back Each argument is described in detail in: L Returns: a L instance Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements. C can analyze text in documents that are in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document. C returns a job identifier (C) that you use to get the results of the operation. When text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify in C. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is C. If so, call GetDocumentAnalysis, and pass the job identifier (C) from the initial call to C. For more information, see Document Text Analysis (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html). =head2 StartDocumentTextDetection =over =item DocumentLocation => L =item [ClientRequestToken => Str] =item [JobTag => Str] =item [KMSKeyId => Str] =item [NotificationChannel => L] =item [OutputConfig => L] =back Each argument is described in detail in: L Returns: a L instance Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of text and the words that make up a line of text. C can analyze text in documents that are in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document. C returns a job identifier (C) that you use to get the results of the operation. When text detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify in C. To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic is C. If so, call GetDocumentTextDetection, and pass the job identifier (C) from the initial call to C. For more information, see Document Text Detection (https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html). =head1 PAGINATORS Paginator methods are helpers that repetively call methods that return partial results =head1 SEE ALSO This service class forms part of L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut