neosun100/DeepSeek-OCR-WebUI
neosun100/DeepSeek-OCR-WebUI has 447 GitHub stars and 94 forks. GitHot measured +1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-11 03:14 UTC. Last push 2026-02-20.
ðš Ready-to-use DeepSeek-OCR Web UI | Modern Interface | 7 Recognition Modes | Batch Processing | Real-time Logging | Fully Responsive
What you can do
- ð¯ 7 Recognition Modes - Document, OCR, Chart, Find, Freeform, and more
- ðŒïž Bounding Box Visualization - Find mode with automatic position annotation
- ðŠ Batch Processing - Process multiple images/pages sequentially
- ð PDF Support - Upload PDFs, auto-convert to images
Measured star growth
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalð DeepSeek-OCR-WebUI
ð English | ç®äœäžæ | ç¹é«äžæ | æ¥æ¬èª
Intelligent OCR System · Vue 3 Modern UI · Batch Processing · Multi-Mode Support
Features ⢠Quick Start ⢠Screenshots ⢠Contributors
ð v4.1 Update: UI Improvements & Model Version Display

Header shows OCR-2 model badge · Footer displays v4.1 · OCR-2
- ð·ïž OCR-2 Model Badge â Header now shows a prominent
OCR-2badge so users instantly know the model version - ðš Table Rendering Fix â OCR-detected tables now display with white backgrounds, dark text, and zebra striping for clear readability (previously appeared as dark/unreadable blocks)
- ð¡ Health API
model_versionâ/healthendpoint now returns"model_version": "DeepSeek-OCR-2"for programmatic version detection - ð Footer Version â Updated to
v4.1 · OCR-2
ð v4.0 Update: DeepSeek-OCR-2 Model Upgrade!
ð Major model upgrade to DeepSeek-OCR-2 (Visual Causal Flow) â better accuracy, higher resolution!
âš What's New in v4.0
- ð§ DeepSeek-OCR-2 Model - Upgraded to the latest DeepSeek-OCR-2 with Visual Causal Flow architecture
- ð¬ Higher Resolution - Dynamic resolution up to (0-6)Ã768Ã768 + 1Ã1024Ã1024 (was 640Ã640)
- â¡ Flash Attention 2 - Native
flash_attention_2support on CUDA for optimal inference speed - ð¯ Improved Accuracy - Better document understanding, chart parsing, and text recognition
- ð Full Backward Compatibility - All 7 recognition modes, REST API, and frontend unchanged
- ð³ Docker v4.0 - New all-in-one image with pre-downloaded OCR-2 model (
Dockerfile.v4.0) - ðŠ Unified Tokenizer - Switched from
AutoProcessortoAutoTokenizer(aligned with official OCR-2 API)
ð§ Technical Changes
| Component | v3.6 (OCR v1) | v4.0 (OCR-2) |
|---|---|---|
| Model | deepseek-ai/DeepSeek-OCR |
deepseek-ai/DeepSeek-OCR-2 |
image_size |
640 | 768 |
| Attention | eager |
flash_attention_2 (CUDA) |
| Tokenizer | AutoProcessor |
AutoTokenizer |
| Resolution | Fixed crops | Dynamic (0-6)Ã768 + 1Ã1024 |
ð¡ All existing features from v3.6 (concurrency, rate limiting, queue management, Vue 3 frontend) are fully preserved.
ð v3.6 Update: Backend Concurrency & Rate Limiting!
ð Performance optimization with smart queue management and rate limiting!
âš What's New in v3.6
- â¡ Backend Concurrency Optimization - Non-blocking inference with ThreadPoolExecutor
- ð Rate Limiting - Per-client and per-IP request limits (X-Client-ID header support)
- ð Queue Management - Real-time queue status with position tracking
- ð¥ Enhanced Health API - Queue depth, status (healthy/busy/full), and rate limit info
- ð New Languages - Added Traditional Chinese (zh-TW) and Japanese (ja-JP)
- ð¯ 429 Error Handling - Graceful handling when queue is full or rate limited
ð Contributors: @cloudman6 (PR #41)
ð v3.5 Major Update: Brand New Vue 3 Frontend!
ð Complete UI Overhaul with Modern Vue 3 + TypeScript Architecture!
| Home Page | Processing Page |
|---|---|
![]() |
![]() |
âš What's New in v3.5
- ðš Brand New Vue 3 UI - Modern, responsive design with Naive UI components
- â¡ TypeScript Support - Full type safety and better developer experience
- ðŠ Dexie.js Database - Local IndexedDB for offline page management
- ð Real-time Processing Queue - Visual OCR progress with queue management
- ð¥ Health Check System - Backend status monitoring with visual indicators
- ð Enhanced PDF Support - Smooth PDF rendering with page-by-page processing
- ð i18n Ready - Built-in internationalization (EN/CN/TW/JP)
- 𧪠E2E Testing - Comprehensive Playwright test coverage
ð¥ Contributors
ð Special Thanks to Our Amazing Contributors! ð
This project is the result of an outstanding collaboration. The Vue 3 frontend was developed through a successful merge of PR #34.
|
CloudMan ð Vue 3 Frontend Lead Developer 164 commits · Complete UI Rewrite |
neosun100 ð¯ Project Maintainer Backend · Docker · Integration |
ð¡ About the Vue 3 Frontend: @cloudman6 contributed an exceptional Vue 3 + TypeScript frontend with 164 commits, including comprehensive E2E tests, modern UI components, and production-ready architecture. This collaboration transformed DeepSeek-OCR-WebUI into a professional-grade application!
ð Introduction
DeepSeek-OCR-WebUI is an intelligent document recognition web application powered by the DeepSeek-OCR model. It provides a modern, intuitive interface for converting images and PDFs to structured text with high accuracy.
âš Core Highlights
| Feature | Description |
|---|---|
| ð¯ 7 Recognition Modes | Document, OCR, Chart, Find, Freeform, and more |
| ðŒïž Bounding Box Visualization | Find mode with automatic position annotation |
| ðŠ Batch Processing | Process multiple images/pages sequentially |
| ð PDF Support | Upload PDFs, auto-convert to images |
| ðš Modern Vue 3 UI | Responsive design with Naive UI |
| ð Multilingual | EN, ç®äœäžæ, ç¹é«äžæ, æ¥æ¬èª |
| ð Apple Silicon | Native MPS acceleration for M1/M2/M3/M4 |
| ð³ Docker Ready | One-command deployment |
| â¡ GPU Acceleration | NVIDIA CUDA support |
ð Features
7 Recognition Modes
| Mode | Icon | Description | Use Cases |
|---|---|---|---|
| Doc to Markdown | ð | Preserve format and layout | Contracts, papers, reports |
| General OCR | ð | Extract all visible text | Image text extraction |
| Plain Text | ð | Pure text without format | Simple text recognition |
| Chart Parser | ð | Recognize charts and formulas | Data charts, math formulas |
| Image Description | ðŒïž | Generate detailed descriptions | Image understanding |
| Find & Locate | ð | Find and annotate positions | Invoice field locating |
| Custom Prompt | âš | Customize recognition needs | Flexible tasks |
ð Vue 3 Frontend Features
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â ð Page Sidebar â ð Document Viewer â
â ââ Thumbnail List â ââ High-res Image Display â
â ââ Drag & Drop Reorder â ââ OCR Overlay Toggle â
â ââ Batch Selection â ââ Zoom Controls â
â ââ Quick Actions â ââ Status Indicators â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ€
â ð Processing Queue â ð Result Panel â
â ââ Real-time Progress â ââ Markdown Preview â
â ââ Cancel/Retry â ââ Word/PDF Export â
â ââ Health Monitoring â ââ Copy to Clipboard â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ðŒïž Screenshots
Home Page

Clean, modern landing page with quick access to all features
Processing Interface

Full-featured document processing with sidebar, viewer, and results panel
Quick Start Guide

Step-by-step guide: Import files â Select pages â Choose OCR mode â Get results
ðŠ Quick Start
ð³ Docker (Recommended)
# Pull and run
docker pull neosun/deepseek-ocr:v4.1
docker run -d \
--name deepseek-ocr \
--gpus all \
-p 8001:8001 \
--shm-size=8g \
neosun/deepseek-ocr:v4.1
# Access: http://localhost:8001
Available Docker Tags
| Tag | Description |
|---|---|
latest |
Latest stable (= v4.1) |
v4.1 |
UI improvements & model version display |
v4.0 |
DeepSeek-OCR-2 model upgrade |
v3.6 |
Backend concurrency & rate limiting |
v3.5 |
Vue 3 frontend version |
v3.3.1-fix-bfloat16 |
BFloat16 compatibility fix |
ð Mac (Apple Silicon)
# Clone and setup
git clone https://github.com/neosun100/DeepSeek-OCR-WebUI.git
cd DeepSeek-OCR-WebUI
# Create conda environment
conda create -n deepseek-ocr python=3.11
conda activate deepseek-ocr
# Install dependencies
pip install -r requirements-mac.txt
# Start service
./start.sh
# Access: http://localhost:8001
ð§ Linux (Native)
# With NVIDIA GPU
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
./start.sh
ð API & Integration
REST API
import requests
# Single image OCR
with open("image.png", "rb") as f:
response = requests.post(
"http://localhost:8001/ocr",
files={"file": f},
data={"prompt_type": "ocr"}
)
print(response.json()["text"])
# PDF OCR (all pages)
with open("document.pdf", "rb") as f:
response = requests.post(
"http://localhost:8001/ocr-pdf",
files={"file": f},
data={"prompt_type": "document"}
)
print(response.json()["merged_text"])
Endpoints:
GET /health- Health checkPOST /ocr- Single image OCRPOST /ocr-pdf- PDF OCR (all pages)POST /pdf-to-images- Convert PDF to images
ð Full API Documentation: API.md
MCP (Model Context Protocol)
Enable AI assistants like Claude Desktop to use OCR:
{
"mcpServers": {
"deepseek-ocr": {
"command": "python",
"args": ["/path/to/mcp_server.py"]
}
}
}
ð MCP Setup Guide: MCP_SETUP.md
ð Multilingual Support
| Language | Code | Status |
|---|---|---|
| ðºðž English | en-US | â Default |
| ðšð³ ç®äœäžæ | zh-CN | â |
| ð¹ðŒ ç¹é«äžæ | zh-TW | â |
| ð¯ðµ æ¥æ¬èª | ja-JP | â |
Switch language via the selector in the top-right corner.
ð Version History
v4.1 (2026-02-20) - UI Improvements & Model Version Display
ð·ïž UI & API Enhancements:
- â OCR-2 model badge in header for instant version recognition
- â Table rendering fix: white background, dark text, zebra striping
- â
Health API returns
model_version: "DeepSeek-OCR-2" - â
Footer updated to
v4.1 · OCR-2
v4.0 (2026-02-20) - DeepSeek-OCR-2 Model Upgrade
ð§ Major Model Upgrade:
- â Upgraded to DeepSeek-OCR-2 (Visual Causal Flow)
- â Dynamic resolution: (0-6)Ã768Ã768 + 1Ã1024Ã1024
- â Flash Attention 2 on CUDA for optimal inference speed
- â
Switched from
AutoProcessortoAutoTokenizer - â
image_sizeupgraded from 640 to 768 - â
New
Dockerfile.v4.0with pre-downloaded OCR-2 model - â Full backward compatibility with all v3.6 features
v3.6 (2026-01-20) - Backend Concurrency & Rate Limiting
â¡ Performance Optimization:
- â Non-blocking inference with ThreadPoolExecutor
- â Concurrency control with asyncio.Semaphore (OCR: 1, PDF: 2)
- â Queue system with MAX_OCR_QUEUE_SIZE and dynamic status
- â Per-IP and per-Client-ID rate limiting (X-Client-ID header)
- â 429 error handling (queue full, client limit, IP limit)
- â Health indicator with 3 status colors (green/yellow/red)
- â OCR queue popover with real-time position display
ð Contributors: @cloudman6 (PR #41)
v3.5 (2026-01-17) - Vue 3 Frontend
ðš Complete UI Overhaul:
- â Vue 3 + TypeScript + Naive UI
- â Dexie.js local database
- â Real-time processing queue
- â Health check monitoring
- â E2E test coverage (Playwright)
- â GitHub links in header
ð Contributors: @cloudman6 (164 commits)
v3.3.1 (2025-12-16) - BFloat16 Fix
- â Fixed GPU compatibility for RTX 20xx, GTX 10xx
- â Auto-detect compute capability
v3.3 (2025-11-05) - Apple Silicon
- â Native MPS backend for Mac M1/M2/M3/M4
- â Multi-platform architecture
v3.2 (2025-11-04) - PDF Support
- â PDF upload and conversion
- â ModelScope auto-fallback
ð Documentation
| Document | Description |
|---|---|
| API.md | REST API reference |
| MCP_SETUP.md | MCP integration guide |
| DOCKER_HUB.md | Docker deployment |
| CHANGELOG.md | Version history |
ð Star History
ð€ Contributing
Contributions welcome! Please:
- Fork this repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
ð License
This project is licensed under the MIT License.
ð Acknowledgments
- DeepSeek-AI - DeepSeek-OCR model
- @cloudman6 - Vue 3 frontend development
- All contributors and users
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,505 starshuggingface/transformers
ð€ Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,815 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,289 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,271 stars