Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# 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.

Python

    minimum_head_width_ratio: int

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int get minimumHeadWidthRatio => getMinimumHeadWidthRatio();
    set minimumHeadWidthRatio(int value) => setMinimumHeadWidthRatio(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int minimumHeadWidthRatio
    {
        get => GetminimumHeadWidthRatio();
        set => SetminimumHeadWidthRatio(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int getMinimumHeadWidthRatio() throws FaceException
    public void setMinimumHeadWidthRatio(int minimumHeadWidthRatio) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var minimumHeadWidthRatio: Int
        get {
            return Int(try! getMinimumHeadWidthRatio())
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    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.