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

# FaceTracker.threadCount Property

Module: FaceTracker

Type: int

## Definition

Number of threads to be used for face detection and tracking.

Hint

Default value is 1. Allocating more than one thread can increase the speed of the process.

Python

    thread_count: int

Exceptions

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

Dart

    int get threadCount => getThreadCount();
    set threadCount(int value) => setThreadCount(value);

Exceptions

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

C#

    public int threadCount
    {
        get => GetthreadCount();
        set => SetthreadCount(ref value);
    }

Exceptions

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

Java

    public int getThreadCount() throws FaceException
    public void setThreadCount(int threadCount) throws FaceException

Exceptions

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

Swift

    public var threadCount: Int
        get {
            return Int(try! getThreadCount())
        }
    }

Exceptions

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

C

    int id3FaceTracker_GetThreadCount (ID3_FACE_TRACKER hFaceTracker, int * threadCount)
    int id3FaceTracker_SetThreadCount (ID3_FACE_TRACKER hFaceTracker, int threadCount)

Returns

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