.. index:: 
  !PortraitProcessor.expressionSensibility Property

.. _id3_face_portrait_processor_expression_sensibility_class_member:

===============================================================================
PortraitProcessor.expressionSensibility Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_class>`

Type: int

Definition
----------

Sensibility of the expression classifier.

The higher the value, the more sensitive the algorithm will be, meaning that it will be less likely to estimate neutral expression out of the detected face.

.. hint:: Default value is 60.


.. tab-set::

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

    .. code:: Python

      expression_sensibility: 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 expressionSensibility => getExpressionSensibility();
      set expressionSensibility(int value) => setExpressionSensibility(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 expressionSensibility
      {
          get => GetexpressionSensibility();
          set => SetexpressionSensibility(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 getExpressionSensibility() throws FaceException
      public void setExpressionSensibility(int expressionSensibility) 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 expressionSensibility: Int
          get {
              return Int(try! getExpressionSensibility())
          }
      }


    **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 id3FacePortraitProcessor_GetExpressionSensibility (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * expressionSensibility)
      int id3FacePortraitProcessor_SetExpressionSensibility (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int expressionSensibility)

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

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

