type alias TargetRect

Where a smart event saw its target, from <TargetRect>.

AcuSense and DeepinView cameras send it with every smart alert, in the normalized 1000 x 1000 screen space. The rule's own polygon may be left out at the same time, leaving AlertRegion.coordinates empty.

Properties

x: number

<X> of the top-left corner.

y: number

<Y> of the top-left corner.

width: number

<width>.

height: number

<height>.

Usage

import { type TargetRect } from ".";