invoice_ocr_api / README.md
Prathamesh10's picture
Upload 5 files
7de5e88 verified
---
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: [...] }
```