TrackedFace.getPortraitBounds Method

Module: TrackedFace

Definition

Gets the bounding box of the detected face for ICAO portrait cropping.

This method shall be used to ensure compliance with the ICAO standard.

Rectangle getPortraitBounds(double eyeImageWidthRatio, double eyeImageHeightRatio, double imageRatio)

Parameters

eyeImageWidthRatio double
in Ratio between eye distance and image width. Must be in the range ]0;1[. Default recommended value is 0.25.

eyeImageHeightRatio double
in Ratio between eye distance to top and image height. Must be in the range ]0;1[. Default recommended value is 0.45.

imageRatio double
in Ratio between image height and image width. Default recommended value is 1.33 (4/3).

Returns

The portrait bounds of the detected face.

Exceptions

An error has occurred during Face Library execution.