Files
vision-record/start.bat

27 lines
493 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 65001 >nul
echo ================================
echo 视觉记录系统启动脚本 (Windows)
echo ================================
cd /d %~dp0
echo 检查 Python 环境...
python --version
if errorlevel 1 (
echo 错误: 未找到 Python请先安装 Python 3.10+
pause
exit /b 1
)
echo 检查依赖...
pip show opencv-python >nul 2>&1
if errorlevel 1 (
echo 安装依赖...
pip install -r requirements.txt
)
echo 启动服务...
python main.py
pause