Node.js/Express server with web GUI for converting Google Maps links to DXF files. Includes optional Python ML server for satellite lot detection. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
839 B
Batchfile
41 lines
839 B
Batchfile
@echo off
|
|
title MAPS to DXF - ML segmentation server
|
|
cd /d "%~dp0"
|
|
|
|
where python >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
where py >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo Python not found. Install Python from https://www.python.org/downloads/
|
|
echo Then run this script again.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
set PY=py
|
|
) else (
|
|
set PY=python
|
|
)
|
|
|
|
if not exist "ml_server" (
|
|
echo ml_server folder not found.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
cd ml_server
|
|
echo Installing Python dependencies...
|
|
"%PY%" -m pip install -r requirements.txt -q
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo Pip install failed. Try: pip install -r requirements.txt
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo ML segmentation server starting on http://127.0.0.1:3457
|
|
echo Keep this window open while using "Use server-side ML segmentation" in the app.
|
|
echo.
|
|
"%PY%" segment_server.py
|
|
pause
|