towhee.utils.ndarray_utilsΒΆ

Functions

from_ndarray

Convert an image loaded by cv2 as ndarray into towhee.types.Image.

from_src

Load the image from url/path as towhee's Image object.

from_zip

Load the image.zip from url/path as towhee's Image object.

rgb2bgr

Convert an RGB image into ndarray of mode BGR.

to_ndarray

Convert a towhee.types.Image into ndarray.