We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098d5e3 commit c8b966bCopy full SHA for c8b966b
supervision/utils/image.py
@@ -60,9 +60,7 @@ def crop_image(
60
cropped_image.size
61
# (400, 400)
62
```
63
-
64
- { align=center width="800" }
65
- """ # noqa E501 // docs
+ """
66
if isinstance(xyxy, (list, tuple)):
67
xyxy = np.array(xyxy)
68
xyxy = np.round(xyxy).astype(int)
@@ -451,7 +449,7 @@ def grayscale_image(image: ImageType) -> ImageType:
451
449
import supervision as sv
452
450
453
image = Image.open("source.png")
454
- grayscale_image = sv.grayscale_image(scene=image)
+ grayscale_image = sv.grayscale_image(image=image)
455
grayscale_image.save("target.png")
456
457
"""
0 commit comments