Ë
    »dæj˜  ã                   óv   — d Z ddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 dZej                   G d„ d	«      «       Zy)
z%Gesture Recognizer Result data class.é    N)Úcategory)Úlandmark)Údoc_controls)Úgesture_recognizer_result_céÿÿÿÿc                   ó  — e Zd ZU dZeeej                        ed<   eeej                        ed<   eeej                        ed<   eeej                        ed<   eej                  dej                  dd fd„«       «       Zy	)
ÚGestureRecognizerResulta-  The gesture recognition result from GestureRecognizer.

  Each vector element represents a single hand detected in the image.

  Attributes:
    gestures: Recognized hand gestures of detected hands. Note that the index of
      the gesture is always -1, because the raw indices from multiple gesture
      classifiers cannot consolidate to a meaningful index.
    handedness: Classification of handedness.
    hand_landmarks: Detected hand landmarks in normalized image coordinates.
    hand_world_landmarks: Detected hand landmarks in world coordinates.
  ÚgesturesÚ
handednessÚhand_landmarksÚhand_world_landmarksÚc_resultÚreturnc                 ó¾  — g }t        |j                  «      D ]I  }|j                  |   }t        j                  |«      }|D ]  }t
        |_        Œ |j                  |«       ŒK t        |j                  «      D �cg c]$  }t        j                  |j                  |   «      ‘Œ& }}t        |j                  «      D ��cg c]i  }t        |j                  |   j                  «      D �cg c];  }t        j                  j                  |j                  |   j                   |   «      ‘Œ= c}‘Œk }	}}t        |j"                  «      D ��cg c]i  }t        |j$                  |   j                  «      D �cg c];  }t        j&                  j                  |j$                  |   j                   |   «      ‘Œ= c}‘Œk }
}} | |||	|
¬«      S c c}w c c}w c c}}w c c}w c c}}w )zHCreates a `GestureRecognizerResult` object from the given ctypes struct.)r
   r   r   r   )ÚrangeÚgestures_countr
   Úcategory_moduleÚ%create_list_of_categories_from_ctypesÚ_GESTURE_DEFAULT_INDEXÚindexÚappendÚhandedness_countr   Úhand_landmarks_countr   Úlandmarks_countÚlandmark_moduleÚNormalizedLandmarkÚfrom_ctypesÚ	landmarksÚhand_world_landmarks_countr   ÚLandmark)Úclsr   r
   ÚiÚgesture_categories_cÚgesture_categoriesr   r   Újr   r   s              úz/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/mediapipe/tasks/python/vision/gesture_recognizer_result.pyr   z#GestureRecognizerResult.from_ctypes.   së  € ð €HÜ�8×*Ñ*Ó+ò 	*ˆØ%×.Ñ.¨qÑ1Ðä
×
?Ñ
?Ø"óð ð
 )ò 0ˆ(Ü/ˆ�ð0à‡o�oÐ(Õ)ð	*ô �x×0Ñ0Ó1ö	ð ô 	×=Ñ=Ø×Ñ Ñ"õ	
ð€Jð ô �x×4Ñ4Ó5÷ð ô ˜8×2Ñ2°1Ñ5×EÑEÓFö		
ð ô ×.Ñ.×:Ñ:Ø×'Ñ'¨Ñ*×4Ñ4°QÑ7õô	
ð€Nñ ô" �x×:Ñ:Ó;÷ð ô ˜8×8Ñ8¸Ñ;×KÑKÓLö		
ð ô ×$Ñ$×0Ñ0Ø×-Ñ-¨aÑ0×:Ñ:¸1Ñ=õô	
ðÐñ ñ ØØØ%Ø1ô	ð ùò7ùò	
ùóùò	
ùós8   Á;)GÂ>)GÃ'A G	Ä'GÅ)GÅ0A GÆ0GÇ	GÇGN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úlistr   ÚCategoryÚ__annotations__r   r   r    Úclassmethodr   Údo_not_generate_docsr   ÚGestureRecognizerResultCr   © ó    r&   r	   r	      s—   … ñð ��o×.Ñ.Ñ/Ñ0Ó0Ø�4˜×0Ñ0Ñ1Ñ2Ó2Ø�t˜O×>Ñ>Ñ?Ñ@Ó@Ø˜T /×":Ñ":Ñ;Ñ<Ó<àØ×$Ñ$ð0Ø0×IÑIð0à ò0ó %ó ñ0r2   r	   )r*   ÚdataclassesÚ,mediapipe.tasks.python.components.containersr   r   r   r   Ú1mediapipe.tasks.python.core.optional_dependenciesr   Úmediapipe.tasks.python.visionr   r   Ú	dataclassr	   r1   r2   r&   ú<module>r8      sA   ðñ ,ã å TÝ TÝ JÝ EàÐ ð ×Ñ÷Eð Eó ñEr2   