@Generated(value="software.amazon.awssdk:codegen") public final class TextDetection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TextDetection.Builder,TextDetection>
Information about a word or line of text detected by .
The DetectedText
field contains the text that Amazon Rekognition detected in the image.
Every word and line has an identifier (Id
). Each word belongs to a line and has a parent identifier (
ParentId
) that identifies the line of text in which the word appears. The word Id
is also
an index for the word within a line of words.
For more information, see Detecting Text in the Amazon Rekognition Developer Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
TextDetection.Builder |
Modifier and Type | Method and Description |
---|---|
static TextDetection.Builder |
builder() |
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.
|
String |
detectedText()
The word or line of text recognized by Amazon Rekognition.
|
boolean |
equals(Object obj) |
Geometry |
geometry()
The location of the detected text on the image.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
id()
The identifier for the detected text.
|
Integer |
parentId()
The Parent identifier for the detected text identified by the value of
ID . |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TextDetection.Builder> |
serializableBuilderClass() |
TextDetection.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TextTypes |
type()
The type of text that was detected.
|
String |
typeAsString()
The type of text that was detected.
|
copy
public String detectedText()
The word or line of text recognized by Amazon Rekognition.
public TextTypes type()
The type of text that was detected.
If the service returns an enum value that is not available in the current SDK version, type
will return
TextTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TextTypes
public String typeAsString()
The type of text that was detected.
If the service returns an enum value that is not available in the current SDK version, type
will return
TextTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TextTypes
public Integer id()
The identifier for the detected text. The identifier is only unique for a single call to DetectText
.
DetectText
.public 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
.
ID
. If the type of
detected text is LINE
, the value of ParentId
is Null
.public 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.
public 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.
public TextDetection.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TextDetection.Builder,TextDetection>
public static TextDetection.Builder builder()
public static Class<? extends TextDetection.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.