Interface TextDetection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TextDetection.Builder,TextDetection>,SdkBuilder<TextDetection.Builder,TextDetection>,SdkPojo
- Enclosing class:
- TextDetection
public static interface TextDetection.Builder extends SdkPojo, CopyableBuilder<TextDetection.Builder,TextDetection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TextDetection.Builderconfidence(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.BuilderdetectedText(String detectedText)The word or line of text recognized by Amazon Rekognition.default TextDetection.Buildergeometry(Consumer<Geometry.Builder> geometry)The location of the detected text on the image.TextDetection.Buildergeometry(Geometry geometry)The location of the detected text on the image.TextDetection.Builderid(Integer id)The identifier for the detected text.TextDetection.BuilderparentId(Integer parentId)The Parent identifier for the detected text identified by the value ofID.TextDetection.Buildertype(String type)The type of text that was detected.TextDetection.Buildertype(TextTypes type)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 Detail
-
detectedText
TextDetection.Builder detectedText(String 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
TextDetection.Builder type(String type)
The type of text that was detected.
-
type
TextDetection.Builder type(TextTypes type)
The type of text that was detected.
-
id
TextDetection.Builder id(Integer 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
TextDetection.Builder parentId(Integer parentId)
The Parent identifier for the detected text identified by the value of
ID. If the type of detected text isLINE, the value ofParentIdisNull.- Parameters:
parentId- The Parent identifier for the detected text identified by the value ofID. If the type of detected text isLINE, the value ofParentIdisNull.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
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.
- 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
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.
- 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
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 method that creates an instance of theGeometry.Builderavoiding the need to create one manually viaGeometry.builder().When the
Consumercompletes,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:
geometry(Geometry)
-
-