def pyplot_show(path):
import matplotlib.pyplot as plt
img = plt.imread(path) #numpy.ndarray
plt.figure("image")
plt.imshow(img)
plt.pause(5)
if __name__ == '__main__':
path = '../data/imgs/hdrplus.png'
pyplot_show(path)