30 lines
604 B
Batchfile
30 lines
604 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
|
|
echo ================================
|
|
echo Vision Record System (Windows)
|
|
echo ================================
|
|
|
|
cd /d %~dp0
|
|
|
|
echo Checking Python...
|
|
python --version
|
|
if errorlevel 1 (
|
|
echo ERROR: Python not found
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Checking dependencies...
|
|
pip show opencv-python >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Installing dependencies...
|
|
pip install -r requirements.txt
|
|
)
|
|
|
|
echo Starting service...
|
|
echo WARNING: Do NOT click or drag this window
|
|
echo Open another terminal if you need to interact
|
|
echo ================================
|
|
|
|
python main.py |