Skip to content

Oriented Bounding Boxes - #441

Draft
kozlov721 wants to merge 49 commits into
mainfrom
feat/obb
Draft

Oriented Bounding Boxes#441
kozlov721 wants to merge 49 commits into
mainfrom
feat/obb

Conversation

@kozlov721

Copy link
Copy Markdown
Collaborator

Purpose

Add native oriented bounding box support to Luxonis Data Format handling. Bounding boxes now consistently carry an
angle, defaulting to 0, so axis-aligned boxes are represented as OBBs without a separate legacy path.

Specification

  • Bounding box annotations now include an optional angle field and loader outputs use [class, x, y, w, h, angle]
  • Augmentations, visualization, LDF equivalence, and export validation were updated to handle OBB rows
  • Albumentations uses axis-aligned boxes for filtering plus hidden corner keypoints to preserve OBB geometry through spatial transforms.

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

None / not applicable

AI Usage

Assisted-by: OpenAI Codex:GPT-5

Submitted code was reviewed by a human: Yes

The author is taking the responsibility for the contribution: YES

@kozlov721
kozlov721 requested a review from a team as a code owner July 8, 2026 03:33
@kozlov721
kozlov721 requested review from conorsim, klemen1999 and tersekmatija and removed request for a team July 8, 2026 03:33
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@kozlov721, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: de43f832-08e7-4350-b42a-0da9f1d04e8e

📥 Commits

Reviewing files that changed from the base of the PR and between b377f0a and 32163f9.

📒 Files selected for processing (25)
  • luxonis_ml/data/augmentations/albumentations_engine.py
  • luxonis_ml/data/augmentations/custom/letterbox_resize.py
  • luxonis_ml/data/augmentations/custom/mixup.py
  • luxonis_ml/data/augmentations/custom/mosaic.py
  • luxonis_ml/data/augmentations/custom/symmetric_keypoints_flip.py
  • luxonis_ml/data/augmentations/utils.py
  • luxonis_ml/data/datasets/annotation.py
  • luxonis_ml/data/datasets/luxonis_dataset.py
  • luxonis_ml/data/exporters/exporter_utils.py
  • luxonis_ml/data/loaders/__init__.py
  • luxonis_ml/data/loaders/luxonis_loader.py
  • luxonis_ml/data/utils/ldf_equivalence.py
  • luxonis_ml/data/utils/visualizations.py
  • tests/conftest.py
  • tests/test_data/test_annotations.py
  • tests/test_data/test_augmentations/test_batched.py
  • tests/test_data/test_augmentations/test_empty.py
  • tests/test_data/test_augmentations/test_mixup.py
  • tests/test_data/test_augmentations/test_nested_transforms.py
  • tests/test_data/test_augmentations/test_special.py
  • tests/test_data/test_augmentations/test_symmetric_keypoints_flip.py
  • tests/test_data/test_augmentations/test_utils.py
  • tests/test_data/test_export.py
  • tests/test_data/test_loader.py
  • tests/test_data/test_utils/test_visualizations.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/obb

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added enhancement New feature or request tests Adding or changing tests labels Jul 8, 2026
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.26%. Comparing base (b377f0a) to head (32163f9).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
luxonis_ml/data/utils/visualizations.py 62.50% 18 Missing ⚠️
luxonis_ml/data/datasets/annotation.py 87.87% 4 Missing ⚠️
luxonis_ml/data/augmentations/utils.py 96.29% 2 Missing ⚠️
...a/augmentations/custom/symmetric_keypoints_flip.py 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #441      +/-   ##
==========================================
- Coverage   93.33%   93.26%   -0.08%     
==========================================
  Files         156      157       +1     
  Lines       11870    12099     +229     
==========================================
+ Hits        11079    11284     +205     
- Misses        791      815      +24     
Flag Coverage Δ
pytest-ubuntu-latest 93.26% <90.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Base automatically changed from docs/google to main July 13, 2026 07:19
@kozlov721
kozlov721 marked this pull request as draft August 6, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tests Adding or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant