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

# FaceDetector.model Property

Module: FaceDetector

Type: FaceModel

## Definition

Model used to detect and track faces.

Hint

Default value is FaceDetector4A which is the best available algorithm in this SDK in terms of accuracy. Some better accuracy/speed balances can be found by choosing another model.

Python

    model: FaceModel

Exceptions

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

Dart

    FaceModel get model => getModel();
    set model(FaceModel value) => setModel(value);

Exceptions

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

C#

    public FaceModel model
    {
        get => Getmodel();
        set => Setmodel(ref value);
    }

Exceptions

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

Java

    public FaceModel getModel() throws FaceException
    public void setModel(FaceModel model) throws FaceException

Exceptions

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

Swift

    public var model: FaceModel
        get {
            return try! getModel()
        }
    }

Exceptions

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

C

    int id3FaceDetector_GetModel (ID3_FACE_DETECTOR hFaceDetector, id3FaceModel * eModel)
    int id3FaceDetector_SetModel (ID3_FACE_DETECTOR hFaceDetector, id3FaceModel eModel)

Returns

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