Skip to content

Landmark

Source code in docs_src/capo_rekognition/types/landmark.py
class Landmark(TypedDict, closed=True):
    type: NotRequired["capo_rekognition.types.landmark_type.LandmarkType"]
    """<p>Type of landmark.</p>"""
    x: NotRequired["capo_rekognition.types.float.Float"]
    """<p>The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5. </p>"""
    y: NotRequired["capo_rekognition.types.float.Float"]
    """<p>The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.</p>"""

type instance-attribute

type: NotRequired[LandmarkType]

Type of landmark.

x instance-attribute

x: NotRequired[Float]

The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.

y instance-attribute

y: NotRequired[Float]

The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.