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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user