.. index:: 
  !FaceTracker.threadCount Property

.. _id3_face_face_tracker_thread_count_class_member:

===============================================================================
FaceTracker.threadCount Property
===============================================================================

Module: :ref:`FaceTracker<id3_face_face_tracker_class>`

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.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      thread_count: int


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

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


    **Exceptions**

      .. line-block::

        :ref:`FaceException<id3_face_face_exception>`
        An error has occurred during Face Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

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

    **Returns**
   
      .. line-block::

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

