Files
vision-record/start.bat

30 lines
625 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 启动服务...
echo 注意:此窗口请勿点击或拖动,否则会暂停
echo 如需交互请另开命令行窗口
echo ================================
python main.py