-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathscreen_conf.py
More file actions
29 lines (27 loc) · 776 Bytes
/
screen_conf.py
File metadata and controls
29 lines (27 loc) · 776 Bytes
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
# CANVAS PARAMTERS
from screenSize import get_screenWH
#------------------------------------------------
# PARAMS OF THE MACBOOK PRO 13
# H_px = 900 # WITH IN PIX
# W_px = 1440
W_px, H_px = get_screenWH()
# FOLLOWING PARAMS must be self defined!
H_m = 0.185 # SCREEN HEIGHT IN M, measured with ruler
W_m = 0.285 # SCREEN WIDTH IN M, measured with ruler
top_dist = 0.008 # DISTANCE FROM CAMERA SENSOR CENTER TO SCREEN 1cm or 0.8 cm
bottom_line = 120
adj_H = H_px - bottom_line
GRID_STEP = 50 # TRY 50
IMG_SCALE = 1 #0.3
# COLORS
#------------------------------------------------
RED = (0,0,255)
WHITE = (255,255,255)
BLUE = (255, 0, 0)
GREEN = (0, 255, 0)
BLACK = (0, 0, 0)
# FOR VIDEO
#------------------------------------------------
FPS = 20.0
VID_H = 720
VID_W = 1280