Ë
    »dæjõ  ã                   óf   — d Z ddlZddlmZ ddlmZ ddlmZ ej                   G d„ d«      «       Z
y)zBounding box data class.é    N)ÚAny)Úrect_c)Údoc_controlsc                   ó–   — e Zd ZU dZeed<   eed<   eed<   eed<   eej                  de	j                  dd fd„«       «       Zd	edefd
„Zy)ÚBoundingBoxa(  An integer bounding box, axis aligned.

  Attributes:
    origin_x: The X coordinate of the top-left corner, in pixels.
    origin_y: The Y coordinate of the top-left corner, in pixels.
    width: The width of the bounding box, in pixels.
    height: The height of the bounding box, in pixels.
  Úorigin_xÚorigin_yÚwidthÚheightÚc_objÚreturnc                 ó¤   — t        |j                  |j                  |j                  |j                  z
  |j                  |j                  z
  ¬«      S )z:Creates a `BoundingBox` object from a ctypes RectC struct.)r   r	   r
   r   )r   ÚleftÚtopÚrightÚbottom)Úclsr   s     ú|/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/mediapipe/tasks/python/components/containers/bounding_box.pyÚfrom_ctypeszBoundingBox.from_ctypes'   s?   € ô Ø—‘Ø—‘Ø�k‰k˜EŸJ™JÑ&Ø�|‰|˜eŸi™iÑ'ô	ð ó    Ú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BoundingBox.__eq__2   sg   € ô �eœ[Ô)Øà�‰˜Ÿ™Ñ'ò 	(Ø�M‰M˜UŸ^™^Ñ+ò	(à�J‰J˜%Ÿ+™+Ñ%ò	(ð �K‰K˜5Ÿ<™<Ñ'ð	r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚintÚ__annotations__Úclassmethodr   Údo_not_generate_docsÚ
rect_c_libÚRectCr   r   Úboolr   © r   r   r   r      sd   … ñð ƒ-Øƒ-Ø	ƒ*Ø
ƒ+àØ×$Ñ$ð˜j×.Ñ.ð °=ò ó %ó ðð˜#ð  $ô r   r   )r   ÚdataclassesÚtypingr   Ú,mediapipe.tasks.python.components.containersr   r$   Ú1mediapipe.tasks.python.core.optional_dependenciesr   Ú	dataclassr   r'   r   r   ú<module>r-      s5   ðñ ã Ý å MÝ Jð ×Ñ÷*ð *ó ñ*r   