Spaces:
Sleeping
Sleeping
File size: 624 Bytes
f960755 183e96e f853097 183e96e f853097 183e96e f853097 183e96e f853097 183e96e ce0c383 183e96e ce0c383 183e96e ce0c383 183e96e ce0c383 f960755 f853097 183e96e ce0c383 183e96e f853097 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ---
title: OCR Scan Vision API
emoji: 🧾
colorFrom: indigo
colorTo: blue
sdk: docker
pinned: false
license: mit
---
# Arabic OCR API
Simple API for extracting Arabic text from contract images.
## Endpoint
**POST** `/ocr`
### Request
- `file`: Image file (multipart/form-data)
- `min_conf`: Minimum confidence threshold (0.0-1.0, optional)
### Response
```json
{
"items": [
{"box_id": 1, "text": "النص", "confidence": 0.95, "bbox": [x1,y1,x2,y2]}
],
"text": "النص الكامل",
"total_boxes": 10
}
```
## Usage
```bash
curl -X POST "https://sharshar1-ocr.hf.space/ocr" -F "file=@image.jpg"
```
|