Sign inSign up

jonesckevin/ocr-webapp

By jonesckevin

Updated about 2 months ago

Image
Languages & frameworks
Web servers
0

444

jonesckevin/ocr-webapp repository overview

Tesseract OCR WebApp

Tesseract OCR WebApp

Docker Hub - Jonesckevin/ocr-webapp

A Docker-based web application for OCR text extraction with AI-powered translation support. This app is meant to work offline using local LLMs (Ollama, LM Studio) with optional online cloud LLM support (OpenAI, Anthropic, Google Gemini, etc.). Great for your HALp needs!

Example

Features

  • OCR Processing: Extract text from images (PNG, JPG, TIFF, etc.) and PDF files
  • Multi-language OCR: Support for 100+ languages with top 10 pre-installed
  • AI Translation: Translate extracted text using local (Ollama, LM Studio) or cloud LLMs
  • Multiple Upload Methods: Drag & drop, file select, or paste from clipboard
  • File Management: Manage uploaded files and OCR results through the web interface
  • Configurable: Customize titles, file limits, LLM settings via config file
  • Secure API Keys: Server-side environment variables or client-side browser storage

Quick Start

Docker Hub
docker run -d -p 8080:5000 \
  -v ./data/uploaded:/data/uploaded \
  -v ./data/output:/data/output \
  -v ./config.json:/app/config.json:ro \
  jonesckevin/ocr-webapp
  1. Clone the repository:

    git clone https://github.com/Jonesckevin/OCR-WebApp.git
    cd OCR-WebApp
    
  2. Start the application:

    docker compose up -d
    
  3. Open your browser to http://localhost:8080

Building Manually
docker compose up --build
# or
docker build -t ocr-webapp .
docker run -d -p 8080:5000 \
  ocr-webapp

Configuration

Pre-installed OCR Languages

Priority languages (highlighted in UI):

  • English (eng)
  • French (fra)
  • Ukrainian (ukr)
  • Russian (rus)

Additional languages:

  • German (deu)
  • Spanish (spa)
  • Italian (ita)
  • Portuguese (por)
  • Chinese Simplified (chi_sim)
  • Japanese (jpn)


API Endpoints

EndpointMethodDescription
/GETMain application page
/healthGETHealth check endpoint
/api/configGETGet application configuration
/api/progress/<task_id>GETGet progress for a specific task
/api/logsGETGet application logs
/api/logs/downloadGETDownload complete log file
/api/logs/clearPOSTClear log file
/api/uploadPOSTUpload file
/api/upload/pastePOSTUpload pasted image (base64)
/api/filesGETList uploaded files
/api/files/<filename>GETDownload uploaded file
/api/files/<filename>DELETEDelete uploaded file
/api/languagesGETList installed OCR languages
/api/languages/installPOSTInstall new language pack
/api/ocrPOSTPerform OCR on a file
/api/resultsGETList OCR result files
/api/results/<result_id>GETGet specific OCR result
/api/results/<result_id>DELETEDelete OCR result
/api/results/<result_id>/editPOSTSave edited OCR text
/api/results/<result_id>/download/<format>GETDownload result (json/txt/translation)
/api/llm/testPOSTTest LLM provider connection
/api/llm/modelsPOSTGet available models for provider
/api/llm/translatePOSTTranslate text using LLM
/static/<path:filename>GETServe static files

Tag summary

Content type

Image

Digest

sha256:f219b1cc6

Size

114.1 MB

Last updated

about 2 months ago

docker pull jonesckevin/ocr-webapp