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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user