.. index:: 
  !FaceEncoder.model Property

.. _id3_face_face_encoder_model_class_member:

===============================================================================
FaceEncoder.model Property
===============================================================================

Module: :ref:`FaceEncoder<id3_face_face_encoder_class>`

Type: :ref:`FaceModel<id3_face_face_model_enum>`

Definition
----------

Model used to create templates.

.. hint:: Default value is FaceEncoder9A 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.


.. tab-set::

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

    .. code:: Python

      model: FaceModel


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      FaceModel get model => getModel();
      set model(FaceModel value) => setModel(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 FaceModel model
      {
          get => Getmodel();
          set => Setmodel(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 FaceModel getModel() throws FaceException
      public void setModel(FaceModel model) 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 model: FaceModel
          get {
              return try! getModel()
          }
      }


    **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 id3FaceEncoder_GetModel (ID3_FACE_ENCODER hFaceEncoder, id3FaceModel * eModel)
      int id3FaceEncoder_SetModel (ID3_FACE_ENCODER hFaceEncoder, id3FaceModel eModel)

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

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

