清空缓存
This commit is contained in:
parent
3370b91eb3
commit
e8f80b9fb4
|
@ -11,7 +11,7 @@ from .base_exercise import BaseExercise
|
||||||
|
|
||||||
|
|
||||||
class PullUp_1(BaseExercise):
|
class PullUp_1(BaseExercise):
|
||||||
def __init__(self, info, statistic_time=99999, camera=None):
|
def __init__(self, info, statistic_time=900, camera=None):
|
||||||
super().__init__(info, statistic_time, camera=camera)
|
super().__init__(info, statistic_time, camera=camera)
|
||||||
# 个数统计
|
# 个数统计
|
||||||
self.bar = None
|
self.bar = None
|
||||||
|
@ -203,7 +203,7 @@ class PullUp_1(BaseExercise):
|
||||||
self.direction = 0
|
self.direction = 0
|
||||||
self._time = 0
|
self._time = 0
|
||||||
self.end_test = 0
|
self.end_test = 0
|
||||||
self.speak_driver.speed_control(320)
|
self.speak_driver.speed_control(400)
|
||||||
self.speak_driver.add_speak("{}".format(int(self.count)))
|
self.speak_driver.add_speak("{}".format(int(self.count)))
|
||||||
if self.count == 1:
|
if self.count == 1:
|
||||||
self.initial_wrist_1_y = wrist_1_y
|
self.initial_wrist_1_y = wrist_1_y
|
||||||
|
|
|
@ -9,7 +9,7 @@ from .base_exercise import BaseExercise
|
||||||
|
|
||||||
|
|
||||||
class PullUp_2(BaseExercise):
|
class PullUp_2(BaseExercise):
|
||||||
def __init__(self, info, statistic_time=99999, camera=None):
|
def __init__(self, info, statistic_time=900, camera=None):
|
||||||
super().__init__(info, statistic_time, camera=camera)
|
super().__init__(info, statistic_time, camera=camera)
|
||||||
# 个数统计
|
# 个数统计
|
||||||
self.bar = None
|
self.bar = None
|
||||||
|
|
|
@ -9,7 +9,7 @@ from .base_exercise import BaseExercise
|
||||||
|
|
||||||
|
|
||||||
class PullUp_3(BaseExercise):
|
class PullUp_3(BaseExercise):
|
||||||
def __init__(self, info, statistic_time=99999, camera=None):
|
def __init__(self, info, statistic_time=900, camera=None):
|
||||||
super().__init__(info, statistic_time, camera=camera)
|
super().__init__(info, statistic_time, camera=camera)
|
||||||
# 个数统计
|
# 个数统计
|
||||||
self.bar = None
|
self.bar = None
|
||||||
|
|
|
@ -8,7 +8,7 @@ from .base_exercise import BaseExercise
|
||||||
|
|
||||||
|
|
||||||
class Tricep_dip_1(BaseExercise):
|
class Tricep_dip_1(BaseExercise):
|
||||||
def __init__(self, info, statistic_time=99999, camera=None):
|
def __init__(self, info, statistic_time=900, camera=None):
|
||||||
super().__init__(info, statistic_time, camera=camera)
|
super().__init__(info, statistic_time, camera=camera)
|
||||||
# 个数统计
|
# 个数统计
|
||||||
self.bar = None
|
self.bar = None
|
||||||
|
|
|
@ -579,6 +579,8 @@ class ExerciseBackend(LSZXBackend.base_driver.BaseDriver):
|
||||||
_count = count
|
_count = count
|
||||||
_score = real_score
|
_score = real_score
|
||||||
elif self.exercise_tag in {PULLUP, TRICEDIP} and had_done == False:
|
elif self.exercise_tag in {PULLUP, TRICEDIP} and had_done == False:
|
||||||
|
# 主动清空缓存
|
||||||
|
|
||||||
# 结束屏幕录制
|
# 结束屏幕录制
|
||||||
video_name = self.project.info[ID] + '_' + self.project.info[
|
video_name = self.project.info[ID] + '_' + self.project.info[
|
||||||
"name"] + '_' + self.project.exercise_type + '_' + str(real_score)
|
"name"] + '_' + self.project.exercise_type + '_' + str(real_score)
|
||||||
|
|
Loading…
Reference in New Issue