🇺🇸 English | 🇻🇳 Tiếng Việt
Simple REST API for CAPTCHA recognition using the ddddocr Python library.
- 🚀 FastAPI REST API
- 🔍 CAPTCHA recognition with ddddocr
- 🐳 Docker & Docker Compose support
- 📦 Lightweight deployment
- 🌐 Easy integration with other applications
.
├── app.py
├── Dockerfile
├── docker-compose.yml
└── requirements.txt
docker compose up -d --buildOpen Swagger:
http://localhost:8002/docs
Install dependencies:
pip install -r requirements.txtRun:
uvicorn app:app --host 0.0.0.0 --port 8000POST /ocr/url
Example:
curl -X POST "http://localhost:8002/ocr/url?url=https://example.com/captcha.png"POST /ocr/file
Example:
curl -X POST -F "file=@captcha.png" http://localhost:8002/ocr/fileports:
- "8002:8000"The API will be available at:
http://YOUR_SERVER_IP:8002
MIT