fix: add parameter logging for face detection settings

- swift_face.swift: Log MIN_CONFIDENCE and MIN_SIZE at startup
- face_processor.py: Log settings passed to swift_face subprocess
- executor.rs: Log face settings being passed to Python subprocesses (4 run methods)
- Enables debugging of face detection parameter chain

Test results:
- FACE_MIN_CONFIDENCE=0.5, FACE_MIN_SIZE=1 → 392 faces (195 frames with 2 faces)
- SwiftFace log shows: MIN_CONFIDENCE=0.5, MIN_SIZE=1
- face_processor.py log shows: Settings passed to swift_face: FACE_MIN_CONFIDENCE=0.5, FACE_MIN_SIZE=1
This commit is contained in:
Accusys
2026-08-08 16:10:47 +08:00
parent a06973484b
commit 8dada662e8
3 changed files with 55 additions and 22 deletions
+4
View File
@@ -147,6 +147,10 @@ class FaceProcessorVision:
cmd.extend(["--uuid", self.uuid])
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)")
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"
log_f = open(log_path, "w")