Skip to main content

FaceRect

Rectangle representing a face region in an image. Defines the position and size of a detected face.

type FaceRect = {
x: number;
y: number;
width: number;
height: number;
};

Properties

PropertyTypeDescription
xnumberX-coordinate of the top-left corner of the rectangle
ynumberY-coordinate of the top-left corner of the rectangle
widthnumberWidth of the rectangle
heightnumberHeight of the rectangle