Skip to content

Commit

Permalink
Add CropAnnotator image example
Browse files Browse the repository at this point in the history
  • Loading branch information
LinasKo committed Dec 11, 2024
1 parent 0596334 commit d061a4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/detection/annotators.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@ Annotators accept detections and apply box or mask visualizations to the detecti
detections=detections
)
```
<div class="result" markdown>

![crop-annotator-example](https://media.roboflow.com/supervision-annotator-examples/
crop-annotator-example.png){ align=center width="800" }

</div>
-->

=== "Blur"
Expand Down
3 changes: 3 additions & 0 deletions supervision/annotators/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2533,6 +2533,9 @@ def annotate(
detections=detections
)
```
![crop-annotator-example](https://media.roboflow.com/
supervision-annotator-examples/crop-annotator-example.png)
"""
assert isinstance(scene, np.ndarray)
crops = [
Expand Down

0 comments on commit d061a4c

Please sign in to comment.