Initial: Tesseract Web GUI with Flask + start.bat

This commit is contained in:
Sivarius
2026-07-03 16:59:26 +08:00
commit 330b79288b
6 changed files with 534 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
@echo off
chcp 65001 > nul
title Tesseract Web GUI
:: Путь к папке проекта
set APP_DIR=%~dp0
cd /d "%APP_DIR%"
:: Проверяем Python
where python > nul 2> nul
if errorlevel 1 (
echo [Ошибка] Python не найден. Установи Python 3.10+ и добавь в PATH.
pause
exit /b 1
)
:: Установка зависимостей (пропустит если уже стоят)
echo [1/3] Проверка зависимостей...
python -m pip install -q flask pillow pytesseract
:: Проверяем Tesseract
if not exist "C:\Program Files\Tesseract-OCR\tesseract.exe" (
echo [Предупреждение] Tesseract не найден по пути C:\Program Files\Tesseract-OCR\tesseract.exe
echo Установи: winget install UB-Mannheim.TesseractOCR
pause
exit /b 1
)
:: Запуск
echo [2/3] Запуск веб-сервиса...
echo [3/3] Открой браузер: http://127.0.0.1:5000/
echo.
python app.py
pause