supervision/supervision
SkalskiP ce7e3a1de4 Refactor clip_boxes function and enhance detections processing
Refactored the `clip_boxes` function for clarity by renaming arguments from `boxes_xyxy` and `frame_resolution_wh` to `xyxy` and `resolution_wh`, respectively. These change makes the function arguments more intuitive and improves code readability.

The processing of detections in `supervision/annotators/core.py` has been updated to include clipping of detection boxes to the image bounds before processing. This prevents errors and ensures detections beyond the image dimensions are handled correctly. Adjustments were also made in the test cases and in `polygon_zone.py` to match the updated `clip_boxes` function.
2023-10-31 18:04:13 +01:00
..
annotators Refactor clip_boxes function and enhance detections processing 2023-10-31 18:04:13 +01:00
assets fix(pre_commit): 🎨 auto format pre-commit hooks 2023-10-24 14:15:07 +00:00
classification Reorganize documentation structure and reformat code 2023-10-09 13:41:56 +02:00
dataset Reorganize documentation structure and reformat code 2023-10-09 13:41:56 +02:00
detection Refactor clip_boxes function and enhance detections processing 2023-10-31 18:04:13 +01:00
draw fix(pre_commit): 🎨 auto format pre-commit hooks 2023-10-18 21:11:27 +00:00
geometry fix(pre_commit): 🎨 auto format pre-commit hooks 2023-09-28 10:14:38 +00:00
metrics Merge Develop 2023-08-15 17:58:31 +05:30
tracker Revert "#418 Make sv.ByteTrack work with segmentation model " 2023-10-12 01:08:35 +02:00
utils Reorganize documentation structure and reformat code 2023-10-09 13:41:56 +02:00
__init__.py fix(pre_commit): 🎨 auto format pre-commit hooks 2023-10-18 20:33:06 +00:00