type alias AiDetectCfg

AI detection settings for one target type, in <AiDetectCfg>.

Properties

optional
chn: number

Zero-based channel.

optional
type:
"people"
| "vehicle"
| "face"
| "dog_cat"
| "other"
| "package"

The target type these settings apply to. package is Video Doorbell PoE only.

optional
sensitivity: number

Detection sensitivity.

optional
stayTime: number

How long a target must stay before it triggers.

optional
minTargetHeight: number

Smallest target height, as a fraction of the frame.

optional
minTargetWidth: number

Smallest target width, as a fraction of the frame.

optional
maxTargetHeight: number

Largest target height, as a fraction of the frame.

optional
maxTargetWidth: number

Largest target width, as a fraction of the frame.

optional
width: number

Detection grid columns, 1..155.

optional
height: number

Detection grid rows, 1..100.

optional
area: string

Detection grid as base64, one byte per cell, row by row.

Usage

import { type AiDetectCfg } from "protocol/params/mod.ts";