Struct aws_sdk_rekognition::model::TextDetection
source · [−]#[non_exhaustive]pub struct TextDetection { /* private fields */ }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.
Implementations
sourceimpl 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.
sourceimpl TextDetection
impl TextDetection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TextDetection.
Trait Implementations
sourceimpl Clone for TextDetection
impl Clone for TextDetection
sourcefn clone(&self) -> TextDetection
fn clone(&self) -> TextDetection
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more