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

# PortraitProcessor.faceEncodingModel Property

Module: PortraitProcessor

Type: FaceModel

## Definition

Model used to create features and assess consistancy among views of a given face.

Hint

Default value is `FaceEncoder9B`. Some better accuracy/speed balances can be found by choosing another model.

Python

    face_encoding_model: FaceModel

Exceptions

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

Dart

    FaceModel get faceEncodingModel => getFaceEncodingModel();
    set faceEncodingModel(FaceModel value) => setFaceEncodingModel(value);

Exceptions

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

C#

    public FaceModel faceEncodingModel
    {
        get => GetfaceEncodingModel();
        set => SetfaceEncodingModel(ref value);
    }

Exceptions

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

Java

    public FaceModel getFaceEncodingModel() throws FaceException
    public void setFaceEncodingModel(FaceModel faceEncodingModel) throws FaceException

Exceptions

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

Swift

    public var faceEncodingModel: FaceModel
        get {
            return try! getFaceEncodingModel()
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetFaceEncodingModel (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, id3FaceModel * eFaceEncodingModel)
    int id3FacePortraitProcessor_SetFaceEncodingModel (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, id3FaceModel eFaceEncodingModel)

Returns

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