Skip to content

Layer Group

app.domain.video.layer_group

View source code

Data tab enumeration for UI tab selection.

See Also

Layer: Domain. Context: Defines application concepts independently of UI and infrastructure implementations.

VideoDataLayerGroup

Bases: int, Enum

Enumeration for the two main data tabs in the UI.

Note

DETECTION maps to Layer B for user-edited detections and TRACKING maps to Layer D for user-edited tracks. The enum helps route operations to the correct service, determine the active data table, and control which boxes are shown in the preview container.

Example

if tab == VideoDataLayerGroup.TRACKING: tracking_service.delete_tracks(s_id, keys) else: detection_service.delete_detections(s_id, keys)

Layer: Domain. Context: Represents application concepts without UI or infrastructure dependencies.

DETECTION = 0 class-attribute instance-attribute

TRACKING = 1 class-attribute instance-attribute