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

# FaceTracker.detectionModel Property

Module: FaceTracker

Type: FaceModel

## Definition

Model used to detect and track faces.

Hint

Default value is FaceDetector4B.

Note

Some better accuracy/speed balances can be found by choosing another model.

Python

    detection_model: FaceModel

Exceptions

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

Dart

    FaceModel get detectionModel => getDetectionModel();
    set detectionModel(FaceModel value) => setDetectionModel(value);

Exceptions

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

C#

    public FaceModel detectionModel
    {
        get => GetdetectionModel();
        set => SetdetectionModel(ref value);
    }

Exceptions

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

Java

    public FaceModel getDetectionModel() throws FaceException
    public void setDetectionModel(FaceModel detectionModel) throws FaceException

Exceptions

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

Swift

    public var detectionModel: FaceModel
        get {
            return try! getDetectionModel()
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetDetectionModel (ID3_FACE_TRACKER hFaceTracker, id3FaceModel * eDetectionModel)
    int id3FaceTracker_SetDetectionModel (ID3_FACE_TRACKER hFaceTracker, id3FaceModel eDetectionModel)

Returns

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