§
    à©ºj  ã                  ó`   — d Z ddlmZ ddlmZ ddlmZ ej        Zej	        Z	ej
        Zg d¢ZdS )u²  Matching kernels â€” deciding what pairs with what.

The layer underneath :mod:`hotcoco.metrics`: similarity between two sets, and the
assignment that turns similarity into pairs::

    from hotcoco import primitives

    sim = primitives.bbox_iou(detections, ground_truths, iscrowd)
    rows, cols = primitives.lsap(sim, maximize=True)

Nothing here scores. Feed the pairs to :mod:`hotcoco.metrics` for that.

The IoU kernels are the same functions ``hotcoco.mask`` exposes â€” re-exported
under their kernel names. ``hotcoco.mask`` mirrors ``pycocotools.mask`` and is a
permanent compatibility surface; this module is where they live as primitives.
Both call one implementation, so they cannot disagree.

Greedy matching (COCO's rank-ordered assignment) has no binding yet. Its Rust
signature carries pycocotools' crowd and ignore semantics, and exposing that
faithfully needs a Python-facing shape designed on purpose rather than
transliterated â€” it lands in a 1.x minor. ``COCOeval.evaluate()`` uses it today.

Stability
---------

Provisional through the 1.x series, like :mod:`hotcoco.metrics`. The IoU kernels
are the exception: those are frozen, since ``pycocotools`` parity depends on them.
é    )Úannotationsé   )Úmask)Ú
primitives)Úbbox_iouÚlsapÚmask_iouN)Ú__doc__Ú
__future__r   Úhotcocor   Ú_maskr   Ú_primitivesr   r   Úiour	   Ú__all__© ó    úb/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/hotcoco/primitives.pyú<module>r      sn   ððð ð: #Ð "Ð "Ð "Ð "Ð "à "Ð "Ð "Ð "Ð "Ð "Ø .Ð .Ð .Ð .Ð .Ð .àÔ€ð Œ>€àŒ9€à
*Ð
*Ð
*€€€r   