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

# PortraitProcessor.maximumHeadHeightRatio Property

Module: PortraitProcessor

Type: int

## Definition

Maximum distance between the base of the chin and the crown is less than 80% of the total height of the image.

For ICAO compliance, this distance must be in the range 60 to 90.

Hint

Default value is 90.

Python

    maximum_head_height_ratio: int

Exceptions

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

Dart

    int get maximumHeadHeightRatio => getMaximumHeadHeightRatio();
    set maximumHeadHeightRatio(int value) => setMaximumHeadHeightRatio(value);

Exceptions

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

C#

    public int maximumHeadHeightRatio
    {
        get => GetmaximumHeadHeightRatio();
        set => SetmaximumHeadHeightRatio(ref value);
    }

Exceptions

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

Java

    public int getMaximumHeadHeightRatio() throws FaceException
    public void setMaximumHeadHeightRatio(int maximumHeadHeightRatio) throws FaceException

Exceptions

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

Swift

    public var maximumHeadHeightRatio: Int
        get {
            return Int(try! getMaximumHeadHeightRatio())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetMaximumHeadHeightRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * maximumHeadHeightRatio)
    int id3FacePortraitProcessor_SetMaximumHeadHeightRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int maximumHeadHeightRatio)

Returns

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