feat: improve face clustering and add trace-profile API fallback
Core changes: - Face clustering threshold: 0.35 → 0.15 (better male/female separation) - Add auto-filtering for low-quality clusters (face_count<20, bbox_area>150000) - Add filesystem fallback for trace-profile API Face clustering improvements: - Correctly separates male and female faces - Filters hand detections and isolated faces - Result: 2 persons (186 male, 174 female) vs 4 persons before Trace profile API: - GET /api/v1/trace-profile?file_uuid=X&trace_id=Y - Returns data from PostgreSQL or filesystem fallback - Simplifies frontend: no need to know filesystem structure - Fixes Studio 'trace profile not found' error Issue: docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md
This commit is contained in:
@@ -908,6 +908,20 @@ impl ProcessorPool {
|
||||
total_faces: 0,
|
||||
})
|
||||
}
|
||||
ProcessorType::FaceTrace => {
|
||||
return Ok(ProcessorOutput {
|
||||
data: serde_json::Value::Null,
|
||||
chunks_produced: 0,
|
||||
frames_processed: 0,
|
||||
total_frames,
|
||||
retry_count: 0,
|
||||
pid: 0,
|
||||
asr_status: None,
|
||||
segment_count: 0,
|
||||
face_status: None,
|
||||
total_faces: 0,
|
||||
});
|
||||
}
|
||||
ProcessorType::Pose => {
|
||||
let result = processor::process_pose(
|
||||
video_path,
|
||||
|
||||
Reference in New Issue
Block a user