@echo off
cd /d "%~dp0"
where python >nul 2>nul || (
  echo Python 3 is required.
  pause
  exit /b 1
)
where tesseract >nul 2>nul || (
  echo Tesseract OCR must be installed and added to PATH.
  pause
  exit /b 1
)
if not exist .venv python -m venv .venv
call .venv\Scripts\activate
python -m pip install --quiet --upgrade pip
python -m pip install --quiet -r requirements.txt
python main.py
pause
