Spaces:
Sleeping
Sleeping
Update thresholds.py
Browse files- thresholds.py +3 -11
thresholds.py
CHANGED
|
@@ -6,27 +6,21 @@ def get_thresholds_beginner():
|
|
| 6 |
'TRANS' : (35, 65),
|
| 7 |
'PASS' : (70, 95)
|
| 8 |
}
|
| 9 |
-
|
| 10 |
|
| 11 |
thresholds = {
|
| 12 |
'HIP_KNEE_VERT': _ANGLE_HIP_KNEE_VERT,
|
| 13 |
-
|
| 14 |
'HIP_THRESH' : [10, 60],
|
| 15 |
'ANKLE_THRESH' : 45,
|
| 16 |
'KNEE_THRESH' : [50, 70, 95],
|
| 17 |
-
|
| 18 |
'OFFSET_THRESH' : 50.0,
|
| 19 |
'INACTIVE_THRESH' : 15.0,
|
| 20 |
|
| 21 |
-
'CNT_FRAME_THRESH' : 50
|
| 22 |
-
|
| 23 |
}
|
| 24 |
|
| 25 |
return thresholds
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
# Get thresholds for beginner mode
|
| 30 |
def get_thresholds_pro():
|
| 31 |
|
| 32 |
_ANGLE_HIP_KNEE_VERT = {
|
|
@@ -34,7 +28,6 @@ def get_thresholds_pro():
|
|
| 34 |
'TRANS' : (35, 65),
|
| 35 |
'PASS' : (80, 95)
|
| 36 |
}
|
| 37 |
-
|
| 38 |
|
| 39 |
thresholds = {
|
| 40 |
'HIP_KNEE_VERT': _ANGLE_HIP_KNEE_VERT,
|
|
@@ -46,8 +39,7 @@ def get_thresholds_pro():
|
|
| 46 |
'OFFSET_THRESH' : 50.0,
|
| 47 |
'INACTIVE_THRESH' : 15.0,
|
| 48 |
|
| 49 |
-
'CNT_FRAME_THRESH' : 50
|
| 50 |
-
|
| 51 |
}
|
| 52 |
|
| 53 |
return thresholds
|
|
|
|
| 6 |
'TRANS' : (35, 65),
|
| 7 |
'PASS' : (70, 95)
|
| 8 |
}
|
|
|
|
| 9 |
|
| 10 |
thresholds = {
|
| 11 |
'HIP_KNEE_VERT': _ANGLE_HIP_KNEE_VERT,
|
|
|
|
| 12 |
'HIP_THRESH' : [10, 60],
|
| 13 |
'ANKLE_THRESH' : 45,
|
| 14 |
'KNEE_THRESH' : [50, 70, 95],
|
|
|
|
| 15 |
'OFFSET_THRESH' : 50.0,
|
| 16 |
'INACTIVE_THRESH' : 15.0,
|
| 17 |
|
| 18 |
+
'CNT_FRAME_THRESH' : 50
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
return thresholds
|
| 22 |
|
| 23 |
+
# Get thresholds for pro
|
|
|
|
|
|
|
| 24 |
def get_thresholds_pro():
|
| 25 |
|
| 26 |
_ANGLE_HIP_KNEE_VERT = {
|
|
|
|
| 28 |
'TRANS' : (35, 65),
|
| 29 |
'PASS' : (80, 95)
|
| 30 |
}
|
|
|
|
| 31 |
|
| 32 |
thresholds = {
|
| 33 |
'HIP_KNEE_VERT': _ANGLE_HIP_KNEE_VERT,
|
|
|
|
| 39 |
'OFFSET_THRESH' : 50.0,
|
| 40 |
'INACTIVE_THRESH' : 15.0,
|
| 41 |
|
| 42 |
+
'CNT_FRAME_THRESH' : 50
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
return thresholds
|