pyufunc.img_show#

pyufunc.img_show(img, is_PIL_show=False, verbose=True)#

Show image in a window from image path or image array or PIL image object.

Parameters:
  • img (Union[str, np.ndarray, Image.Image]) – image path or OpenCV image array or PIL image object

  • is_PIL_show (bool, optional) – if True, show the image as a PIL image, default is False else, show the image as a CV image

  • verbose (bool, optional) – print out processing message, default is True

Example

>>> import cv2
>>> from pyufunc import img_show
>>> img = cv2.imread('test.jpg')
>>> img_show(img)