Skip to content

@camera.ui/sdk / camera / PtzAutotrackSettings

Interface: PtzAutotrackSettings

Defined in: camera/detection.ts:201

PTZ autotracking settings: the camera follows detected objects automatically.

Properties

activeHours?

optional activeHours?: TimeWindow

Defined in: camera/detection.ts:245

Hours the camera is allowed to follow. Outside them autotracking rests.


enabled

enabled: boolean

Defined in: camera/detection.ts:203

Whether PTZ autotracking is enabled.


homeWaitMs

homeWaitMs: number

Defined in: camera/detection.ts:230

How long to wait (ms) without a target before returning home.


leadMs

leadMs: number

Defined in: camera/detection.ts:220

Motion prediction (0 - 4000): aim this many milliseconds ahead along the target's measured velocity, covering the time the camera needs to move and settle. 0 disables prediction.


maxTargetSize?

optional maxTargetSize?: number

Defined in: camera/detection.ts:243

Largest target to keep following, as a fraction of the frame height (0 - 1). Above it the object is so close that the picture says nothing, so the camera holds its position until it moves away again. 0 disables the limit.


minConfidence

minConfidence: number

Defined in: camera/detection.ts:207

Minimum detection confidence to track (0.3 - 1.0).


minTargetSize?

optional minTargetSize?: number

Defined in: camera/detection.ts:236

Smallest target to start following, as a fraction of the frame height (0 - 0.5). Below it the object is too far away to be worth a move. 0 disables the limit.


panRate

panRate: number

Defined in: camera/detection.ts:226

Camera pan-rate calibration (0.1 - 3): assumed pan travel at full motor speed in normalized frame-widths per second. Lower it if the camera stops short of the target, raise it if it overshoots.


returnToHome

returnToHome: boolean

Defined in: camera/detection.ts:228

Return to home position when no target is found for homeWaitMs.


targetLabels

targetLabels: string[]

Defined in: camera/detection.ts:205

Object labels to track (e.g. 'person', 'vehicle').


trackingSpeed

trackingSpeed: number

Defined in: camera/detection.ts:214

How aggressively the camera moves to re-center the target (1 - 5). Higher reaches full pan/tilt speed at a smaller off-center error.


triggerDeadZone

triggerDeadZone: number

Defined in: camera/detection.ts:209

Dead zone around frame center (0 - 0.3). No motor command while the target is inside this zone.