python opencv安装以及最基本使用

安装

pip install opencv-python

代码

import cv2 as cv
img=cv.imread("test.png") #读取图像
cv.imshow("Imag",img)
cv.waitKey(0)
cv.destroyAllWndows()

猜你喜欢

转载自blog.csdn.net/a19990412/article/details/80912355
今日推荐