python opencv3 显示一张图片

git:https://github.com/linyi0604/Computer-Vision

 1 # coding:utf8
 2 
 3 import cv2
 4 
 5 """
 6 显示一张图像
 7 """
 8 img = cv2.imread("../data/mm2.jpeg")    # 读取一张图像
 9 cv2.imshow("my image", img)     # 显示图片窗口
10 cv2.waitKey()   # 阻塞等待按键
11 cv2.destroyAllWindows()     # 销毁资源

猜你喜欢

转载自www.cnblogs.com/Lin-Yi/p/9392901.html