Skip to content

Add scale_boxes function to detection utils - #651

Merged
SkalskiP merged 5 commits into
developfrom
feature/scale_boxes_utility
Dec 6, 2023
Merged

SkalskiP merged 5 commits into
developfrom
feature/scale_boxes_utility

Conversation

@SkalskiP

@SkalskiP SkalskiP commented Dec 6, 2023

Copy link
Copy Markdown
Collaborator

Description

Added a new function scale_boxes to the detection utilities to scale the dimensions of bounding boxes. This function accepts bounding boxes and a scaling factor as input and returns the scaled bounding boxes. It can enlarge or shrink the input bounding boxes based on the value of the passed factor. The function was also documented in the utils.md file and necessary tests were added to assure its correctness.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Docs

  • Docs updated? What were the changes:

SkalskiP and others added 5 commits December 6, 2023 12:16
Added a new function scale_boxes to the detection utilities in order to scale the dimensions of bounding boxes. This function accepts bounding boxes and a scaling factor as input and returns the scaled bounding boxes. It can enlarge or shrink the input bounding boxes based on the value of the passed factor. The function was also documented in the utils.md file and necessary tests were added to assure its correctness.
…s`, to the detection utilities in the `supervision` package.
@SkalskiP SkalskiP self-assigned this Dec 6, 2023
@SkalskiP SkalskiP added enhancement New feature or request version: 0.17.0 Feature to be added in `0.17.0` release labels Dec 6, 2023
@SkalskiP
SkalskiP merged commit a8c1431 into develop Dec 6, 2023
@SkalskiP
SkalskiP deleted the feature/scale_boxes_utility branch January 2, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request version: 0.17.0 Feature to be added in `0.17.0` release

Projects

Status: Current Release: Done

Development

Successfully merging this pull request may close these issues.

1 participant