Spaces:
Sleeping
Sleeping
File size: 641 Bytes
7de5e88 |
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 |
---
title: Invoice OCR API
emoji: 📄
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
---
# Invoice OCR API
Extract invoice/bill data using PaddleOCR.
## API Endpoints
- `GET /api/health` - Health check
- `POST /api/extract` - Extract from image file upload
- `POST /api/extract-base64` - Extract from base64 image
## Usage
```javascript
const formData = new FormData();
formData.append('image', file);
const response = await fetch('/api/extract', {
method: 'POST',
body: formData
});
const data = await response.json();
// Returns: { success: true, header: {...}, items: [...] }
```
|