update at 2026-06-03 11:04:16

This commit is contained in:
陈赣
2026-06-03 11:04:16 +08:00
parent dc755d2bfd
commit 41bd03123c
7 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
"""能力开放接口客户端:获取 accessToken、签名并请求摄像头 RTSP 地址。"""
from __future__ import annotations
import hashlib

View File

@@ -1,3 +1,5 @@
"""配置模块:从环境变量读取服务、模型、视频源和检测参数。"""
from __future__ import annotations
import os

View File

@@ -1,3 +1,5 @@
"""DETR 车辆检测模块:加载模型并输出车辆类别、置信度和检测框。"""
from __future__ import annotations
from typing import Any

View File

@@ -1,3 +1,5 @@
"""摄像头管理模块:加载设备列表、切换当前设备并解析播放地址。"""
from __future__ import annotations
import threading

View File

@@ -1,3 +1,5 @@
"""FastAPI 入口模块:提供页面、视频流、状态、设备切换和 WebSocket 接口。"""
from __future__ import annotations
import asyncio

View File

@@ -1,3 +1,5 @@
"""视频流工作线程:读取视频帧、调用检测器、绘制 OSD 并缓存 JPEG。"""
from __future__ import annotations
import threading