.. index:: 
  !PortraitProcessor.mouthOpenThreshold Property

.. _id3_face_portrait_processor_mouth_open_threshold_class_member:

===============================================================================
PortraitProcessor.mouthOpenThreshold Property
===============================================================================

Module: :ref:`PortraitProcessor<id3_face_portrait_processor_class>`

Type: int

Definition
----------

Mouth opening threshold.

If the mouth opening score is above this value, the mouth of detected face is definitely open.

.. hint:: Default value is 35.


.. tab-set::

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

    .. code:: Python

      mouth_open_threshold: 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 mouthOpenThreshold => getMouthOpenThreshold();
      set mouthOpenThreshold(int value) => setMouthOpenThreshold(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 mouthOpenThreshold
      {
          get => GetmouthOpenThreshold();
          set => SetmouthOpenThreshold(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 getMouthOpenThreshold() throws FaceException
      public void setMouthOpenThreshold(int mouthOpenThreshold) 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 mouthOpenThreshold: Int
          get {
              return Int(try! getMouthOpenThreshold())
          }
      }


    **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_GetMouthOpenThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * mouthOpenThreshold)
      int id3FacePortraitProcessor_SetMouthOpenThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int mouthOpenThreshold)

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

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

