@echo off echo Starting Traffic Violation Detection System... REM Activate virtual environment call venv\Scripts\activate if errorlevel 1 ( echo Failed to activate virtual environment. Please run setup.bat first. pause exit /b 1 ) REM Start the application echo Starting the application... python app.py if errorlevel 1 ( echo Application failed to start. Check app.log for details. pause exit /b 1 ) REM Deactivate virtual environment deactivate echo Application stopped. Press any key to exit... pause