This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.py
More file actions
53 lines (46 loc) · 1.27 KB
/
Config.py
File metadata and controls
53 lines (46 loc) · 1.27 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
51
52
53
# File paths, given the image sequence file. Hardcoded keys in lots of places
CONFIG = {
"params": "/params.json",
"diff1": "/differences1",
"diff2": "/differences2",
"contour": "/contour.json",
"track": "/track.json",
"csv": "/data.csv",
}
# Possible image extensions
extension = ["jpg", "jpeg", "tif", "png"]
# Button features
args = {
"font": ('Consolas', 12),
"width": 40,
"pady": 10
}
args1 = args.copy()
args1.update(dict(bg="grey", fg="black"))
args2 = args.copy()
args2.update(dict(bg="white", fg="grey"))
# Scale dictionary for scale.json. Hardcoded keys in lots of places
params_dict = {
"scale": 1,
"units": "pixel",
"duration": 1,
"canny_lower": 100,
"canny_upper": 200,
"kernel": 3,
"dilate_it1": 4,
"erode_it1": 3,
"dilate_it2": 5,
"erode_it2": 5,
"area_lower": -1,
"area_upper": -1
}
# TODO: write program help
program_help = "This program ..." \
"No background movement in video"
# General error message
em = "Please complete past steps (or click the 'Start where you left off' button) " \
"before attempting to complete this step."
# Error message 1
em1 = "You have not yet completed step 1). " + em
# Error message 2
em2 = "You have not yet completed step 1) or 2). " + em