-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
58 lines (54 loc) · 1.64 KB
/
constants.py
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
54
55
56
57
58
from enum import Enum, auto, Flag
import cv2
# statics
# HIGHLIGHT_COLOR = (173,255,47)
HIGHLIGHT_THICKNESS_LIGHT = 1
HIGHLIGHT_THICKNESS_HEAVY = 2
PUT_TEXT_FONT = cv2.FONT_HERSHEY_PLAIN
PUT_TEXT_SMALL = 0.7
PUT_TEXT_NORMAL = 1.0
PUT_TEXT_HEAVY = 2.0
# HIGHLIGHT_BLUE = (255,153,51)
# HIGHLIGHT_GREEN = (153,255,51)
# HIGHLIGHT_RED = (51,51,255)
class Highlight(Enum):
highlight = (173,255,47)
blue = (255,153,51)
green = (153,255,51)
red = (51,51,255)
white = (255,255,255)
gray = (153,153,153)
black = (0,0,0)
class Tags(Enum):
'''
These are keycodes (macOS). The following are available for users to map.
Just change this Enum - the rest is automatic.
F1 - 122, in use by Tuner, cannot be remapped
F2 in use by Tuner, cannot be remapped
F3 in use by Tuner, cannot be remapped
F4 - 118 available
F5 - 96 available
F7 - 98 available
F6 - not available - trapped by cv
F8 - 100 in use by Tuner, but can be remapped
F9 - 101 in use by Tuner, but can be remapped
F10 - 109 in use by Tuner, but can be remapped
'''
avoid = 109 # F10
exact = 101 # F9
close = 100 # F8
class SaveStyle(Flag):
'''
Change the TunerConfig.save_style static if the current scheme does not work for you.
'''
all = auto()
tagged = auto()
newfile = auto()
overwrite = auto()
class FrameGenStyle(Flag):
yield_1 = auto()
yield_2 = auto()
yield_all_new = auto()
yield_last_one_sticks = auto()
convert_grayscale = auto()
convert_normalize = auto()