How taroandmulan/questionextractorai works
QuestionExtractorAI is a command-line tool for locating exam-question regions in image or PDF files using computer vision, not OCR/NLP. The user supplies a file and optional layout, dilation-kernel, and crop settings; the CLI parses these, dispatches to image or PDF analysis, and writes diagnostic and annotated images to an output directory. Analysis supports multiple page layouts, including a split-column SAT mode, and uses bounding-box merging to group question content and choices. The README also describes dataset annotation and known layout challenges, but does not establish a trained model or result pipeline. Some internal PDF and output call details are in omitted source excerpts, so those links are left unverified.
Main entry points: extract.py CLI Dispatcher · analyze.py Image and PDF Analysis · parser.py Argument Parser · boundingBox.py Bounding-box Merger
Components 7
CLI Entry
- CLI Dispatcher
extract.py - Argument Parser
tools/helper/parser.py
Image Analysis
- Image and PDF Analysis
tools/helper/analyze.py
Box Grouping
- Bounding-box Merger
tools/helper/boundingBox.py
Input and Output
- Exam Image or PDF
- Analysis Images
Other components
- Exam Processor User
Connections 7
- Exam Processor User → CLI Dispatcher: runs
README.md - Exam Image or PDF → CLI Dispatcher: provides file
README.md - CLI Dispatcher → Argument Parser: parses options
extract.py - CLI Dispatcher → Image and PDF Analysis: dispatches analysis
extract.py - Image and PDF Analysis → Bounding-box Merger: merges boxes
tools/helper/analyze.py - Image and PDF Analysis → Analysis Images: writes images
- Exam Image or PDF → Image and PDF Analysis: converts PDF pages