.. index:: 
  !Portrait.backgroundUniformity Property

.. _id3_face_portrait_background_uniformity_class_member:

===============================================================================
Portrait.backgroundUniformity Property
===============================================================================

Module: :ref:`Portrait<id3_face_portrait_class>`

Type: :ref:`BackgroundUniformity<id3_face_background_uniformity_struct>`

Definition
----------

Result of the background uniformity computation.


.. tab-set::

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

    .. code:: Python

      background_uniformity: BackgroundUniformity


    **Exceptions**

      .. line-block::

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

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

    .. code:: Dart

      BackgroundUniformity get backgroundUniformity => getBackgroundUniformity();


    **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 BackgroundUniformity backgroundUniformity
      {
          get => GetbackgroundUniformity();
      }


    **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 BackgroundUniformity getBackgroundUniformity() 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 backgroundUniformity: BackgroundUniformity
          get {
              return try! getBackgroundUniformity()
          }
      }


    **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 id3FacePortrait_GetBackgroundUniformity (ID3_FACE_PORTRAIT hPortrait, id3FaceBackgroundUniformity * sBackgroundUniformity)

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

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

