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:
Accusys
2026-08-12 09:16:30 +08:00
parent 2e4559715b
commit 86f1fe8852
3 changed files with 94 additions and 4 deletions
+2 -2
View File
@@ -148,8 +148,8 @@ class FaceProcessorVision:
print(f"[FACE_V2] Running: {' '.join(cmd)}")
# Log face detection settings being passed to swift_face
min_conf = os.environ.get("FACE_MIN_CONFIDENCE", "not set (default 0.75)")
min_size = os.environ.get("FACE_MIN_SIZE", "not set (default 64)")
min_conf = os.environ.get("FACE_MIN_CONFIDENCE", "not set (default 0.5)")
min_size = os.environ.get("FACE_MIN_SIZE", "not set (default 1)")
print(f"[FACE_V2] Settings passed to swift_face: FACE_MIN_CONFIDENCE={min_conf}, FACE_MIN_SIZE={min_size}")
t0 = time.time()
log_path = swift_face_out + ".log"