OpenCv 几何变换
OpenCv 几何变换几何变换OpenCv 几何变换1.图像的简单缩放2.图像的翻转2.图像的平移3.图像的旋转4.图像的透视import cv2import numpy as npcv2.waitKey(0)cv2.destroyAllWindows()1.图像的简单缩放img=cv2.imread("lena.jpg",0)rows,cols,_ = img.shape //第一种缩放方式size1 = (int(rows*0.9),int(cols*0.8))//宽变成0.9倍
原创
2021-04-10 18:43:47 ·
181 阅读 ·
3 评论