[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #540 bug blur annotator #555

Merged
merged 4 commits into from
Oct 31, 2023

Commits on Oct 30, 2023

  1. Add np.maximum when retrieving detections coordinates within the Blur…

    …Annotator.annotate() method.
    fdloopes committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    7f69f6a View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Add space after comma, following pre-commit pattern

    fdloopes committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    8b88f1f View commit details
    Browse the repository at this point in the history
  2. 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.
    SkalskiP committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    ce7e3a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e6a5c51 View commit details
    Browse the repository at this point in the history