Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DocumentImage.toNumpy Method

Module: DocumentImage

## Definition

Exports the image to a numpy array (Python only)

Python

    to_numpy(self) -> bytearray

Returns

> `bytearray`
> Output numpy array.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.