feat(player): add ASR/YOLO overlays, zoom, and text rendering

- Add TTF text rendering for subtitles and YOLO labels
- Implement ASR subtitle display with background
- Add YOLO bbox rendering with class labels
- Add zoom in/out (+/-) and reset (Backquote)
- Add frame/time info display
- Fix YOLO metadata parsing for actual file format
- Add Shift+Arrow for 1-second seek
This commit is contained in:
accusys
2026-03-19 01:33:46 +08:00
parent 0b75987fd0
commit 5587e6a67a
5272 changed files with 103480 additions and 45 deletions

View File

@@ -41,12 +41,23 @@ pub struct YoloMetadata {
pub status: Option<String>,
pub total_detections: u64,
pub avg_detections_per_frame: f64,
#[serde(default)]
pub auto_save_interval: Option<u32>,
#[serde(default)]
pub processing_time: Option<f64>,
#[serde(default)]
pub avg_time_per_frame: Option<f64>,
#[serde(default)]
pub last_saved_at: Option<String>,
#[serde(default)]
pub completed_at: Option<String>,
#[serde(default)]
pub auto_save_count: Option<u32>,
}
#[derive(Debug, Clone, Deserialize)]
pub struct YoloData {
pub metadata: YoloMetadata,
#[serde(flatten)]
pub frames: HashMap<String, FrameData>,
}