- 博客(10)
- 收藏
- 关注
原创 OpenCV-图像金字塔
图像金字塔目录一:什么是图像金字塔二:高斯金字塔三:拉普拉斯金字塔四:金字塔的应用一:什么是图像金字塔图像金字塔是由一幅图像的多个不同分辨率的子图所构成的图像集合通过对原图像不断地向下采样而产生的,既有高分辨率的图像(大尺寸)产生低分辨率的近似图像(小尺寸)。二:高斯金字塔三:拉普拉斯金字塔四:金字塔的应用...
2021-06-23 10:08:06 47
原创 OpenCV-人脸识别
人脸识别前言一.什么是人脸识别二.人脸识别的应用三.人脸识别使用方法一:什么是人脸识别人脸识别是一种用于识别陌生人或从特定人的脸中认证特定人的身份的方法。它是计算机视觉的一个分支,但是人脸识别是专门的,并且在某些应用程序中带有社交功能,并且存在一些欺骗的漏洞。二:人脸识别的应用1 远程刷脸登录常规登录模式就是网页请求登录,以后刷脸登录将成为主流。2 刷脸门禁以往都是通过工卡刷门禁,往后通过指纹,刷脸会更多3 抓拍捕捉人脸发现可疑人物我司目前有摄像机,加上人脸识别功能,通过摄像
2021-06-23 10:06:00 243
原创 使用鼠标交互实现区域生长算法
使用鼠标交互实现区域生长算法import cv2import numpy as npclass Point(object): def init(self,x,y): self.x = x self.y = y def getX(self): return self.x def getY(self): return self.ydef getGrayDiff(img,currentPoint,tmpPoi
2021-06-23 10:04:23 84
原创 openCV霍夫变换
霍夫变换import cv2import numpy as npimg = cv2.imread(“shape.png”)gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)edge = cv2.Canny(gray,50,150)lines = cv2.HoughLines(edge,1,np.pi/180,50)for line in lines: rho, theta = line[0] a = np.cos(theta)
2021-06-23 09:57:34 88
原创 实现匹配多个印花
import cv2import numpy as npimg = cv2.imread(“yinhua2.png”,)template = cv2.imread(“yinhua.png”)result = cv2.matchTemplate(img,template,cv2.TM_SQDIFF_NORMED)threshold = 0.01loc = np.where(result <= threshold)print(*loc[::-1])for pt in zip...
2021-06-23 09:54:39 112
原创 数字图像处理改变图像颜色
将三角形由蓝色转变为黑色import cv2img = cv2.imread(‘shape.jpg’)cv2.imshow(‘src’,img)height,width,_=img.shapeb,g,r = cv2.split(img)for i in range(height): for j in range(0,width): for k in range(3): if 100<b[i,j]<200: img.itemset((
2021-06-23 09:51:13 308
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人