fix: restore Apple Vision default detection thresholds (0.5 / 1px)
job_worker.rs was overriding Apple Vision defaults with 0.75/64 even when no face_settings were provided, causing fewer faces to be detected. Now detect all faces with Vision defaults (confidence 0.5, min_size 1px); filter later for display via face_filter settings.
This commit is contained in:
@@ -464,8 +464,8 @@ 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.75);
|
||||
let min_size = fs.get("min_size").and_then(|v| v.as_i64()).unwrap_or(64) as i32;
|
||||
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;
|
||||
tracing::info!(
|
||||
"[WORKER] Job {} face_settings: CONFIDENCE={}, SIZE={}",
|
||||
job.uuid,
|
||||
|
||||
Reference in New Issue
Block a user