Ë
    »dæj¼  ã                   ój   — 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                   G d„ d«      «       Zy)zKeypoint data class.é    N)ÚAnyÚOptional)Ú
keypoint_c)Ú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ej                  dej                   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Úc_objÚreturnc                 óª   — t        |j                  |j                  |j                  r|j                  j	                  d«      nd|j
                  ¬«      S )zBCreates a `NormalizedKeypoint` object from a `NormalizedKeypointC.zutf-8N)r	   r
   r   r   )r   r	   r
   r   Údecoder   )Úclsr   s     úx/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/mediapipe/tasks/python/components/containers/keypoint.pyÚfrom_ctypeszNormalizedKeypoint.from_ctypes+   s@   € ô Ø
�'‰'Ø
�'‰'Ø-2¯[ª[ˆe�k‰k× Ñ  Ô)¸dØ�k‰kô	ð ó    Úotherc                 óø   — t        |t        «      sy| j                  |j                  k(  xrO | j                  |j                  k(  xr4 | j                  |j                  k(  xr | j
                  |j
                  k(  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	   r
   r   r   )Úselfr   s     r   Ú__eq__zNormalizedKeypoint.__eq__8   sh   € ô �eÔ/Ô0Øà�‰�%—'‘'Ñò 	&Ø�F‰F�e—g‘gÑò	&à�J‰J˜%Ÿ+™+Ñ%ò	&ð �J‰J˜%Ÿ+™+Ñ%ð	r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   ÚfloatÚ__annotations__r
   r   Ústrr   Úclassmethodr   Údo_not_generate_docsÚkeypoint_c_libÚNormalizedKeypointCr   r   Úboolr   © r   r   r   r      sŠ   … ñð €!€Xˆe�_ÓØ€!€Xˆe�_ÓØ€%ˆ�#‰ÓØ€%ˆ�%‰ÓàØ×$Ñ$ð	Ø ×4Ñ4ð	àò	ó %ó ð	ð˜#ð  $ô r   r   )r   ÚdataclassesÚtypingr   r   Ú,mediapipe.tasks.python.components.containersr   r#   Ú1mediapipe.tasks.python.core.optional_dependenciesr   Ú	dataclassr   r&   r   r   ú<module>r,      s5   ðñ ã ß  å UÝ Jð ×Ñ÷0ð 0ó ñ0r   