align new utils with naming conventions
This commit is contained in:
1 parent
098d5e3eb1
commit
c8b966be1a
1 file changed
+2
-4
@@ -60,9 +60,7 @@ def crop_image(
|
||||
cropped_image.size
|
||||
# (400, 400)
|
||||
```
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
"""
|
||||
if isinstance(xyxy, (list, tuple)):
|
||||
xyxy = np.array(xyxy)
|
||||
xyxy = np.round(xyxy).astype(int)
|
||||
@@ -451,7 +449,7 @@ def grayscale_image(image: ImageType) -> ImageType:
|
||||
import supervision as sv
|
||||
|
||||
image = Image.open("source.png")
|
||||
grayscale_image = sv.grayscale_image(scene=image)
|
||||
grayscale_image = sv.grayscale_image(image=image)
|
||||
grayscale_image.save("target.png")
|
||||
```
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user