Ë
    òukif	  ã                   ó–   — d Z ddlZddlmZmZ ddlmZ ddlmZ ej                  j                  Zej                   G d„ d«      «       Zy)zKeypoint data class.é    N)ÚAnyÚOptional)Úlocation_data_pb2)Údoc_controlsc                   óÔ   — e Zd ZU dZdZee   ed<   dZee   ed<   dZ	ee
   ed<   dZee   ed<   ej                  defd„«       Zeej                  d	edd fd
„«       «       Zdedefd„Zy)ÚNormalizedKeypointa‰  A normalized keypoint.

  Normalized keypoint represents a point in 2D space with x, y coordinates.
  x and y are normalized to [0.0, 1.0] by the image width and height
  respectively.

  Attributes:
    x: The x coordinates of the normalized keypoint.
    y: The y coordinates of the normalized keypoint.
    label: The optional label of the keypoint.
    score: The score of the keypoint.
  NÚxÚyÚlabelÚscoreÚreturnc                 óp   — t        | j                  | j                  | j                  | j                  ¬«      S )z-Generates a RelativeKeypoint protobuf object.)r	   r
   Úkeypoint_labelr   )Ú_RelativeKeypointProtor	   r
   r   r   )Úselfs    úp/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/mediapipe/tasks/python/components/containers/keypoint.pyÚto_pb2zNormalizedKeypoint.to_pb2-   s*   € ô "Ø
&‰&D—F‘F¨4¯:©:¸T¿Z¹Zôð ó    Úpb2_objc                 óp   — t        |j                  |j                  |j                  |j                  ¬«      S )zECreates a `NormalizedKeypoint` object from the given protobuf object.)r	   r
   r   r   )r   r	   r
   r   r   )Úclsr   s     r   Úcreate_from_pb2z"NormalizedKeypoint.create_from_pb24   s/   € ô Ø
)‰)Ø
)‰)Ø×$Ñ$Øm‰mô	ð r   Úotherc                 ó~   — t        |t        «      sy| j                  «       j                  |j                  «       «      S )z£Checks if this object is equal to the given object.

    Args:
      other: The object to be compared with.

    Returns:
      True if the objects are equal.
    F)Ú
isinstancer   r   Ú__eq__)r   r   s     r   r   zNormalizedKeypoint.__eq__A   s/   € ô eÔ/Ô0Øà;‰;‹=×Ñ §¡£Ó/Ð/r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   ÚfloatÚ__annotations__r
   r   Ústrr   r   Údo_not_generate_docsr   r   Úclassmethodr   r   Úboolr   © r   r   r   r      s¦   … ñð €!€Xˆe_ÓØ€!€Xˆe_ÓØ€%ˆ#‰ÓØ€%ˆ%‰Óà×$Ñ$ðÐ,ò ó %ðð Ø×$Ñ$ð	Ø*ð	àò	ó %ó ð	ð0˜#ð 0 $ô 0r   r   )r    ÚdataclassesÚtypingr   r   Úmediapipe.framework.formatsr   Ú1mediapipe.tasks.python.core.optional_dependenciesr   ÚLocationDataÚRelativeKeypointr   Ú	dataclassr   r'   r   r   ú<module>r/      sG   ðñ ã ß  å 9Ý Jà*×7Ñ7×HÑHÐ ð ×Ñ÷30ð 30ó ñ30r   