Skip to content

@camera.ui/sdk / camera / DetectionLine

Interface: DetectionLine

Defined in: camera/detection.ts:35

Detection line configuration. Defines a virtual tripwire for line crossing detection. The two points define grab-handle positions; the actual crossing line is perpendicular through their midpoint.

Properties

color

color: string

Defined in: camera/detection.ts:45

Line display color (hex)


direction

direction: LineDirection

Defined in: camera/detection.ts:41

Which crossing direction(s) trigger events


labels

labels: ("motion" | "audio" | "person" | "vehicle" | "animal" | "package")[]

Defined in: camera/detection.ts:43

Labels to filter (empty = all labels)


name

name: string

Defined in: camera/detection.ts:37

Line display name


points

points: [Point, Point]

Defined in: camera/detection.ts:39

Grab-handle positions (0–100%). Crossing line is perpendicular through midpoint.