Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Udayraj123
GitHub Repository: Udayraj123/OMRChecker
Path: blob/master/src/schemas/config_schema.py
214 views
1
CONFIG_SCHEMA = {
2
"$schema": "https://json-schema.org/draft/2020-12/schema",
3
"$id": "https://github.com/Udayraj123/OMRChecker/tree/master/src/schemas/config-schema.json",
4
"title": "Config Schema",
5
"description": "OMRChecker config schema for custom tuning",
6
"type": "object",
7
"additionalProperties": False,
8
"properties": {
9
"dimensions": {
10
"type": "object",
11
"additionalProperties": False,
12
"properties": {
13
"display_height": {"type": "integer"},
14
"display_width": {"type": "integer"},
15
"processing_height": {"type": "integer"},
16
"processing_width": {"type": "integer"},
17
},
18
},
19
"threshold_params": {
20
"type": "object",
21
"additionalProperties": False,
22
"properties": {
23
"GAMMA_LOW": {"type": "number", "minimum": 0, "maximum": 1},
24
"MIN_GAP": {"type": "integer", "minimum": 10, "maximum": 100},
25
"MIN_JUMP": {"type": "integer", "minimum": 10, "maximum": 100},
26
"CONFIDENT_SURPLUS": {"type": "integer", "minimum": 0, "maximum": 20},
27
"JUMP_DELTA": {"type": "integer", "minimum": 10, "maximum": 100},
28
"PAGE_TYPE_FOR_THRESHOLD": {
29
"enum": ["white", "black"],
30
"type": "string",
31
},
32
},
33
},
34
"alignment_params": {
35
"type": "object",
36
"additionalProperties": False,
37
"properties": {
38
"auto_align": {"type": "boolean"},
39
"match_col": {"type": "integer", "minimum": 0, "maximum": 10},
40
"max_steps": {"type": "integer", "minimum": 1, "maximum": 100},
41
"stride": {"type": "integer", "minimum": 1, "maximum": 10},
42
"thickness": {"type": "integer", "minimum": 1, "maximum": 10},
43
},
44
},
45
"outputs": {
46
"type": "object",
47
"additionalProperties": False,
48
"properties": {
49
"show_image_level": {"type": "integer", "minimum": 0, "maximum": 6},
50
"save_image_level": {"type": "integer", "minimum": 0, "maximum": 6},
51
"save_detections": {"type": "boolean"},
52
# This option moves multimarked files into a separate folder for manual checking, skipping evaluation
53
"filter_out_multimarked_files": {"type": "boolean"},
54
},
55
},
56
},
57
}
58
59