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:
@@ -145,6 +145,13 @@ pub static MONGODB_DATABASE: Lazy<String> =
|
||||
pub static QDRANT_COLLECTION: Lazy<String> =
|
||||
Lazy::new(|| env::var("QDRANT_COLLECTION").unwrap_or_else(|_| "momentry_rule1".to_string()));
|
||||
|
||||
// ─── Face detection thresholds (single source of truth) ───
|
||||
// Defaults mirror Apple Vision native detection (0.5 confidence / 1px min size).
|
||||
// Keep scripts/swift_processors/swift_face.swift and scripts/face_processor.py in sync.
|
||||
pub const FACE_MIN_CONFIDENCE_DEFAULT: f64 = 0.5; // detection threshold (0-1)
|
||||
pub const FACE_MIN_SIZE_DEFAULT: i32 = 1; // detection min face size (px)
|
||||
pub const FACE_FILTER_CONFIDENCE_PCT_DEFAULT: f64 = 50.0; // videos.face_filter (0-100%)
|
||||
|
||||
pub mod processor {
|
||||
use super::*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user