Struct aws_sdk_rekognition::types::TextDetection
source · #[non_exhaustive]pub struct TextDetection {
pub detected_text: Option<String>,
pub type: Option<TextTypes>,
pub id: Option<i32>,
pub parent_id: Option<i32>,
pub confidence: Option<f32>,
pub geometry: Option<Geometry>,
}
Expand description
Information about a word or line of text detected by DetectText
.
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.detected_text: Option<String>
The word or line of text recognized by Amazon Rekognition.
type: Option<TextTypes>
The type of text that was detected.
id: Option<i32>
The identifier for the detected text. The identifier is only unique for a single call to DetectText
.
parent_id: Option<i32>
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
.
confidence: Option<f32>
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
geometry: Option<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.
Implementations§
source§impl TextDetection
impl TextDetection
sourcepub fn detected_text(&self) -> Option<&str>
pub fn detected_text(&self) -> Option<&str>
The word or line of text recognized by Amazon Rekognition.
sourcepub fn id(&self) -> Option<i32>
pub fn id(&self) -> Option<i32>
The identifier for the detected text. The identifier is only unique for a single call to DetectText
.
sourcepub fn parent_id(&self) -> Option<i32>
pub fn parent_id(&self) -> Option<i32>
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
.
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
source§impl TextDetection
impl TextDetection
sourcepub fn builder() -> TextDetectionBuilder
pub fn builder() -> TextDetectionBuilder
Creates a new builder-style object to manufacture TextDetection
.
Trait Implementations§
source§impl Clone for TextDetection
impl Clone for TextDetection
source§fn clone(&self) -> TextDetection
fn clone(&self) -> TextDetection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextDetection
impl Debug for TextDetection
source§impl PartialEq<TextDetection> for TextDetection
impl PartialEq<TextDetection> for TextDetection
source§fn eq(&self, other: &TextDetection) -> bool
fn eq(&self, other: &TextDetection) -> bool
self
and other
values to be equal, and is used
by ==
.