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', {})