PortraitProcessor.minimumHeadWidthRatio Property

Module: PortraitProcessor

Type: int

Definition

Value indicating if the image width is conform to the (image width / head width) ratio of 7:5.

The head width is defined as the distance between the left and right ears.

For ICAO compliance, the value must be in the range 50 to 75.

Hint

Default value is 50.

minimum_head_width_ratio: int

Exceptions

An error has occurred during Face Library execution.
int get minimumHeadWidthRatio => getMinimumHeadWidthRatio();
set minimumHeadWidthRatio(int value) => setMinimumHeadWidthRatio(value);

Exceptions

An error has occurred during Face Library execution.
public int minimumHeadWidthRatio
{
    get => GetminimumHeadWidthRatio();
    set => SetminimumHeadWidthRatio(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getMinimumHeadWidthRatio() throws FaceException
public void setMinimumHeadWidthRatio(int minimumHeadWidthRatio) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var minimumHeadWidthRatio: Int
    get {
        return Int(try! getMinimumHeadWidthRatio())
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetMinimumHeadWidthRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * minimumHeadWidthRatio)
int id3FacePortraitProcessor_SetMinimumHeadWidthRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int minimumHeadWidthRatio)

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.