利用opencv模块读取并显示图像
import cv2
a=cv2.imread('1.1.jpg')
cv2.imshow('flower',a)
cv2.waitKey()
#注意代码是destroyAllWindows而不是destroyWindows
cv2.destroyAllWindows()
利用opencv模块读取并显示图像
import cv2
a=cv2.imread('1.1.jpg')
cv2.imshow('flower',a)
cv2.waitKey()
#注意代码是destroyAllWindows而不是destroyWindows
cv2.destroyAllWindows()