Session Settings View Model
app.domain.views.session_settings_view_modelModule for session settings view model; defines application concepts without UI or infrastructure dependencies.
See Also
ProcessingSettings— underlying session processing optionsPreferencesHandler— coordinates settings presented to the user
Layer: Domain. Context: Defines application concepts without ui or infrastructure dependencies at this architectural boundary.
SessionSettingsViewModel
dataclass
UI-ready snapshot of settings (pre-formatted for widget binding).
| ATTRIBUTE | DESCRIPTION |
|---|---|
detection_model_name |
Selected detection model name.
TYPE:
|
min_detection_confidence |
Detection confidence threshold.
TYPE:
|
chosen_labels |
Comma-separated labels string for direct widget binding.
TYPE:
|
tracking_strategy |
Selected tracking strategy name.
TYPE:
|
tracking_source |
Layer used as tracker input.
TYPE:
|
reid_embedding_dim |
Re-ID embedding size for tracking.
TYPE:
|
min_iou |
IoU threshold for track matching.
TYPE:
|
min_tracker_confidence |
Confidence floor for tracked boxes.
TYPE:
|
confidence_decay |
Per-frame confidence decay value.
TYPE:
|
offline_stitching_enabled |
Whether broken tracks are bridged offline.
TYPE:
|
max_stitch_gap |
Maximum number of missed frames to bridge.
TYPE:
|
gsi_smoothness |
Gaussian interpolation lengthscale.
TYPE:
|
privacy_features_enabled |
Whether conservative privacy rules are active.
TYPE:
|
resist_box_shrinking |
Whether track boxes resist sudden contractions.
TYPE:
|
shrink_resistance |
Damping factor for shrinking box dimensions.
TYPE:
|
pre_detection_padding_sec |
Backfill duration before the first detection.
TYPE:
|
post_detection_padding_sec |
Hold duration after the last detection.
TYPE:
|
box_safety_padding_pct |
Proportional outward privacy-box inflation.
TYPE:
|
draw_boxes |
Whether detection outlines should be rendered.
TYPE:
|
box_border_width |
Preview box outline width in pixels.
TYPE:
|
show_preview_mask |
Whether the export mask is overlaid in preview.
TYPE:
|
preview_blur_enabled |
Whether blur is rendered live in preview.
TYPE:
|
blur_enabled |
Whether blur is enabled for export.
TYPE:
|
blur_strength |
Blur intensity used for rendering.
TYPE:
|
Note
Unlike ProcessingSettings, chosen_labels is pre-joined into a
comma-separated string such as "person, cat, dog" so it can be
assigned directly to UI widgets without parsing. Created when a session
is opened or switched, treated as read-only by domain code, and rebuilt
from ProcessingSettings whenever the UI needs a fresh snapshot.
Layer: Domain. Context: Represents application concepts without UI or infrastructure dependencies.