Interface TextDetection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TextDetection.Builder,
,TextDetection> SdkBuilder<TextDetection.Builder,
,TextDetection> SdkPojo
- Enclosing class:
TextDetection
-
Method Summary
Modifier and TypeMethodDescriptionconfidence
(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.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.The location of the detected text on the image.The identifier for the detected text.The Parent identifier for the detected text identified by the value ofID
.The type of text that was detected.The type of text that was detected.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
detectedText
The word or line of text recognized by Amazon Rekognition.
- Parameters:
detectedText
- The word or line of text recognized by Amazon Rekognition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of text that was detected.
- Parameters:
type
- The type of text that was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of text that was detected.
- Parameters:
type
- The type of text that was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The identifier for the detected text. The identifier is only unique for a single call to
DetectText
.- Parameters:
id
- The identifier for the detected text. The identifier is only unique for a single call toDetectText
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentId
The Parent identifier for the detected text identified by the value of
ID
. If the type of detected text isLINE
, the value ofParentId
isNull
.- Parameters:
parentId
- The Parent identifier for the detected text identified by the value ofID
. If the type of detected text isLINE
, the value ofParentId
isNull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theGeometry.Builder
avoiding the need to create one manually viaGeometry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togeometry(Geometry)
.- Parameters:
geometry
- a consumer that will call methods onGeometry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-