feat: integrate Rust face_tracker into process_face()
- Add track_faces() call after FaceNet embedding generation - Apply to both Swift and Python processor paths - Add logging for tracking status - Face tracking now runs automatically during face processing - face.json will include trace_id automatically
This commit is contained in:
@@ -287,6 +287,16 @@ pub async fn process_face(
|
|||||||
serde_json::from_str(&json_str).context("Failed to parse FACE output")?;
|
serde_json::from_str(&json_str).context("Failed to parse FACE output")?;
|
||||||
|
|
||||||
result.compute_status();
|
result.compute_status();
|
||||||
|
|
||||||
|
// Execute face tracking
|
||||||
|
tracing::info!("[FACE] Starting face tracking");
|
||||||
|
use crate::core::processor::face_tracker::track_faces;
|
||||||
|
if let Err(e) = track_faces(&mut result, 0.3, 0.7, 100.0, true, None) {
|
||||||
|
tracing::warn!("[FACE] Face tracking failed: {}", e);
|
||||||
|
} else {
|
||||||
|
tracing::info!("[FACE] Face tracking completed successfully");
|
||||||
|
}
|
||||||
|
|
||||||
result.save_to_file(output_path)?;
|
result.save_to_file(output_path)?;
|
||||||
|
|
||||||
tracing::info!(
|
tracing::info!(
|
||||||
|
|||||||
Reference in New Issue
Block a user