Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Udayraj123
GitHub Repository: Udayraj123/OMRChecker
Path: blob/master/src/defaults/config.py
214 views
1
from dotmap import DotMap
2
3
CONFIG_DEFAULTS = DotMap(
4
{
5
"dimensions": {
6
"display_height": 2480,
7
"display_width": 1640,
8
"processing_height": 820,
9
"processing_width": 666,
10
},
11
"threshold_params": {
12
"GAMMA_LOW": 0.7,
13
"MIN_GAP": 30,
14
"MIN_JUMP": 25,
15
"CONFIDENT_SURPLUS": 5,
16
"JUMP_DELTA": 30,
17
"PAGE_TYPE_FOR_THRESHOLD": "white",
18
},
19
"alignment_params": {
20
# Note: 'auto_align' enables automatic template alignment, use if the scans show slight misalignments.
21
"auto_align": False,
22
"match_col": 5,
23
"max_steps": 20,
24
"stride": 1,
25
"thickness": 3,
26
},
27
"outputs": {
28
"show_image_level": 0,
29
"save_image_level": 0,
30
"save_detections": True,
31
"filter_out_multimarked_files": False,
32
},
33
},
34
_dynamic=False,
35
)
36
37