§
    Wp«ff	  ã                   ó†   — 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dS )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dS )Ú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    úu/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/mediapipe/tasks/python/components/containers/keypoint.pyÚto_pb2zNormalizedKeypoint.to_pb2-   s,   € õ "Ø
Œ&D”F¨4¬:¸T¼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   s0   € õ Ø
Œ)Ø
Œ)ØÔ$ØŒmð	ñ ô ð r   Úotherc                 ó¢   — t          |t          ¦  «        sdS |                      ¦   «                              |                     ¦   «         ¦  «        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Ô0ð ØˆUà;Š;‰=Œ=×Ò §¢¡¤Ñ/Ô/Ð/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 $ð 0ð 0ð 0ð 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/      s£   ðð Ð à Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  Ð  Ð  à 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø JÐ JÐ JÐ JÐ JÐ Jà*Ô7ÔHÐ ð Ôð30ð 30ð 30ð 30ð 30ñ 30ô 30ñ Ôð30ð 30ð 30r   