How shanmukh-villuri/yolo-3d works
YOLO-3D processes video or webcam frames into tracked detections, metric depth, pseudo-3D boxes and a meter-scaled Bird’s Eye View, then writes annotated video and per-object distances to CSV. run.py coordinates the main workflow; detection, depth estimation and 3D visualization are implemented in separate modules. The README documents the depth-association and output capabilities. Some run.py implementation is omitted, so edges involving those stages rely on its indexed references or README documentation; optional camera calibration is shown without an unverified connection.
Main entry points: run.py Frame orchestrator · bbox3d_utils.py 3D box estimator · detection_model.py YOLO detection · depth_model.py Metric depth
Components 11
Frame workflow
- Frame orchestrator
run.py - Depth association
run.py - Camera calibration
load_camera_params.py
Inference models
- YOLO detection
detection_model.py - Metric depth
depth_model.py
3D visualization
- 3D box estimator
bbox3d_utils.py - Box rendering
bbox3d_utils.py - Meter-scaled BEV
bbox3d_utils.py
Other components
- Video or webcam
- Annotated video
- Distance CSV
Connections 10
- Video or webcam → Frame orchestrator: supplies frames
README.md - Frame orchestrator → YOLO detection: detects and tracks
run.py - Frame orchestrator → Metric depth: estimates depth
run.py - Frame orchestrator → Depth association: samples depth
README.md - Depth association → 3D box estimator: builds 3D boxes
README.md - Frame orchestrator → 3D box estimator: cleans trackers
run.py - Frame orchestrator → Box rendering: renders annotations
README.md - Frame orchestrator → Meter-scaled BEV: adds BEV overlay
README.md - Frame orchestrator → Annotated video: writes frames
run.py - Frame orchestrator → Distance CSV: logs distances
run.py