amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.StartTextDetection

Description

Starts asynchronous detection of text in a stored video.

Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartTextDetection returns a job identifier (JobId) which you use to get the results of the operation. When text detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.

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 to StartTextDetection.

Synopsis

Creating a Request

data StartTextDetection Source #

See: newStartTextDetection smart constructor.

Constructors

StartTextDetection' 

Fields

  • clientRequestToken :: Maybe Text

    Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidentaly started more than once.

  • filters :: Maybe StartTextDetectionFilters

    Optional parameters that let you set criteria the text must meet to be included in your response.

  • jobTag :: Maybe Text

    An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag to group related jobs and identify them in the completion notification.

  • notificationChannel :: Maybe NotificationChannel
     
  • video :: Video
     

Instances

Instances details
ToJSON StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

ToHeaders StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

ToPath StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

ToQuery StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

AWSRequest StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Associated Types

type AWSResponse StartTextDetection #

Generic StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Associated Types

type Rep StartTextDetection :: Type -> Type #

Read StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Show StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

NFData StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Methods

rnf :: StartTextDetection -> () #

Eq StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Hashable StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

type AWSResponse StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

type Rep StartTextDetection Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

type Rep StartTextDetection = D1 ('MetaData "StartTextDetection" "Amazonka.Rekognition.StartTextDetection" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "StartTextDetection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StartTextDetectionFilters))) :*: (S1 ('MetaSel ('Just "jobTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "notificationChannel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationChannel)) :*: S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Video)))))

newStartTextDetection Source #

Create a value of StartTextDetection with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientRequestToken:StartTextDetection', startTextDetection_clientRequestToken - Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidentaly started more than once.

$sel:filters:StartTextDetection', startTextDetection_filters - Optional parameters that let you set criteria the text must meet to be included in your response.

$sel:jobTag:StartTextDetection', startTextDetection_jobTag - An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag to group related jobs and identify them in the completion notification.

$sel:notificationChannel:StartTextDetection', startTextDetection_notificationChannel - Undocumented member.

$sel:video:StartTextDetection', startTextDetection_video - Undocumented member.

Request Lenses

startTextDetection_clientRequestToken :: Lens' StartTextDetection (Maybe Text) Source #

Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidentaly started more than once.

startTextDetection_filters :: Lens' StartTextDetection (Maybe StartTextDetectionFilters) Source #

Optional parameters that let you set criteria the text must meet to be included in your response.

startTextDetection_jobTag :: Lens' StartTextDetection (Maybe Text) Source #

An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag to group related jobs and identify them in the completion notification.

Destructuring the Response

data StartTextDetectionResponse Source #

See: newStartTextDetectionResponse smart constructor.

Constructors

StartTextDetectionResponse' 

Fields

  • jobId :: Maybe Text

    Identifier for the text detection job. Use JobId to identify the job in a subsequent call to GetTextDetection.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Associated Types

type Rep StartTextDetectionResponse :: Type -> Type #

Read StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Show StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

NFData StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

Eq StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

type Rep StartTextDetectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartTextDetection

type Rep StartTextDetectionResponse = D1 ('MetaData "StartTextDetectionResponse" "Amazonka.Rekognition.StartTextDetection" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "StartTextDetectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStartTextDetectionResponse Source #

Create a value of StartTextDetectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:jobId:StartTextDetectionResponse', startTextDetectionResponse_jobId - Identifier for the text detection job. Use JobId to identify the job in a subsequent call to GetTextDetection.

$sel:httpStatus:StartTextDetectionResponse', startTextDetectionResponse_httpStatus - The response's http status code.

Response Lenses

startTextDetectionResponse_jobId :: Lens' StartTextDetectionResponse (Maybe Text) Source #

Identifier for the text detection job. Use JobId to identify the job in a subsequent call to GetTextDetection.