.bat de integracion on windows alpr-service

This commit is contained in:
2025-12-24 10:40:55 -03:00
parent c1e94dd96a
commit 349e5598a0
2 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
@echo off
TITLE ControlPatente AI - ALPR Service
echo ========================================================
echo Inicializando Servicio de Reconocimiento de Patentes
echo Windows Launcher
echo ========================================================
echo.
cd /d "%~dp0"
echo [1/3] Verificando entorno Python...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Python no esta instalado o no esta en el PATH.
echo Por favor instala Python desde https://python.org
pause
exit /b
)
echo [2/3] Instalando dependencias (si faltan)...
pip install -r requirements.txt
pip install flask flask-cors ultralytics
echo.
echo [3/3] Iniciando Servicio...
echo.
set BACKEND_URL=http://localhost:3000
python main.py
pause