pyufunc.img_CV_to_PIL#
- pyufunc.img_CV_to_PIL(img)#
Convert CV image to PIL image.
- Parameters:
img (np.ndarray) – CV image array
- Returns:
PIL image object
- Return type:
Image.Image
Example
>>> import cv2 >>> from PIL import Image >>> from pyufunc import img_CV_to_PIL >>> img_cv = cv2.imread('test.jpg') >>> img_pil = img_CV_to_PIL(img_cv)