vrfefavr commited on
Commit
4b6b6f6
·
verified ·
1 Parent(s): 46f5685

Update core/config.py

Browse files
Files changed (1) hide show
  1. core/config.py +6 -7
core/config.py CHANGED
@@ -1,18 +1,17 @@
1
  import os
2
 
3
  # AI Configuration - Smart Consensus Engine
4
- DETECTOR = "retinaface"
5
- MODELS = ["ArcFace", "Facenet512"]
6
  THRESHOLDS = {
7
- "ArcFace": 0.65, # Standard High Security
8
  "Facenet512": 0.40 # Standard High Security
9
  }
10
 
11
- # The absolute gate: Average score across models must be > 65%
12
- REQUIRED_AVERAGE_CONFIDENCE = 65.0
13
 
14
- # Advanced Quality Gate (Upgraded for 720p)
15
- MIN_FACE_AREA = 12000 # Rejects low-detail faces (requires more pixel data)
16
 
17
  # Application Configuration
18
  COOL_DOWN_SEC = 5
 
1
  import os
2
 
3
  # AI Configuration - Smart Consensus Engine
4
+ DETECTOR = "mediapipe" # FASTEST for real-time webcams
5
+ MODELS = ["Facenet512"] # DEEPEST single model (512-dimensional vector)
6
  THRESHOLDS = {
 
7
  "Facenet512": 0.40 # Standard High Security
8
  }
9
 
10
+ # The absolute gate: Confidence must be > 70%
11
+ REQUIRED_AVERAGE_CONFIDENCE = 70.0
12
 
13
+ # Advanced Quality Gate (Optimized for 480p)
14
+ MIN_FACE_AREA = 5000 # Adjusted for 640x480 frame size
15
 
16
  # Application Configuration
17
  COOL_DOWN_SEC = 5