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:
@@ -5,7 +5,6 @@ pub struct OverlayFlags {
|
||||
pub asr: bool,
|
||||
pub asrx: bool,
|
||||
pub ocr: bool,
|
||||
pub yolo: bool,
|
||||
pub face: bool,
|
||||
pub pose: bool,
|
||||
pub status: bool,
|
||||
@@ -17,7 +16,6 @@ impl Default for OverlayFlags {
|
||||
asr: false,
|
||||
asrx: false,
|
||||
ocr: false,
|
||||
yolo: false,
|
||||
face: false,
|
||||
pose: false,
|
||||
status: true,
|
||||
@@ -31,7 +29,6 @@ impl OverlayFlags {
|
||||
'a' => self.asr = !self.asr,
|
||||
'x' => self.asrx = !self.asrx,
|
||||
'o' => self.ocr = !self.ocr,
|
||||
'y' => self.yolo = !self.yolo,
|
||||
'f' => self.face = !self.face,
|
||||
'p' => self.pose = !self.pose,
|
||||
'b' => self.status = !self.status,
|
||||
|
||||
Reference in New Issue
Block a user