How aixpert-rug/flowextract works
FlowExtract turns maintenance-flowchart images into directed procedural graphs: YOLO detects symbols, OCR extracts node text, and line tracing reconstructs connections and labels. The CLI orchestrates these stages and saves intermediate/final artifacts; a separate evaluation workflow compares predictions with ground truth. The README documents the pipeline and evaluation capabilities, while the sampled excerpts show orchestration and key stage behavior; some stage internals and artifact-writing calls were not fully shown.
Main entry points: main.py Pipeline CLI · stage1_detector.py YOLO detection · evaluate.py Graph evaluation · stage2_ocr.py Text extraction
Components 12
Workflow orchestration
- Pipeline CLI
src/main.py - Pipeline config
configs/pipeline_config.yaml - Graph artifacts
src/main.py
Graph extraction
- YOLO detection
src/pipeline/stage1_detector.py - Text extraction
src/pipeline/stage2_ocr.py - Connection derivation
src/pipeline/stage3_connections.py
Shared utilities
- Config and file I/O
src/utils/io_utils.py - Detection visualization
src/utils/visualization.py
Evaluation
- Graph evaluation
src/evaluate.py - Ground-truth annotations
Other components
- Pipeline user
- Flowchart images
Connections 15
- Pipeline user → Pipeline CLI: runs
README.md - Flowchart images → Pipeline CLI: provides images
README.md - Pipeline CLI → Pipeline config: loads settings
src/main.py - Pipeline CLI → Config and file I/O: loads config
src/main.py - Pipeline CLI → YOLO detection: runs detection
src/main.py - Pipeline CLI → Text extraction: runs OCR
src/main.py - Pipeline CLI → Connection derivation: derives links
src/main.py - YOLO detection → Config and file I/O: saves detections
src/pipeline/stage1_detector.py - YOLO detection → Detection visualization: draws boxes
src/pipeline/stage1_detector.py - Pipeline CLI → Text extraction: requests arrow labels
src/main.py - Pipeline CLI → Connection derivation: passes detections and labels
src/main.py - Pipeline CLI → Graph artifacts: writes graph results
README.md - Pipeline user → Graph evaluation: runs evaluation
README.md - Graph artifacts → Graph evaluation: provides predictions
README.md - Ground-truth annotations → Graph evaluation: provides reference graphs
README.md