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:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user