Struct aws_sdk_rekognition::operation::get_text_detection::builders::GetTextDetectionFluentBuilder    
source · pub struct GetTextDetectionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetTextDetection.
Gets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection.
Text detection with Amazon Rekognition Video is an asynchronous operation. You start text detection by calling StartTextDetection which returns a job identifier (JobId) When the text detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartTextDetection. To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. if so, call GetTextDetection and pass the job identifier (JobId) from the initial call of StartLabelDetection.
GetTextDetection returns an array of detected text (TextDetections) sorted by the time the text was detected, up to 100 words per frame of video.
Each element of the array includes the detected text, the precentage confidence in the acuracy of the detected text, the time the text was detected, bounding box information for where the text was located, and unique identifiers for words and their lines.
Use MaxResults parameter to limit the number of text detections returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetTextDetection and populate the NextToken request parameter with the token value returned from the previous call to GetTextDetection.
Implementations§
source§impl GetTextDetectionFluentBuilder
 
impl GetTextDetectionFluentBuilder
sourcepub fn as_input(&self) -> &GetTextDetectionInputBuilder
 
pub fn as_input(&self) -> &GetTextDetectionInputBuilder
Access the GetTextDetection as a reference.
sourcepub async fn send(
    self,
) -> Result<GetTextDetectionOutput, SdkError<GetTextDetectionError, HttpResponse>>
 
pub async fn send( self, ) -> Result<GetTextDetectionOutput, SdkError<GetTextDetectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
    self,
) -> CustomizableOperation<GetTextDetectionOutput, GetTextDetectionError, Self>
 
pub fn customize( self, ) -> CustomizableOperation<GetTextDetectionOutput, GetTextDetectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> GetTextDetectionPaginator
 
pub fn into_paginator(self) -> GetTextDetectionPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a PaginationStream.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
 
pub fn job_id(self, input: impl Into<String>) -> Self
Job identifier for the text detection operation for which you want results returned. You get the job identifer from an initial call to StartTextDetection.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
 
pub fn set_job_id(self, input: Option<String>) -> Self
Job identifier for the text detection operation for which you want results returned. You get the job identifer from an initial call to StartTextDetection.
sourcepub fn get_job_id(&self) -> &Option<String>
 
pub fn get_job_id(&self) -> &Option<String>
Job identifier for the text detection operation for which you want results returned. You get the job identifer from an initial call to StartTextDetection.
sourcepub fn max_results(self, input: i32) -> Self
 
pub fn max_results(self, input: i32) -> Self
Maximum number of results to return per paginated call. The largest value you can specify is 1000.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
 
pub fn set_max_results(self, input: Option<i32>) -> Self
Maximum number of results to return per paginated call. The largest value you can specify is 1000.
sourcepub fn get_max_results(&self) -> &Option<i32>
 
pub fn get_max_results(&self) -> &Option<i32>
Maximum number of results to return per paginated call. The largest value you can specify is 1000.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
 
pub fn next_token(self, input: impl Into<String>) -> Self
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
 
pub fn set_next_token(self, input: Option<String>) -> Self
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
sourcepub fn get_next_token(&self) -> &Option<String>
 
pub fn get_next_token(&self) -> &Option<String>
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
Trait Implementations§
source§impl Clone for GetTextDetectionFluentBuilder
 
impl Clone for GetTextDetectionFluentBuilder
source§fn clone(&self) -> GetTextDetectionFluentBuilder
 
fn clone(&self) -> GetTextDetectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for GetTextDetectionFluentBuilder
impl !RefUnwindSafe for GetTextDetectionFluentBuilder
impl Send for GetTextDetectionFluentBuilder
impl Sync for GetTextDetectionFluentBuilder
impl Unpin for GetTextDetectionFluentBuilder
impl !UnwindSafe for GetTextDetectionFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more