feat(overlay): update YOLO loader with proper metadata fields
This commit is contained in:
@@ -41,12 +41,23 @@ pub struct YoloMetadata {
|
|||||||
pub status: Option<String>,
|
pub status: Option<String>,
|
||||||
pub total_detections: u64,
|
pub total_detections: u64,
|
||||||
pub avg_detections_per_frame: f64,
|
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)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct YoloData {
|
pub struct YoloData {
|
||||||
pub metadata: YoloMetadata,
|
pub metadata: YoloMetadata,
|
||||||
#[serde(flatten)]
|
|
||||||
pub frames: HashMap<String, FrameData>,
|
pub frames: HashMap<String, FrameData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user