towhee.utils.ndarray_utils.from_src

towhee.utils.ndarray_utils.from_src(src: Union[str, PosixPath]) Image[source]

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

Parameters:

src (Union[str, path]) – The path leads to the image.

Returns:

(towhee.types.Image)

The image wrapepd as towhee’s Image.