import cv2 as cv img = cv.imread("filename") # read and save the image as matrix of pixels cv.imgshow("Window Name", image) # show an image in a named window (takes name and pixel matrix)