satellit_sam.workflows.label.by_bounding_box
satellit_sam.workflows.label.by_bounding_box
Auto-generated from
satellit_sam/src/satellit_sam/workflows/label/by_bounding_box.pybysatellit_sam/scripts/generate_api_docs.py.
Create label overlays from bounding-box prompts.
Functions
make_labels_by_bounding_box
def make_labels_by_bounding_box(
image_path: Path,
tile_size: int,
overlap: int,
output_path: Path,
bbox_prompts: list[tuple[float, float, float, float]],
weak_label_bboxes_by_tile: dict[str, list[tuple[float, float, float, float]]]
| None = None,
) -> None:
Generate tile-wise annotated labels from bbox prompts.
Arguments
image_path: Path to the input image. tile_size: Tile edge length in pixels. overlap: Tile overlap in pixels. output_path: Directory where outputs are written. bbox_prompts: Global image-space bbox prompts (x1,y1,x2,y2). weak_label_bboxes_by_tile: Optional tile-local bboxes keyed by tile id.
Classes
No public classes.