Spaces:
Running
Running
Commit
·
856f31e
1
Parent(s):
54f4fee
- filters.py +5 -3
filters.py
CHANGED
@@ -22,13 +22,15 @@ def original(image):
|
|
22 |
})
|
23 |
def dot_effect(image, dot_size: int = 10, dot_spacing: int = 2, invert: bool = False):
|
24 |
"""
|
25 |
-
|
26 |
-
|
|
|
27 |
`image` (numpy.ndarray): Input image (BGR or grayscale)
|
28 |
`dot_size` (int): Size of each dot
|
29 |
`dot_spacing` (int): Spacing between dots
|
30 |
`invert` (bool): Invert the dots
|
31 |
-
|
|
|
32 |
numpy.ndarray: Dotted image
|
33 |
"""
|
34 |
# Convert to grayscale if image is color
|
|
|
22 |
})
|
23 |
def dot_effect(image, dot_size: int = 10, dot_spacing: int = 2, invert: bool = False):
|
24 |
"""
|
25 |
+
## Convert your image into a dotted pattern.
|
26 |
+
|
27 |
+
__Args:__\n
|
28 |
`image` (numpy.ndarray): Input image (BGR or grayscale)
|
29 |
`dot_size` (int): Size of each dot
|
30 |
`dot_spacing` (int): Spacing between dots
|
31 |
`invert` (bool): Invert the dots
|
32 |
+
|
33 |
+
__Returns:__\n
|
34 |
numpy.ndarray: Dotted image
|
35 |
"""
|
36 |
# Convert to grayscale if image is color
|