安装
pip install opencv-python
代码
import cv2 as cv
img=cv.imread("test.png") #读取图像
cv.imshow("Imag",img)
cv.waitKey(0)
cv.destroyAllWndows()
pip install opencv-python
import cv2 as cv
img=cv.imread("test.png") #读取图像
cv.imshow("Imag",img)
cv.waitKey(0)
cv.destroyAllWndows()