You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`MODEL_PATH` (default `models/yolo11n.pt`) – default YOLO model path (used when no CLI flag is provided)
144
-
-`VIDEO_FILE_PATH` (default `video.mp4` relative to the `/backend` folder) – default video file path for the file WebRTC service
153
+
-`TRACKING_IOU_THRESHOLD` (default 0.1) - minimum IoU to match detection to track
154
+
-`TRACKING_MAX_FRAMES_WITHOUT_DETECTION` (default 10) - frames before removing stale tracks
155
+
-`TRACKING_EARLY_TERMINATION_IOU` (default 0.9) - early termination threshold for matching
156
+
-`TRACKING_CONFIDENCE_DECAY` (default 0.1) - confidence decay per interpolation factor
157
+
-`TRACKING_MAX_HISTORY_SIZE` (default 5) - size for history of each tracked object
158
+
-`DETECTION_THRESHOLD` (default 2) - minimum detections before a track becomes active/sent
159
+
-`VIDEO_FILE_PATH` (default `video.mp4` relative to the `/backend` folder) - default video file path for the file WebRTC service
160
+
-`VIDEO_SOURCE_TYPE` (default `webcam`) - video source for the streamer (`webcam` or `file`)
161
+
-`STREAMER_OFFER_URL` (default `http://localhost:8000/offer`) - upstream offer URL for the analyzer
162
+
-`STUN_SERVER` (default `stun:stun.l.google.com:19302`) - STUN server for WebRTC
163
+
-`ICE_GATHERING_TIMEOUT` (default 5.0) - timeout for ICE gathering
164
+
-`CORS_ORIGINS` (default `*`) - comma separated CORS origins
165
+
-`LOG_INTRINSICS` (default false) - log resolved intrinsics at runtime
166
+
-`ANALYZER_SETTINGS_FILE` - path to JSON settings file (default `config/analyzer.json`)
145
167
146
168
> Check `src/backend/common/config.py`.
147
169
170
+
### Analyzer settings file (JSON)
171
+
172
+
The analyzer can load a JSON settings file on startup. If the file does not
173
+
exist, it falls back to the default config values.
174
+
175
+
Default path:
176
+
-`config/analyzer.json`
177
+
178
+
Override the path:
179
+
-`ANALYZER_SETTINGS_FILE=/path/to/analyzer.json`
180
+
181
+
Format:
182
+
- JSON object where keys match the config names in `src/backend/common/config.py`.
183
+
- Values in the JSON override the defaults and environment variables for the analyzer.
184
+
185
+
Example `config/analyzer.json`:
186
+
```json
187
+
{
188
+
"MODEL_PATH": "models/yolo11n.pt",
189
+
"DETECTOR_BACKEND": "onnx",
190
+
"DEPTH_BACKEND": "depth_anything_v2",
191
+
"DETECTOR_CONF_THRESHOLD": 0.35,
192
+
"TRACKING_IOU_THRESHOLD": 0.2
193
+
}
194
+
```
195
+
148
196
149
197
### Calibrate depth and XYZ
150
198
- Set camera intrinsics: if you have calibrated values, export them to env vars (pixels): `CAMERA_FX`, `CAMERA_FY`, `CAMERA_CX`, `CAMERA_CY`. If not, set approximate FOVs: `CAMERA_FOV_X_DEG=78 CAMERA_FOV_Y_DEG=65` (defaults). Intrinsics are derived from the first frame size plus these values.
0 commit comments