Skip to content

ModerationLabel

Source code in docs_src/capo_rekognition/types/moderation_label.py
class ModerationLabel(TypedDict, closed=True):
    confidence: NotRequired["capo_rekognition.types.percent.Percent"]
    """<p>Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.</p> <p>If you don't specify the <code>MinConfidence</code> parameter in the call to <code>DetectModerationLabels</code>, the operation returns labels with a confidence value greater than or equal to 50 percent.</p>"""
    name: NotRequired["capo_rekognition.types.string.String"]
    """<p>The label name for the type of unsafe content detected in the image.</p>"""
    parent_name: NotRequired["capo_rekognition.types.string.String"]
    """<p>The name for the parent label. Labels at the top level of the hierarchy have the parent label <code>""</code>.</p>"""
    taxonomy_level: NotRequired["capo_rekognition.types.u_integer.UInteger"]
    """<p>The level of the moderation label with regard to its taxonomy, from 1 to 3.</p>"""

confidence instance-attribute

confidence: NotRequired[Percent]

Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.

name instance-attribute

name: NotRequired[String]

The label name for the type of unsafe content detected in the image.

parent_name instance-attribute

parent_name: NotRequired[String]

The name for the parent label. Labels at the top level of the hierarchy have the parent label "".

taxonomy_level instance-attribute

taxonomy_level: NotRequired[UInteger]

The level of the moderation label with regard to its taxonomy, from 1 to 3.