fix: FS VLM Summary 寫入 trace_profile.json + 新增 {uuid}.fs_vlm.json 彙總檔
- label 欄位改 Option<String>:修正 rust_store_traced_faces 寫出 null 導致
FaceTraceProfile::load() 反序列化失敗、VLM summary 無法寫回 JSON 的問題
- VLM summary 寫入從『僅新產生時』改為『任何情況都同步 JSON』:
DB 已有但 JSON 缺漏時重跑也會補寫
- 新增 write_vlm_summary_index():VLM 完成後產生 {uuid}.fs_vlm.json,
含 22 筆 trace_id/vlm_summary/key_face/bbox/best_frame
- processor-json?processor=vlm_summary 優先讀 fs_vlm.json,DB 彙總為 fallback
- backfill 現有 22 筆 trace_profile.json + 產生 fs_vlm.json
This commit is contained in:
@@ -529,7 +529,8 @@ pub struct FaceTraceProfile {
|
||||
pub version: String,
|
||||
pub file_uuid: String,
|
||||
pub trace_id: i64,
|
||||
pub label: String,
|
||||
#[serde(default)]
|
||||
pub label: Option<String>,
|
||||
pub frame_count: i64,
|
||||
pub start_frame: i64,
|
||||
pub end_frame: i64,
|
||||
@@ -615,7 +616,7 @@ impl FaceTraceProfile {
|
||||
version: PROFILE_VERSION.to_string(),
|
||||
file_uuid: file_uuid.to_string(),
|
||||
trace_id,
|
||||
label: label.to_string(),
|
||||
label: Some(label.to_string()),
|
||||
frame_count,
|
||||
start_frame,
|
||||
end_frame,
|
||||
|
||||
Reference in New Issue
Block a user