fix: add min_capture_quality to FaceFilterSettings + trace profile fixes
- Add min_capture_quality to FaceFilterSettings (file_profile.rs) - Fix store_traced_faces.py: load embeddings from Qdrant with_vector=True - Fix face_tracker.py: force new traces when frame_gap > 30 - Fix backfill_trace_profiles.py: key_frame select=eq(n,N), bbox scaling, best_frame - Add best_frame to FaceTraceProfile (Rust + Python) - Fix min_capture_quality persistence in file-profile API
This commit is contained in:
@@ -21,7 +21,9 @@ static FACE_TRACE_INFLIGHT: LazyLock<tokio::sync::Mutex<std::collections::HashSe
|
||||
LazyLock::new(|| tokio::sync::Mutex::new(std::collections::HashSet::new()));
|
||||
|
||||
use crate::core::chunk::rule1_ingest;
|
||||
use crate::core::config::OUTPUT_DIR;
|
||||
use crate::core::config::{
|
||||
FACE_MIN_CONFIDENCE_DEFAULT, FACE_MIN_SIZE_DEFAULT, OUTPUT_DIR,
|
||||
};
|
||||
use crate::core::db::qdrant_db::QdrantDb;
|
||||
use crate::core::db::{
|
||||
schema, MonitorJobStatus, PostgresDb, ProcessorJobStatus, RedisClient, VectorPayload,
|
||||
@@ -464,8 +466,14 @@ impl JobWorker {
|
||||
// Read face_settings from job and set environment variables for face processor
|
||||
let mut face_settings_backup: Option<(String, String)> = None;
|
||||
if let Some(ref fs) = job.face_settings {
|
||||
let min_confidence = fs.get("min_confidence").and_then(|v| v.as_f64()).unwrap_or(0.5);
|
||||
let min_size = fs.get("min_size").and_then(|v| v.as_i64()).unwrap_or(1) as i32;
|
||||
let min_confidence = fs
|
||||
.get("min_confidence")
|
||||
.and_then(|v| v.as_f64())
|
||||
.unwrap_or(FACE_MIN_CONFIDENCE_DEFAULT);
|
||||
let min_size = fs
|
||||
.get("min_size")
|
||||
.and_then(|v| v.as_i64())
|
||||
.unwrap_or(FACE_MIN_SIZE_DEFAULT as i64) as i32;
|
||||
tracing::info!(
|
||||
"[WORKER] Job {} face_settings: CONFIDENCE={}, SIZE={}",
|
||||
job.uuid,
|
||||
|
||||
Reference in New Issue
Block a user