监狱2测试通过

This commit is contained in:
zqc
2026-02-27 14:55:21 +08:00
parent 5670b702f9
commit 5447f4363b
2 changed files with 6 additions and 2 deletions

View File

@@ -482,11 +482,14 @@ class FrameProcessorWorker(threading.Thread):
def __init__(self,
raw_frame_queue: "queue.Queue[Dict[str, Any]]",
ws_send_queue: "queue.Queue[Dict[str, Any]]",
stop_event: threading.Event):
stop_event: threading.Event,
cameras=None):
super().__init__(daemon=True)
self.raw_queue = raw_frame_queue
self.ws_queue = ws_send_queue
self.stop_event = stop_event
# 将摄像头列表转换为字典key为id方便通过camera_id快速查找
self.cameras = {cam.id: cam for cam in cameras} if cameras is not None else {}
self.last_ts: Dict[int, float] = {}