Spaces:
Running
Running
Commit
·
8e75d7b
1
Parent(s):
856f31e
- filters.py +7 -7
filters.py
CHANGED
@@ -24,14 +24,14 @@ def dot_effect(image, dot_size: int = 10, dot_spacing: int = 2, invert: bool = F
|
|
24 |
"""
|
25 |
## Convert your image into a dotted pattern.
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
"""
|
36 |
# Convert to grayscale if image is color
|
37 |
if len(image.shape) == 3:
|
|
|
24 |
"""
|
25 |
## Convert your image into a dotted pattern.
|
26 |
|
27 |
+
**Args:**
|
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:**
|
34 |
+
* `numpy.ndarray`: Dotted image
|
35 |
"""
|
36 |
# Convert to grayscale if image is color
|
37 |
if len(image.shape) == 3:
|