How yngboson/streamomr works
StreamOMR scans self-describing answer sheets from a live camera or image, recognizes identity and answers, stabilizes results across frames, then records, grades, and presents them for review. It has a server application and a browser-only edition. The graph preserves form generation, scan management, and review capabilities documented in the README and handoff log. Some frontend and standalone wiring is unsampled, so those connections are omitted or marked unverified.
Main entry points: recognize.py Sheet recognition · main.py HTTP and camera API · service.py Exam and scan operations · stream.py Frame stabilization
Components 22
Forms and layout
- Sheet layout
omr/layout.py - Printable PDF
omr/render_pdf.py
OMR recognition
- Marker and header codec
omr/markers.py - Marker detection
omr/detect.py - Page flattening
omr/tracks.py - Lighting correction
omr/illum.py - Ink calibration
omr/ink.py - Sheet recognition
omr/recognize.py - Frame stabilization
omr/stream.py - Frame fusion
omr/fusion.py - Sheet identity
omr/identity.py
Server workflow
- HTTP and camera API
app/main.py - Exam and scan operations
omr/service.py - Scan and exam database
omr/db.py
Review interfaces
- Review image helpers
omr/review.py - Server review UI
app/static/scan.js - Scan detail UI
app/static/detail.js
Browser standalone
- Standalone interface
standalone/app.js - Python browser bridge
standalone/glue.py - Pyodide worker
standalone/worker.js
Other components
- Exam operator
- Camera / image
Connections 24
- Exam operator → HTTP and camera API: submits scans
README.md - Camera / image → HTTP and camera API: streams frames
app/main.py - Exam operator → Standalone interface: scans sheets
README.md - Sheet layout → Printable PDF: defines geometry
omr/render_pdf.py - HTTP and camera API → Exam and scan operations: delegates operations
app/main.py - HTTP and camera API → Sheet recognition: uses recognition
app/main.py - HTTP and camera API → Frame stabilization: uses stream state
app/main.py - Exam and scan operations → Scan and exam database: reads and writes
omr/service.py - Exam and scan operations → Printable PDF: generates forms
omr/service.py - Exam and scan operations → Sheet layout: loads layouts
omr/service.py - Exam and scan operations → Sheet identity: applies identity policy
omr/service.py - Sheet recognition → Marker detection: detects markers
omr/recognize.py - Sheet recognition → Marker and header codec: decodes sheet header
omr/recognize.py - Sheet recognition → Sheet layout: resolves layout
omr/recognize.py - Sheet recognition → Page flattening: flattens sheet
omr/recognize.py - Sheet recognition → Lighting correction: corrects lighting
omr/recognize.py - Sheet recognition → Ink calibration: calibrates ink
omr/recognize.py - Frame stabilization → Frame fusion: fuses frames
omr/stream.py - Frame stabilization → Sheet identity: keys sheets
omr/stream.py - HTTP and camera API → Review image helpers: serves previews
app/main.py - Exam operator → Server review UI: reviews results
README.md - Exam operator → Scan detail UI: inspects scans
README.md - Standalone interface → Python browser bridge: requests recognition
- Pyodide worker → Python browser bridge: runs Python bridge