fix: correct face detection threshold defaults

- Changed min_confidence from 50.0 to 0.5 (Vision uses 0.0-1.0 range)
- Changed min_size from 32 to 1 (was filtering out all small faces)
- Changed min_capture_quality from 25.0 to 0.25
- Fixes issue where all videos showed 0 faces detected

Root cause: admin_config.rs used wrong defaults (50.0/32) instead of
config.rs constants (0.5/1), causing Vision framework to filter out
ALL faces because confidence threshold exceeded valid range.

Verified: IMG_9449 now correctly detects 191 faces (was 0).
This commit is contained in:
Accusys
2026-09-18 02:42:21 +08:00
parent e4b8ddab94
commit 31d1b4050f
59 changed files with 11110 additions and 6163 deletions
+2 -1
View File
@@ -121,6 +121,7 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
mongo_cache,
redis_cache,
api_state,
admin_config_manager,
};
let protected_routes = Router::new()
@@ -145,7 +146,7 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
.merge(cluster_agent::cluster_agent_routes())
.merge(profile::profile_routes())
.merge(face_filter::face_filter_routes())
.merge(admin_config::admin_config_routes().with_state(admin_config_manager.clone()))
.merge(admin_config::admin_config_routes())
.layer(axum::middleware::from_fn_with_state(
state.api_state.clone(),
unified_auth,