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)
138
-
-`VIDEO_FILE_PATH` (default `video.mp4` relative to the `/backend` folder) – default video file path for the file WebRTC service
155
+
-`TRACKING_IOU_THRESHOLD` (default 0.1) - minimum IoU to match detection to track
156
+
-`TRACKING_MAX_FRAMES_WITHOUT_DETECTION` (default 10) - frames before removing stale tracks
157
+
-`TRACKING_EARLY_TERMINATION_IOU` (default 0.9) - early termination threshold for matching
158
+
-`TRACKING_CONFIDENCE_DECAY` (default 0.1) - confidence decay per interpolation factor
159
+
-`TRACKING_MAX_HISTORY_SIZE` (default 5) - size for history of each tracked object
160
+
-`DETECTION_THRESHOLD` (default 2) - minimum detections before a track becomes active/sent
161
+
-`VIDEO_FILE_PATH` (default `video.mp4` relative to the `/backend` folder) - default video file path for the file WebRTC service
162
+
-`VIDEO_SOURCE_TYPE` (default `webcam`) - video source for the streamer (`webcam` or `file`)
163
+
-`STREAMER_OFFER_URL` (default `http://localhost:8000/offer`) - upstream offer URL for the analyzer
164
+
-`STUN_SERVER` (default `stun:stun.l.google.com:19302`) - STUN server for WebRTC
165
+
-`ICE_GATHERING_TIMEOUT` (default 5.0) - timeout for ICE gathering
166
+
-`CORS_ORIGINS` (default `*`) - comma separated CORS origins
167
+
-`LOG_INTRINSICS` (default false) - log resolved intrinsics at runtime
168
+
-`ANALYZER_SETTINGS_FILE` - path to JSON settings file (default `config/analyzer.json`)
139
169
140
170
> Check `src/backend/common/config.py`.
141
171
172
+
### Analyzer settings file (JSON)
173
+
174
+
The analyzer can load a JSON settings file on startup. If the file does not
175
+
exist, it falls back to the default config values.
176
+
177
+
Default path:
178
+
-`config/analyzer.json`
179
+
180
+
Override the path:
181
+
-`ANALYZER_SETTINGS_FILE=/path/to/analyzer.json`
182
+
183
+
Format:
184
+
- JSON object where keys match the config names in `src/backend/common/config.py`.
185
+
- Values in the JSON override the defaults and environment variables for the analyzer.
186
+
187
+
Example `config/analyzer.json`:
188
+
```json
189
+
{
190
+
"MODEL_PATH": "models/yolo11n.pt",
191
+
"DETECTOR_BACKEND": "onnx",
192
+
"DEPTH_BACKEND": "depth_anything_v2",
193
+
"DETECTOR_CONF_THRESHOLD": 0.35,
194
+
"TRACKING_IOU_THRESHOLD": 0.2
195
+
}
196
+
```
197
+
142
198
143
199
### Calibrate depth and XYZ
144
200
- 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