towhee.utils.ndarray_utils.from_zip¶
- towhee.utils.ndarray_utils.from_zip(zip_src: Union[str, Path], pattern: str = '*.JPEG') Image [source]¶
Load the image.zip from url/path as towhee’s Image object.
- Parameters:
zip_src (Union[str, path]) – The path leads to the image.
pattern (str) – The image pattern to extract.
- Returns:
- (towhee.types.Image)
The image wrapepd as towhee’s Image.