jbarrow/commonforms
CommonForms — open models to auto-detect PDF form fields
What's novel
CommonForms — open models to auto-detect PDF form fields
Code Analysis
9 files read · 3 roundsUses object detection models (YOLO/RF-DETR) to identify form fields in PDF documents and converts them into fillable PDF form annotations (text boxes, checkboxes, signatures) with proper coordinate transformation and reading-order sorting.
Strengths
Clean separation of concerns with non-trivial PDF annotation internals (direct AcroForm/Widget manipulation, coordinate system conversion), clever heuristics for signature field promotion via text proximity scoring, and a complete ML pipeline from dataset generation to inference with multiple model backends.
Weaknesses
Limited test coverage (no unit tests for form_creator or coordinate transformation), a hardcoded image_size bug in FFDetrDetector, and the signature promotion logic only handles one widget per page rather than all matching rows.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
46
Contributors
4
Files
22
Active weeks
8
Repository
Language
Python
Stars
968
Forks
131
License
—