Skip to content

TypeScript SDK Reference / ROI

Interface: ROI

Represents a region of interest (ROI) extracted from a video frame. Contains the pixel data and bounding box information for a specific facial region.

Properties

boundingBox

boundingBox: { h: number; w: number; x: number; y: number; } | undefined

Bounding box coordinates of the ROI in the frame.


imageData

imageData: Promise<ImageData | undefined>

Promise that resolves to the image data of the ROI.


type

type: PixelROI

The type of ROI (face region).