Skip to content

Source

app.domain.detection.source

View source code

Origin classification for bounding boxes (detection/tracking/manual).

See Also
  • Box — carries the source value with box data
  • BBoxViewModel — exposes box source to presentation code

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

BoxSource

Bases: str, Enum

Source/origin of a bounding detection — used to filter and identify detection type.

Note

DETECTION marks YOLO inference output in Layers A and B, TRACKING marks tracker-generated boxes in Layers C and D, including strategy-specific values such as TRACKING_BOTSORT, and MANUAL marks user-created boxes that should be preserved during layer resets and filtering operations.

Example

detection.source = BoxSource.DETECTION # From inference detection.source = BoxSource.MANUAL # User-created (never filtered)

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

DETECTION = 'Detection' class-attribute instance-attribute

MANUAL = 'Manual' class-attribute instance-attribute

TRACKING = 'Tracking' class-attribute instance-attribute

TRACKING_BOTSORT = 'Track (BoT-SORT)' class-attribute instance-attribute

TRACKING_BYTETRACK = 'Track (ByteTrack)' class-attribute instance-attribute

TRACKING_DEEPSORT = 'Track (DeepSORT)' class-attribute instance-attribute

TRACKING_DUMMY = 'Track (Dummy)' class-attribute instance-attribute

TRACKING_HUNGARIAN = 'Track (Hungarian)' class-attribute instance-attribute