pdf-detect-api / README.md
McNeilAlex's picture
Upload folder using huggingface_hub
968fcad verified
|
Raw
History Blame Contribute Delete
486 Bytes
---
title: PDF Field Detector
emoji: πŸ“‹
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---
# PDF Field Detector
FastAPI service that detects form fields in PDFs.
- **AcroForm PDFs**: extracts native widget positions
- **Flat vector PDFs**: mines drawing layer for checkboxes, underlines, rectangles
- **Scanned/image PDFs**: returns `needs_ml` signal for FFDNet fallback
## API
`POST /detect` β€” multipart form upload, returns JSON with field boxes as fractions 0..1.