Skip to content

Commit c8b966b

Browse files
committed
align new utils with naming conventions
1 parent 098d5e3 commit c8b966b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

supervision/utils/image.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ def crop_image(
6060
cropped_image.size
6161
# (400, 400)
6262
```
63-
64-
![crop_image](https://media.roboflow.com/supervision-docs/crop-image.png){ align=center width="800" }
65-
""" # noqa E501 // docs
63+
"""
6664
if isinstance(xyxy, (list, tuple)):
6765
xyxy = np.array(xyxy)
6866
xyxy = np.round(xyxy).astype(int)
@@ -451,7 +449,7 @@ def grayscale_image(image: ImageType) -> ImageType:
451449
import supervision as sv
452450
453451
image = Image.open("source.png")
454-
grayscale_image = sv.grayscale_image(scene=image)
452+
grayscale_image = sv.grayscale_image(image=image)
455453
grayscale_image.save("target.png")
456454
```
457455
"""

0 commit comments

Comments
 (0)