.. index:: 
  !FaceIndexer.fromFile Method
  
.. _id3_face_face_indexer_from_file_class_method:

===============================================================================
FaceIndexer.fromFile Method
===============================================================================

Module: :ref:`FaceIndexer<id3_face_face_indexer_class>`

Definition
----------

Imports the face indexer object from a file.


.. tab-set::

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

      .. code:: Python

        @staticmethod
        from_file(path: str) -> FaceIndexer

      **Parameters**

        .. line-block::

          ``path`` str
          :guilabel:`in` Path to the file to import the face indexer object from.


      **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 fromFile(String? path)

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to import the face indexer object from.


      **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 FromFile(string path)

      **Parameters**

        .. line-block::

          ``path`` string
          :guilabel:`in` Path to the file to import the face indexer object from.


      **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 fromFile(String path) throws FaceException

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to import the face indexer object from.


      **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 fromFile(path: String) throws -> FaceIndexer

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to import the face indexer object from.


      **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_FromFile (
            ID3_FACE_INDEXER hFaceIndexer, 
            const char * path)

      **Parameters**

        .. line-block::

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

          ``path`` const char *
          :guilabel:`in` Path to the file to import the face indexer object from.


      **Returns**

        .. line-block::

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


