HBB2OBB: Horizontal to Oriented Bounding Box Conversion and Evaluation Tool

HBB2OBB converts horizontal (axis-aligned) bounding boxes (HBBs) into oriented (rotated) bounding boxes (OBBs) by using existing HBB annotations as prompts for segmentation models from the SAM (Segment Anything Model) family. It targets object detection tasks where objects appear at arbitrary orientations, such as aerial imagery, satellite data, and traffic monitoring, producing oriented boxes that tightly encapsulate non-upright objects without any re-annotation. Beyond conversion, it provides horizontal box detection, evaluation, hyperparameter optimization, an interactive annotation viewer, and annotation format-conversion tools, exposed through both a command-line interface and a Python API. Why HBB2OBB 🎯 Accurate OBBs from HBBs : prompts SAM-family segmentation models with existing horizontal boxes to fit tight oriented boxes around non-upright objects, with no re-annotation required. 🚗 No HBBs? Detect them : the hbb2obb-detect command runs an Ultralytics detector over the images and writes the horizontal boxes the conversion consumes, confidence column included. 🧩 Model ensemble : combines masks from multiple SAM variants through majority voting for more robust, accurate results. 🛡️ Spatially constrained and safe : region-specific masking and contour refinement keep segmentation inside the object, a mask split by an occluder is fitted back together, and a fallback retains the original HBB when no valid mask is found. 🔎 Confidence-scored output : every OBB receives a heuristic quality score in [0, 1] that flags silent fallbacks and low-confidence conversions, so you know which boxes to trust; the scores go in the label files or in a side-car directory that keeps them strictly standard, and the detector's own confidence can be carried through instead of, or on top of, that score. 📐 Flexible scaling : positive or negative scale factors, optionally different for the short and long sides, recover cropped object parts or tighten overly conservative annotations.

Link
https://zenodo.org/records/22714493
Found by
Zenodo
Authors
Fonod, Robert
Categories
evaluation
Published
2026-09-11
Last seen by the radar
2026-09-11
Downloads
155
Views
948
Radar score
45.47 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.22714493
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo