OpenCV:图像处理基础(Python版)
发布时间
阅读量:
阅读量
图像像素运算与OpenCV应用
图像数据读取处理
import cv2 as cv
src1 = cv.imread("./images/WindowsLogo.jpg")
src2 = cv.imread("./images/LinuxLogo.jpg")
# 展示两张图片
cv.imshow("Windows logo", src1)
cv.imshow("Linux logo", src2)
cv.waitKey(0)
cv.destoryAllWindows()
运行之后的效果如下:

查看两张图片的大小:
print(src1.shape)
print(src2.shape)
全部评论 (0)
还没有任何评论哟~
