This commit is contained in:
2025-02-13 02:15:58 +00:00
parent ba54fa8910
commit 7ba73247af
10 changed files with 18 additions and 13 deletions
+18 -13
View File
@@ -5,25 +5,30 @@
## 系统架构
### Web应用层 (app/)
### Web应用层 (api/)
- `main.py`: FastAPI Web应用主程序,提供REST API接口
- `models.py`: 数据模型和业务逻辑处理
- `config.py`: 系统配置文件
### 功能模块层 (function/)
1. **视频采集模块**
- `rtsp2video.py`: RTSP视频流采集和录制
- `video2image.py`: 视频关键帧提取
### 配置层 (config/)
- `config.py`: 功能和工具的系统配置文件
2. **人脸分析模块**
### 功能模块层 (function/)
1. **人脸分析模块**
- `face.py`: 人脸检测和识别
- `face-emb.py`: 人脸特征提取
- `pose.py`: 人体姿态检测
3. **行为分析模块**
2. **行为分析模块**
- `qwen.py`: 基于Qwen2-VL-7B模型的视频内容分析
- `info.json`: 行为和场景类别定义
### 工具模块 (tools/)
- `rtsp2video.py`: RTSP视频流采集和录制
- `video2image.py`: 视频关键帧提取
## 主要功能
### 1. 视频采集
@@ -69,13 +74,13 @@
## 使用说明
1. 确保配置文件中的各项参数正确设置
2. 启动Redis服务
3. 运行视频采集模块:`python rtsp2video.py`
3. 运行视频采集模块:`python tools/rtsp2video.py`
4. 运行分析模块:
- `python video2image.py`
- `python pose.py`
- `python face.py`
- `python qwen.py`
5. 启动Web服务:`python main.py`
- `python tools/video2image.py`
- `python function/pose.py`
- `python function/face.py`
- `python function/qwen.py`
5. 启动Web服务:`python api/main.py`
## API接口
- GET `/web/face/{camera_id}/data`: 获取人脸识别数据
View File