-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
50 lines (47 loc) · 1.64 KB
/
config.py
File metadata and controls
50 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Copyright (c) 2022 Vladislav Tsendrovskii
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
from vstarstack.tool.configuration import Configuration
_module_configuration = {
"threshold": (float, 0.05),
"margin": (int, 30),
"require_size": (bool, True),
"use_modules" : (list, ["disc", "brightness"]),
"disc": ("module", {
"mindelta": (int, 40),
"maxdelta": (int, 50),
"num_bins_curvature": (int, 50),
"num_bins_distance": (int, 10),
}),
"brightness": ("module", {
"min_diameter": (int, 20),
"max_diameter": (int, 40),
}),
"features" : ("module", {
"path" : (str, "features/"),
"num_splits" : (int, 4),
"max_feature_delta" : (int, 20),
"features_percent" : (int, 100),
"bright_spots": {
"blurSize" : (int, 21),
"k_thr" : (float, 1.15),
"minValue" : (float, 0.1),
"minPixel" : (int, 5),
"maxPixel" : (int, 20),
},
"orb" : {
"patchSize" : (int, 31),
},
}),
}
configuration = Configuration(_module_configuration)