Skip to content

TypeScript SDK Reference / FaceDetectionRegionAbs

Type Alias: FaceDetectionRegionAbs

FaceDetectionRegionAbs = object

Defines the region (in absolute pixel coordinates) of the captured video frame that is to be used for face detection. This allows restricting face detection to a specific area of the frame, improving performance and accuracy.

Example

ts
const region: FaceDetectionRegionAbs = {
  x: 100,
  y: 50,
  width: 400,
  height: 300
};

Properties

height

height: number

Height of the region in pixels.


width

width: number

Width of the region in pixels.


x

x: number

X-coordinate of the top-left corner in pixels.


y

y: number

Y-coordinate of the top-left corner in pixels.