修改摄像头编号

This commit is contained in:
haotian 2025-09-30 10:34:18 +08:00
parent 5acf3288c2
commit 309da9c910
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

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