pyufunc.img_bytes_to_CV#
- pyufunc.img_bytes_to_CV(img_b)#
Convert image bytes to OpenCV numpy array.
- Parameters:
img_b (bytes) – image bytes
- Returns:
OpenCV numpy array
- Return type:
np.ndarray
Example
>>> from pyufunc img_bytes_to_CVk, img_show >>> from PIL import Image >>> img_path = 'test.jpg' >>> img_b = cvt_img_to_bytes(img_path) >>> img = img_bytes_to_CV(img_b) >>> img_show(img)