def from_src(src: Union[str, PosixPath]) -> Image:
    """
    Load the image from url/path as towhee's Image object.

    Args:
        src (`Union[str, path]`):
            The path leads to the image.

    Returns:
        (`towhee.types.Image`)
            The image wrapepd as towhee's Image.
    """
    ndarray_img = cv2.imread(str(src))
    rgb_img = cv2.cvtColor(ndarray_img, cv2.COLOR_BGR2RGB)
    img = from_ndarray(rgb_img, 'RGB')

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

Args:
src (`Union[str, path]`):
The path leads to the image.

Returns:
(`towhee.types.Image`)
The image wrapepd as towhee's Image.
towhee/utils/ndarray_utils.py