暂存
fix: 修复task多次开启问题 feat: 新增 891 参数(医院停早,红球靠外) pref: 弃用 action 类
This commit is contained in:
@@ -25,10 +25,11 @@ filter.switch_camera(1)
|
||||
# label = tlabel.TPLATFORM
|
||||
while True:
|
||||
time.sleep(0.2)
|
||||
ret, box = filter.get(tlabel.SIGN)
|
||||
ret, box = filter.get(tlabel.HOSPITAL)
|
||||
if ret:
|
||||
width = box[0][2] - box[0][0]
|
||||
error = (box[0][2] + box[0][0] - 320) / 2
|
||||
logger.error(error)
|
||||
logger.error(width)
|
||||
# if abs(error) < 30 and abs(box[0][2] - box[0][0]) > 180:
|
||||
# # height = box[0][3] - box[0][1]
|
||||
# logger.error(111)
|
||||
|
||||
Reference in New Issue
Block a user