CoolFace
Apppublic

isseygino911/dots-ocr-parser

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
0likes
App README

DotsOCR Document Parser API

Multilingual document parsing powered by dots.ocr - 1.7B parameter Vision-Language Model for Document Understanding.

Live API: https://isseygino911-dots-ocr-parser.hf.space

๐Ÿš€ Quick Links

  • โ€”[API Usage Guide](./API_USAGE_GUIDE.md) - Complete examples for Python, JavaScript, React
  • โ€”[Interactive API Docs](https://isseygino911-dots-ocr-parser.hf.space/docs) - Test endpoints
  • โ€”[Quick Start](./QUICKSTART.md) - 5-minute setup guide
  • โ€”[Deployment](./DEPLOYMENT.md) - Production deployment guide

โšก Quick Test

bash
# Test with Python
python test_upload.py your_document.pdf

# Or use cURL
curl -X POST https://isseygino911-dots-ocr-parser.hf.space/api/parse/image \
  -F "file=@image.jpg" \
  -F "prompt_mode=prompt_layout_all_en"

๐Ÿ“– What It Does

  • โ€”Extract text from images and PDFs with high accuracy
  • โ€”Detect layout - identifies titles, paragraphs, tables, figures, etc.
  • โ€”Generate structured output - Markdown + JSON with bounding boxes
  • โ€”Process PDFs - Handles multi-page documents automatically
  • โ€”Real-time progress - WebSocket and HTTP polling support

๐Ÿ› ๏ธ Features

  • โ€”FastAPI backend with automatic OpenAPI documentation
  • โ€”GPU-accelerated processing on HuggingFace Spaces
  • โ€”RESTful API with WebSocket support for real-time updates
  • โ€”Comprehensive examples for Python, JavaScript, and React
  • โ€”Download results as ZIP with annotated images

๐Ÿ“š Documentation

See API_USAGE_GUIDE.md for:

  • โ€”Complete API reference
  • โ€”Python backend examples
  • โ€”JavaScript/React frontend examples
  • โ€”Error handling best practices
  • โ€”WebSocket integration

๐Ÿ”ง Local Testing

bash
# Clone the repo
git clone https://huggingface.co/spaces/isseygino911/dots-ocr-parser
cd dots-ocr-parser

# Test the API
python test_upload.py test.png

๐Ÿ“„ License

Apache 2.0 - See dots.ocr repository for model license details