From 53dca5c668526822fd161dbfb26864d936d8d27f Mon Sep 17 00:00:00 2001 From: Tian jianyong <11429339@qq.com> Date: Sun, 28 Dec 2025 17:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- face_rec.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/face_rec.py b/face_rec.py index eeb5988..123a85a 100644 --- a/face_rec.py +++ b/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 = []