
python+图像处理
文章平均质量分 74
cc0587
这个作者很懒,什么都没留下…
展开
-
python 图像平移和旋转
import cv2import mathimport numpy as npdef move(img): height, width, channels = img.shape emptyImage2 = img.copy() x=20 y=20 for i in range(height): for j in range(width):原创 2016-12-21 09:36:33 · 7071 阅读 · 0 评论 -
python 图像插值 最近邻、双线性、双三次
最近邻:import cv2import numpy as npdef function(img): height,width,channels =img.shape emptyImage=np.zeros((2048,2048,channels),np.uint8) sh=2048/height sw=2048/width for i in ran原创 2016-12-21 09:38:22 · 13977 阅读 · 4 评论 -
python 低通滤波
低通滤波:import cv2import numpy as npdef function(img): h,w=img.shape newimg=np.zeros((h,w),np.uint8) img2=np.fft.fft2(img) fshift = np.fft.fftshift(img2) st=fshift.copy() h,w=fshift.shape sh原创 2016-12-21 09:46:17 · 4791 阅读 · 1 评论 -
同时安装Python2和3 怎么用pip
其实方法很简单,输入pip我所在文件夹的全部路径就好了原创 2017-06-22 15:36:46 · 368 阅读 · 0 评论 -
labelimg make: *** No rule to make target `qt4py2'
在ubuntu下如果安装labelimg出现make: *** No rule to make target `qt4py2'或者输入 python labelImg.py出现Traceback (most recent call last): File "./labelImg.py", line 29, in <module> import resou...原创 2018-08-07 19:51:21 · 1090 阅读 · 0 评论