修改显示模式
This commit is contained in:
parent
eb6be2abe5
commit
53dca5c668
10
face_rec.py
10
face_rec.py
@ -310,10 +310,18 @@ class FaceRecognitionSystem:
|
||||
# 准备状态文本
|
||||
status_texts = []
|
||||
|
||||
# 模式中文映射
|
||||
mode_map = {
|
||||
'await': '待机模式',
|
||||
'local': '展厅讲解员',
|
||||
'smart': '访客引导者'
|
||||
}
|
||||
|
||||
# 显示当前模式
|
||||
mode_prefix = ""
|
||||
if self.robot_status['mode']:
|
||||
mode_prefix = f"{self.robot_status['mode']}: "
|
||||
mode_name = mode_map.get(self.robot_status['mode'], self.robot_status['mode'])
|
||||
mode_prefix = f"{mode_name}: "
|
||||
|
||||
# 收集状态信息
|
||||
status_parts = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user