§
    Wp«f-  ã                   óº   — d Z ddlZddlmZ ddlmZ ddlmZ ej        Z	ej
        Zej         G d„ d¦  «        ¦   «         Zej         G d„ d	¦  «        ¦   «         Z
dS )
zLandmark data class.é    N)ÚOptional)Úlandmark_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<   dZee         ed<   ej        defd	„¦   «         Zeej        d
edd fd„¦   «         ¦   «         ZdS )ÚLandmarkap  A landmark that can have 1 to 3 dimensions.

  Use x for 1D points, (x, y) for 2D points and (x, y, z) for 3D points.

  Attributes:
    x: The x coordinate.
    y: The y coordinate.
    z: The z coordinate.
    visibility: Landmark visibility. Should stay unset if not supported. Float
      score of whether landmark is visible or occluded by other objects.
      Landmark considered as invisible also if it is not present on the screen
      (out of scene bounds). Depending on the model, visibility value is either
      a sigmoid or an argument of sigmoid.
    presence: Landmark presence. Should stay unset if not supported. Float score
      of whether landmark is present on the scene (located within scene bounds).
      Depending on the model, presence value is either a result of sigmoid or an
      argument of sigmoid function to get landmark presence probability.
  NÚxÚyÚzÚ
visibilityÚpresenceÚreturnc                 ó\   — t          | j        | j        | j        | j        | j        ¬¦  «        S )z%Generates a Landmark protobuf object.©r   r	   r
   r   r   )Ú_LandmarkProtor   r	   r
   r   r   ©Úselfs    úu/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/mediapipe/tasks/python/components/containers/landmark.pyÚto_pb2zLandmark.to_pb25   s4   € õ Ø
Œ&Ø
Œ&Ø
Œ&Ø”?Ø”ð ñ  ô  ð  ó    Úpb2_objc                 ó\   — t          |j        |j        |j        |j        |j        ¬¦  «        S )z;Creates a `Landmark` object from the given protobuf object.r   )r   r   r	   r
   r   r   ©Úclsr   s     r   Úcreate_from_pb2zLandmark.create_from_pb2?   s6   € õ Ø
Œ)Ø
Œ)Ø
Œ)ØÔ%ØÔ!ð#ñ #ô #ð #r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚfloatÚ__annotations__r	   r
   r   r   r   Údo_not_generate_docsr   r   Úclassmethodr   © r   r   r   r      së   € € € € € € ðð ð& €!€Xˆe„_ÐÐÑØ€!€Xˆe„_ÐÐÑØ€!€Xˆe„_ÐÐÑØ $€*ˆhuŒoÐ$Ð$Ñ$Ø"€(ˆHUŒOÐ"Ð"Ñ"àÔ$ð nð  ð  ð  ñ %Ô$ð ð ØÔ$ð# Nð #°zð #ð #ð #ñ %Ô$ñ „;ð#ð #ð #r   r   c                   óö   — 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<   dZee         ed<   ej        defd	„¦   «         Zeej        d
edd fd„¦   «         ¦   «         ZdS )ÚNormalizedLandmarkau  A normalized version of above Landmark proto.

  All coordinates should be within [0, 1].

  Attributes:
    x: The normalized x coordinate.
    y: The normalized y coordinate.
    z: The normalized z coordinate.
    visibility: Landmark visibility. Should stay unset if not supported. Float
      score of whether landmark is visible or occluded by other objects.
      Landmark considered as invisible also if it is not present on the screen
      (out of scene bounds). Depending on the model, visibility value is either
      a sigmoid or an argument of sigmoid.
    presence: Landmark presence. Should stay unset if not supported. Float score
      of whether landmark is present on the scene (located within scene bounds).
      Depending on the model, presence value is either a result of sigmoid or an
      argument of sigmoid function to get landmark presence probability.
  Nr   r	   r
   r   r   r   c                 ó\   — t          | j        | j        | j        | j        | j        ¬¦  «        S )z/Generates a NormalizedLandmark protobuf object.r   )Ú_NormalizedLandmarkProtor   r	   r
   r   r   r   s    r   r   zNormalizedLandmark.to_pb2f   s4   € õ $Ø
Œ&Ø
Œ&Ø
Œ&Ø”?Ø”ð ñ  ô  ð  r   r   c                 ó\   — t          |j        |j        |j        |j        |j        ¬¦  «        S )zECreates a `NormalizedLandmark` object from the given protobuf object.r   )r%   r   r	   r
   r   r   r   s     r   r   z"NormalizedLandmark.create_from_pb2p   s6   € õ
 Ø
Œ)Ø
Œ)Ø
Œ)ØÔ%ØÔ!ð#ñ #ô #ð #r   )r   r   r   r   r   r   r   r    r	   r
   r   r   r   r!   r'   r   r"   r   r#   r   r   r%   r%   K   sî   € € € € € € ðð ð& €!€Xˆe„_ÐÐÑØ€!€Xˆe„_ÐÐÑØ€!€Xˆe„_ÐÐÑØ $€*ˆhuŒoÐ$Ð$Ñ$Ø"€(ˆHUŒOÐ"Ð"Ñ"àÔ$ð Ð.ð  ð  ð  ñ %Ô$ð ð ØÔ$ð#Ø,ð#Ø1Eð#ð #ð #ñ %Ô$ñ „;ð#ð #ð #r   r%   )r   ÚdataclassesÚtypingr   Úmediapipe.framework.formatsr   Ú1mediapipe.tasks.python.core.optional_dependenciesr   r   r   r%   r'   Ú	dataclassr#   r   r   ú<module>r.      sÛ   ðð Ð à Ð Ð Ð Ø Ð Ð Ð Ð Ð à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø JÐ JÐ JÐ JÐ JÐ JàÔ&€Ø'Ô:Ð ð Ôð-#ð -#ð -#ð -#ð -#ñ -#ô -#ñ Ôð-#ð` Ôð.#ð .#ð .#ð .#ð .#ñ .#ô .#ñ Ôð.#ð .#ð .#r   