public static interface TextDetection.Builder extends SdkPojo, CopyableBuilder<TextDetection.Builder,TextDetection>
Modifier and Type | Method and Description |
---|---|
TextDetection.Builder |
confidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the
geometry points around the detected text.
|
TextDetection.Builder |
detectedText(String detectedText)
The word or line of text recognized by Amazon Rekognition.
|
default TextDetection.Builder |
geometry(Consumer<Geometry.Builder> geometry)
The location of the detected text on the image.
|
TextDetection.Builder |
geometry(Geometry geometry)
The location of the detected text on the image.
|
TextDetection.Builder |
id(Integer id)
The identifier for the detected text.
|
TextDetection.Builder |
parentId(Integer parentId)
The Parent identifier for the detected text identified by the value of
ID . |
TextDetection.Builder |
type(String type)
The type of text that was detected.
|
TextDetection.Builder |
type(TextTypes type)
The type of text that was detected.
|
copy
applyMutation, build
TextDetection.Builder detectedText(String detectedText)
The word or line of text recognized by Amazon Rekognition.
detectedText
- The word or line of text recognized by Amazon Rekognition.TextDetection.Builder type(String type)
The type of text that was detected.
TextDetection.Builder type(TextTypes type)
The type of text that was detected.
TextDetection.Builder id(Integer id)
The identifier for the detected text. The identifier is only unique for a single call to
DetectText
.
id
- The identifier for the detected text. The identifier is only unique for a single call to
DetectText
.TextDetection.Builder parentId(Integer parentId)
The Parent identifier for the detected text identified by the value of ID
. If the type of
detected text is LINE
, the value of ParentId
is Null
.
parentId
- The Parent identifier for the detected text identified by the value of ID
. If the type of
detected text is LINE
, the value of ParentId
is Null
.TextDetection.Builder confidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
confidence
- The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of
the geometry points around the detected text.TextDetection.Builder geometry(Geometry geometry)
The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.
geometry
- The location of the detected text on the image. Includes an axis aligned coarse bounding box
surrounding the text and a finer grain polygon for more accurate spatial information.default TextDetection.Builder geometry(Consumer<Geometry.Builder> geometry)
The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.
This is a convenience that creates an instance of theGeometry.Builder
avoiding the need to create
one manually via Geometry.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to geometry(Geometry)
.geometry
- a consumer that will call methods on Geometry.Builder
geometry(Geometry)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.