重构:模块化项目结构,分离配置、路由、摄像头管理器,添加健康检查,更新Dockerfile和启动脚本

This commit is contained in:
Hao Wang
2025-12-07 02:07:14 +08:00
parent e991e0e7e6
commit c4735c0d3f
21 changed files with 761 additions and 5 deletions

View File

@@ -24,6 +24,18 @@ if [ $? -ne 0 ]; then
pip3 install requests==2.31.0
fi
python3 -c "import dotenv" 2>/dev/null
if [ $? -ne 0 ]; then
echo "📥 安装python-dotenv..."
pip3 install python-dotenv==1.0.0
fi
python3 -c "import psutil" 2>/dev/null
if [ $? -ne 0 ]; then
echo "📥 安装psutil..."
pip3 install psutil==5.9.6
fi
# 启动应用
echo "🎬 启动应用..."
python3 complete_multi_camera_app.py
python3 run.py