fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
098d5e3eb1
commit
72621dce32
1 file changed
+4
-9
@@ -60,7 +60,7 @@ def crop_image(
|
||||
cropped_image.size
|
||||
# (400, 400)
|
||||
```
|
||||
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
if isinstance(xyxy, (list, tuple)):
|
||||
@@ -171,7 +171,7 @@ def resize_image(
|
||||
resized_image.size
|
||||
# (1000, 562)
|
||||
```
|
||||
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
if keep_aspect_ratio:
|
||||
@@ -239,7 +239,7 @@ def letterbox_image(
|
||||
letterboxed_image.size
|
||||
# (1000, 1000)
|
||||
```
|
||||
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
assert isinstance(image, np.ndarray)
|
||||
@@ -412,12 +412,7 @@ def tint_image(
|
||||
|
||||
overlay = np.full_like(image, fill_value=color.as_bgr(), dtype=image.dtype)
|
||||
cv2.addWeighted(
|
||||
src1=overlay,
|
||||
alpha=opacity,
|
||||
src2=image,
|
||||
beta=1 - opacity,
|
||||
gamma=0,
|
||||
dst=image
|
||||
src1=overlay, alpha=opacity, src2=image, beta=1 - opacity, gamma=0, dst=image
|
||||
)
|
||||
return image
|
||||
|
||||
|
||||
Reference in new issue
Block a user