.. index:: 
  !Image.toNumpy Method
  
.. _id3_face_image_to_numpy_class_method:

===============================================================================
Image.toNumpy Method
===============================================================================

Module: :ref:`Image<id3_face_image_class>`

Definition
----------

Exports the image to a numpy array (Python only)


.. tab-set::

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

      .. code:: Python

        to_numpy(self) -> bytearray

      **Returns**

        .. line-block::

          ``bytearray``
          Output numpy array.

      **Exceptions**

        .. line-block::

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



