File size: 486 Bytes
0f24ed4
968fcad
 
0f24ed4
968fcad
0f24ed4
 
 
 
968fcad
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
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.