update at 2026-06-03 11:04:16
This commit is contained in:
@@ -23,6 +23,9 @@ flowchart TD
|
|||||||
I --> J[浏览器动态打标画面]
|
I --> J[浏览器动态打标画面]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TD
|
flowchart TD
|
||||||
A[读取一帧 BGR 图像] --> B{是否达到 FRAME_SKIP}
|
A[读取一帧 BGR 图像] --> B{是否达到 FRAME_SKIP}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""能力开放接口客户端:获取 accessToken、签名并请求摄像头 RTSP 地址。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""配置模块:从环境变量读取服务、模型、视频源和检测参数。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""DETR 车辆检测模块:加载模型并输出车辆类别、置信度和检测框。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""摄像头管理模块:加载设备列表、切换当前设备并解析播放地址。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""FastAPI 入口模块:提供页面、视频流、状态、设备切换和 WebSocket 接口。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""视频流工作线程:读取视频帧、调用检测器、绘制 OSD 并缓存 JPEG。"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|||||||
Reference in New Issue
Block a user