Skip to content

TextDetection

Source code in docs_src/capo_rekognition/types/text_detection.py
class TextDetection(TypedDict, closed=True):
    detected_text: NotRequired["capo_rekognition.types.string.String"]
    """<p>The word or line of text recognized by Amazon Rekognition. </p>"""
    type: NotRequired["capo_rekognition.types.text_types.TextTypes"]
    """<p>The type of text that was detected.</p>"""
    id: NotRequired["capo_rekognition.types.u_integer.UInteger"]
    """<p>The identifier for the detected text. The identifier is only unique for a single call to <code>DetectText</code>. </p>"""
    parent_id: NotRequired["capo_rekognition.types.u_integer.UInteger"]
    """<p>The Parent identifier for the detected text identified by the value of <code>ID</code>. If the type of detected text is <code>LINE</code>, the value of <code>ParentId</code> is <code>Null</code>. </p>"""
    confidence: NotRequired["capo_rekognition.types.percent.Percent"]
    """<p>The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.</p>"""
    geometry: NotRequired["capo_rekognition.types.geometry.Geometry"]
    """<p>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.</p>"""

confidence instance-attribute

confidence: NotRequired[Percent]

The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.

detected_text instance-attribute

detected_text: NotRequired[String]

The word or line of text recognized by Amazon Rekognition.

geometry instance-attribute

geometry: NotRequired[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.

id instance-attribute

id: NotRequired[UInteger]

The identifier for the detected text. The identifier is only unique for a single call to DetectText.

parent_id instance-attribute

parent_id: NotRequired[UInteger]

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.

type instance-attribute

type: NotRequired[TextTypes]

The type of text that was detected.