Skip to content

HBB2OBB

HBB2OBB converts horizontal (axis-aligned) bounding boxes (HBBs) into oriented (rotated) bounding boxes (OBBs). It prompts a segmentation model from the SAM family with each HBB you already have, and fits a minimum-area rotated box to the mask that comes back. No box is redrawn by hand.

Around the conversion it covers the rest of the job: detecting HBBs when you have none, scoring the result against ground truth and breaking that score down, tuning the settings on your own data, viewing the boxes, and writing them in the format the next tool expects.

HBB to OBB conversion example

What it does

  • Convert

    One SAM model or a majority-vote ensemble of several. The mask is clipped to the prompt and refined before the box is fitted, and a mask an occluder split in two is fitted as one object.

    Convert HBBs to OBBs · How the conversion works

  • Detect

    No HBBs yet? Run any Ultralytics detector over the images. The default is the Geo-trax vehicle detector for high-altitude drone imagery.

    Detect HBBs

  • Triage

    Every OBB carries a confidence in [0, 1]. A box that fell back to its HBB scores 0.0 and is counted at the end of the run.

    Confidence scores

  • Evaluate and analyze

    Mean and median IoU, the IoU ladder and the orientation error, then the same evaluation cut by orientation, size, frame edge, difficulty and class.

    Evaluate · Analyze · Metrics

  • Tune