DetectedFace.getPortraitBounds Method¶
Module: DetectedFace
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 doublein Ratio between eye distance and image width. Must be in the range ]0;1[. Default recommended value is 0.25.
eyeImageHeightRatio doublein Ratio between eye distance to top and image height. Must be in the range ]0;1[. Default recommended value is 0.45.
imageRatio doublein 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.