fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
parent
3fcbef9482
commit
dce96d462e
|
|
@ -169,7 +169,7 @@ def resize_image(
|
|||
resized_image.size
|
||||
# (1000, 562)
|
||||
```
|
||||
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
if keep_aspect_ratio:
|
||||
|
|
@ -237,7 +237,7 @@ def letterbox_image(
|
|||
letterboxed_image.size
|
||||
# (1000, 1000)
|
||||
```
|
||||
|
||||
|
||||
{ align=center width="800" }
|
||||
""" # noqa E501 // docs
|
||||
assert isinstance(image, np.ndarray)
|
||||
|
|
@ -410,12 +410,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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue