Spaces:
Running
Running
Sagar Bharadwaj
commited on
Commit
·
d2547a9
1
Parent(s):
0a92df1
Updated default config
Browse files- colorbynumber/config.py +6 -6
colorbynumber/config.py
CHANGED
@@ -3,7 +3,7 @@ default_config = {
|
|
3 |
"denoise": True,
|
4 |
|
5 |
# Higher values will result in more aggressive denoising.
|
6 |
-
"denoise_h":
|
7 |
|
8 |
# Padding around the borders of the image.
|
9 |
"border_padding": 2,
|
@@ -15,7 +15,7 @@ default_config = {
|
|
15 |
|
16 |
# Color islands with area less than this threshold will be ignored.
|
17 |
# The value is a percentage of the total area of the image.
|
18 |
-
"area_perc_threshold": 0.
|
19 |
|
20 |
# If True, all shapes with perimeter to area ratio of less than
|
21 |
# arc_length_area_ratio_threshold will be ignored.
|
@@ -23,10 +23,10 @@ default_config = {
|
|
23 |
"arc_length_area_ratio_threshold": 1,
|
24 |
|
25 |
# Color of the border around around color islands.
|
26 |
-
"border_color": (
|
27 |
|
28 |
# Font for the numbers shown in color islands.
|
29 |
-
"font_size": 0.
|
30 |
-
"font_color": (
|
31 |
-
"font_thickness":
|
32 |
}
|
|
|
3 |
"denoise": True,
|
4 |
|
5 |
# Higher values will result in more aggressive denoising.
|
6 |
+
"denoise_h": 200,
|
7 |
|
8 |
# Padding around the borders of the image.
|
9 |
"border_padding": 2,
|
|
|
15 |
|
16 |
# Color islands with area less than this threshold will be ignored.
|
17 |
# The value is a percentage of the total area of the image.
|
18 |
+
"area_perc_threshold": 0.02,
|
19 |
|
20 |
# If True, all shapes with perimeter to area ratio of less than
|
21 |
# arc_length_area_ratio_threshold will be ignored.
|
|
|
23 |
"arc_length_area_ratio_threshold": 1,
|
24 |
|
25 |
# Color of the border around around color islands.
|
26 |
+
"border_color": (181, 181, 181),
|
27 |
|
28 |
# Font for the numbers shown in color islands.
|
29 |
+
"font_size": 0.3,
|
30 |
+
"font_color": (140, 140, 140),
|
31 |
+
"font_thickness": 1,
|
32 |
}
|