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:
@@ -47,6 +47,14 @@ path = "src/bin/rust_face_processor.rs"
|
||||
name = "rust_asrx"
|
||||
path = "src/bin/rust_asrx.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "rust_asr_asrx"
|
||||
path = "src/bin/rust_asr_asrx.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "rust_whisper_rs"
|
||||
path = "src/bin/rust_whisper_rs.rs"
|
||||
|
||||
[dependencies]
|
||||
ort = { version = "2.0.0-rc.13", features = ["download-binaries"] }
|
||||
hound = "3.5"
|
||||
@@ -59,10 +67,12 @@ clap = { version = "4.0", features = ["derive"] }
|
||||
image = "0.25"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
async-trait = "0.1"
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
reqwest = { version = "0.12", features = ["json", "blocking"] }
|
||||
base64 = "0.22"
|
||||
regex = "1.0"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
uuid = { version = "1.0", features = ["v4"] }
|
||||
ureq = { version = "2.9", features = ["json"] }
|
||||
whisper-rs = { version = "0.16", features = ["metal"] }
|
||||
|
||||
[workspace]
|
||||
|
||||
Reference in New Issue
Block a user