How hzylmf/od-annotation works
This Flask application supports browser-based object-detection annotation: users select configured classes, annotate image samples with bounding boxes, and save results; a separate command converts saved annotations to VOC2007 files and splits. The graph preserves the documented UI interactions and conversion capability, but the frontend templates and JavaScript were not sampled, so their connections rely on README descriptions. Database helpers are present for user checks, though the sampled app routes do not show authentication wiring.
Main entry points: app.py HTTP routes · index.html Annotation page · tool.py VOC conversion · db_helper.py SQL access
Components 16
Annotation interface
- Annotation page
templates/index.html - Box interactions
static/build/js/draw_roi.js - Client controls
static/build/js/custom.js
Flask service
- HTTP routes
app.py - Label loading
utils/tool.py - VOC conversion
utils/tool.py
Annotation data
- Image samples
dataset - Class definitions
annotation/label_config.txt - Saved annotations
annotation/annotation.txt - VOC dataset files
annotation/VOC2007
Runtime support
- XML serialization
utils/xml2dict.py - SQL access
utils/db_helper.py - Runtime configuration
config.py - Logging
logger_manager.py
Other components
- Annotator
- MySQL
Connections 18
- Annotator → Annotation page: uses
README.md - Annotation page → Box interactions: offers drawing
- Annotation page → Client controls: uses controls
- Annotation page → HTTP routes: requests samples
README.md - Annotation page → HTTP routes: submits annotations
README.md - HTTP routes → Image samples: serves images
app.py - HTTP routes → Label loading: loads labels
app.py - Label loading → Class definitions: reads classes
utils/tool.py - HTTP routes → Saved annotations: appends results
app.py - HTTP routes → VOC conversion: dispatches conversion
app.py - VOC conversion → Saved annotations: reads results
utils/tool.py - VOC conversion → XML serialization: serializes XML
utils/tool.py - VOC conversion → VOC dataset files: writes VOC files
utils/tool.py - SQL access → MySQL: queries
utils/db_helper.py - HTTP routes → Runtime configuration: configures service
app.py - SQL access → Runtime configuration: reads settings
utils/db_helper.py - SQL access → Logging: logs errors
utils/db_helper.py - Label loading → Logging: logs errors
utils/tool.py