cv2 read numpy array as image code example Example: convert numpy array to cv2 image PIL.Image.fromarray(img)