pyufunc.img_bytes_to_PIL#
- pyufunc.img_bytes_to_PIL(img_b)#
Convert image bytes to PIL image.
- Parameters:
img_b (bytes) – image bytes
- Returns:
PIL image object
- Return type:
Image
Example
>>> from PIL import Image >>> from pyufunc import img_bytes_to_PIL >>> img_path = 'test.jpg' >>> img_b = cvt_img_to_bytes(img_path) >>> img = cvt_img_bytes_to_PIL_img(img_b) >>> img.show()