satellit_sam.plot
satellit_sam.plot
Auto-generated from
satellit_sam/src/satellit_sam/plot.pybysatellit_sam/scripts/generate_api_docs.py.
Visualization helpers for SAM detection and mask overlays.
Functions
from_sam
def from_sam(sam_result: dict) -> sv.Detections:
Convert SAM post-processing output to ``supervision`` detections.
Arguments
sam_result: Dictionary returned by SAM post-processing utilities.
Returns
Structured detections with masks, boxes, and confidence scores.
annotate
def annotate(
image: Image, detections: sv.Detections, label: Optional[str] = None
) -> Image:
Draw masks, boxes, and optional labels on top of an image.
Arguments
image: Source image. detections: Detection outputs to render. label: Optional class/prompt prefix used in rendered text labels.
Returns
Annotated image copy.
Classes
No public classes.