From 309da9c9109e7c3f60e62c565ff0b9972f8d3e54 Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Tue, 30 Sep 2025 10:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 4 ++-- main.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 8950710..477d90f 100644 --- a/config.yaml +++ b/config.yaml @@ -3,7 +3,7 @@ # CompreFace API配置 compreface: host: "http://10.0.0.202" - port: 8000 + port: "8000" # api_key: "your_api_key_here" recognition_api_key: "a5924457-62c9-47dc-a6e7-15462c502d2c" detection_api_key: "070283a2-faa3-423b-9772-2cd48ecc5362" @@ -16,7 +16,7 @@ websocket: # 摄像头配置 camera: - device_id: 0 # 摄像头设备ID + device_id: "/dev/v4l/by-id/usb-SYX-230524-J_HD_Camera-video-index0" # 摄像头设备ID, id是动态变化的, ls /dev/v4l/by-id/ 查看系统创建的链接 width: 1280 height: 720 fps: 30 diff --git a/main.py b/main.py index c4ad151..f4f88f1 100644 --- a/main.py +++ b/main.py @@ -237,6 +237,7 @@ class FaceRecognitionSystem: if self.ws: message = await self.ws.recv() data = json.loads(message) + # print("recv: data: ", data) if data.get('type') == 'status': status = data.get('message', {})