-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.py
More file actions
71 lines (61 loc) · 1.65 KB
/
Copy pathglobals.py
File metadata and controls
71 lines (61 loc) · 1.65 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import numpy as np
import sys
def superInitialise():
global ISACTIVE
### Sever Setting variables
global displayVideoOnBackend
ISACTIVE = False
displayVideoOnBackend = True
if sys.platform == "darwin":
displayVideoOnBackend = False
def initialise():
### UI Variables
global url
global img
global exerciseSelected
"""True when button to select exercise is pressed"""
global exerciseEnded
"""True when button to end exercise is pressed"""
global killSwitch
"""Switch to kill PeekingDuck"""
global isKilled
"""Verify if PeekingDuck successfully killed"""
### Exercise Variables
global repCount
global runSwitch
"""True when exercise is running"""
global currentExercise
"""number from 0 to N representing the ID of the exercise"""
### Feedback Variables
global mainFeedback
"""General Feedback + Summary Feedback"""
global repFeedback
"""Rep Feedback"""
global emotionFeedback
"""Emotion Feedback"""
global currentEmotion
"""
ID of emotion detected.
-1: no face
0: no emotion
1: fatigue
2: stress
3: stress & fatigue
4: neutral
"""
global difficulty
"""Experience level of person exercising, either
Beginner or Expert, default is Beginner"""
url = None
img = np.zeros((720, 1280, 3),dtype=np.float32)
exerciseSelected = False
exerciseEnded = False
repCount = 0
runSwitch = False
currentExercise = -1
mainFeedback = ["Press Start"]
repFeedback = []
emotionFeedback = ""
difficulty = "Beginner"
killSwitch = False
isKilled = False