项目需求: 1.实时读取摄像头中RTSP流中的画面并处理. 2.对于摄像头的画面找出其中的人物,并估计摄像头到人物的距离. 3.写一个接口.调用接口时,返回当前摄像头中人物到摄像头的距离. 项目结构: / │ ├── config/ │ └── 001_config.yaml # 配置文件 │ ├── src/ │ ├── 002_camera_handler.py # 摄像头处理模块 │ ├── 003_person_detector.py # 人物检测模块 │ ├── 004_distance_estimator.py # 距离估计模块 │ └── 005_api_server.py # API接口服务 │ ├── utils/ │ └── 006_utils.py # 工具函数 │ ├── 007_main.py # 主程序 └── requirements.txt # 项目依赖