![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv python图像处理
爱旅行的姜姜
这个作者很懒,什么都没留下…
展开
-
opencv 图像拼接
import numpy as npimport cv2 from matplotlib import pyplot as pltimage_stitch = []imgs_name=["1-20180720","2-20180720","3-20180720","4-20180720","5-20180720","6-20180720","11-20180720"]for i in...原创 2019-05-15 14:06:19 · 180 阅读 · 0 评论 -
图像放缩,翻转,压缩
import argparseimport cv2parser = argparse.ArgumentParser()parser.add_argument('--path',default='D:/cookbook_prac/test1.png',help='Image path')params = parser.parse_args()img = cv2.imread(params...原创 2019-05-20 23:04:24 · 145 阅读 · 0 评论 -
Harris corner detector & Fast corner detector
import cv2import numpy as npimg = cv2.imread('d:/test1.png', cv2.IMREAD_COLOR)corners = cv2.cornerHarris(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY), 2, 3, 0.04)corners = cv2.dilate(corners, None)sh...原创 2019-05-28 23:13:06 · 338 阅读 · 0 评论 -
seamless clone
参考链接import cv2import numpy as npim = cv2.imread('d:/images/wood.jpg')obj = cv2.imread('d:/images/love.jpg')mask = 255*np.ones(obj.shape, obj.dtype)width, height, channels = im.shapecenter ...原创 2019-05-29 09:33:22 · 860 阅读 · 0 评论 -
opencv 线性代数
The orthogonal Procrustes problem#求解线性方程组import cv2import numpy as npN = 10A = np.random.rand(N, N)while np.linalg.matrix_rank(A) < N: A = np.random.rand(N, N)x = np.random.randn(...原创 2019-06-05 09:16:42 · 380 阅读 · 0 评论