A web-based interface for DeepSeek-OCR model.
- ✨ Table Recognition Display: Added enhanced table structure visualization with markdown formatting
- 🎯 Image Position Annotation: Implemented interactive HTML-based coordinate annotation system
- Color-coded bounding boxes for detected text regions
- Real-time coordinate legend with precise positioning
- Multi-format output support (Markdown, HTML, Annotated Image)
- Responsive design that scales perfectly across all devices
Download the DeepSeek-OCR model from one of these sources:
- ModelScope: https://www.modelscope.cn/models/deepseek-ai/DeepSeek-OCR
- Hugging Face: https://huggingface.co/deepseek-ai/DeepSeek-OCR
-
Install Dependencies
conda create -n deepseek-ocr python=3.12.9 -y conda activate deepseek-ocr pip install -r requirements.txt # Install Torch First pip install flash-attn==2.7.3 --no-build-isolation -
Configure Model Path
Edit
start_ocr_webui.pyline 26:# Change this line to your model path self.model_path = '/path/to/your/DeepSeek-OCR'
-
Run Application
python start_ocr_webui.py
-
Access WebUI
Open browser: http://localhost:7860
- Upload one or more images
- Enter OCR prompt (or use preset prompts)
- Click "Recognize" button
- View results in the Results/Summary tabs
- Python 3.12+
- CUDA-compatible GPU (recommended)
- 16GB+ GPU memory 4080+
- PyTorch with CUDA support
- Multi-image batch processing
- Multiple OCR prompt presets
- Bilingual interface (English/Chinese)
- Docker deployment support
- Real-time processing progress
- General OCR:
Free OCR. - Markdown:
<|grounding|>Convert the document to markdown. - Table:
<|grounding|>Extract all tables and convert to markdown format.
