TrackedFace.getExpandedBounds Method

Module: TrackedFace

Definition

Gets the bounding box around the detected face with specified aspect ratio and specified margin.

Rectangle getExpandedBounds(double aspectRatio, double margin)

Parameters

aspectRatio double
in Aspect ratio of the bounding box. Default recommended value is 1.33 (4/3).

margin double
in Relative margin around the detected face. Recommended value is 0.5.

Returns

The portrait bounds.

Exceptions

An error has occurred during Face Library execution.