这是一个基于 Python 的发票 OCR 识别系统,支持增值税专用发票和普通发票的识别与数据提取。
docker pull chiupam/invoiceocr:latest
基本运行:
docker run -d -p 5000:5000 chiupam/invoiceocr:latest
持久化数据存储:
docker run -d \
-p 5000:5000 \
-v /path/to/data:/app/data \
-v /path/to/uploads:/app/app/static/uploads \
chiupam/invoiceocr:latest
可以通过环境变量配置系统参数:
docker run -d \
-p 5000:5000 \
-e FLASK_ENV=production \
-e FLASK_DEBUG=0 \
-e OCR_API_KEY=your_api_key \
chiupam/invoiceocr:latest
容器内的主要目录:
/app/data: 数据存储目录
invoices.db: SQLite 数据库文件output/: 导出文件目录/app/app/static/uploads: 上传文件临时目录curl -X POST \
-F "file=@/path/to/invoice.jpg" \
http://localhost:5000/upload
curl http://localhost:5000/api/invoices
curl http://localhost:5000/export
docker build -t chiupam/invoiceocr:latest .
docker run -it \
-p 5000:5000 \
-v $(pwd):/app \
chiupam/invoiceocr:latest
MIT License
chiupam
Content type
Image
Digest
sha256:7918e64f3…
Size
213.1 MB
Last updated
6 months ago
docker pull chiupam/invoiceocr