.. index:: 
  !FaceIndexer.create Method
  
.. _id3_face_face_indexer_create_class_method:

===============================================================================
FaceIndexer.create Method
===============================================================================

Module: :ref:`FaceIndexer<id3_face_face_indexer_class>`

Definition
----------

Creates an empty face indexer


.. tab-set::

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

      .. code:: Python

        @staticmethod
        create(maximum_template_count: int, format: FaceTemplateFormat) -> FaceIndexer

      **Parameters**

        .. line-block::

          ``maximum_template_count`` int
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``format`` :ref:`FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

          :ref:`FaceIndexer<id3_face_face_indexer_class>`
          The newly created face indexer.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format)

      **Parameters**

        .. line-block::

          ``maximumTemplateCount`` int
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``format`` :ref:`FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

          :ref:`FaceIndexer<id3_face_face_indexer_class>`
          The newly created face indexer.

      **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 static FaceIndexer Create(int maximumTemplateCount, FaceTemplateFormat format)

      **Parameters**

        .. line-block::

          ``maximumTemplateCount`` int
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``format`` :ref:`FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

          :ref:`FaceIndexer<id3_face_face_indexer_class>`
          The newly created face indexer.

      **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 static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format) throws FaceException

      **Parameters**

        .. line-block::

          ``maximumTemplateCount`` int
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``format`` :ref:`FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

          :ref:`FaceIndexer<id3_face_face_indexer_class>`
          The newly created face indexer.

      **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 static func create(maximumTemplateCount: Int32, format: FaceTemplateFormat) throws -> FaceIndexer

      **Parameters**

        .. line-block::

          ``maximumTemplateCount`` Int32
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``format`` :ref:`FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

          :ref:`FaceIndexer<id3_face_face_indexer_class>`
          The newly created face indexer.

      **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 id3FaceIndexer_Create (
            ID3_FACE_INDEXER hFaceIndexer, 
            int maximumTemplateCount, 
            id3FaceTemplateFormat eFormat)

      **Parameters**

        .. line-block::

          ``hFaceIndexer`` :ref:`ID3_FACE_INDEXER<id3_face_face_indexer_class>`
          :guilabel:`in` Handle to the FaceIndexer object.

          ``maximumTemplateCount`` int
          :guilabel:`in` Maximum number of templates that this face indexer can hold.

          ``eFormat`` :ref:`id3FaceTemplateFormat<id3_face_face_template_format_enum>`
          :guilabel:`in` Face template format accepted by this face indexer.


      **Returns**

        .. line-block::

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


