Python / PIL / 画像を読み込む / PIL.Image.open(ファイルパス)

from PIL import Image
import matplotlib.pyplot as plt

def showImg(imgPath):
    srcImg = Image.open(imgPath)
    plt.imshow(srcImg)
    plt.show()

showImg("C:\\Users\\NEC-PCuser\\Desktop\\akiho.png")

実行結果:
f:id:ti-nspire:20180802080703p:plain:w400