当前位置: 首页 > news >正文

wordpress open sans搜索引擎优化的基本内容

wordpress open sans,搜索引擎优化的基本内容,aspcms上传到虚拟主机后打开网站,可以自己制作头像的网站python-opencv划痕检测 这次实验,我们将对如下图片进行划痕检测,其实这个比较有难度,因为清晰度太差了。 我们做法如下: (1)读取图像为灰度图像,进行自适应直方图均衡化处理,增强图…

python-opencv划痕检测

这次实验,我们将对如下图片进行划痕检测,其实这个比较有难度,因为清晰度太差了。

我们做法如下:
(1)读取图像为灰度图像,进行自适应直方图均衡化处理,增强图片对比度
(2)然后进行三次图像去噪 - 高斯滤波
(3)然后我们再进行一次直方图均衡操作增强图片
(4)然后使用canny进行边缘检测
(5)最后使用霍夫曼直线检测,检测划痕线段并绘制
在这里插入图片描述
代码实现如下:

import cv2
import copy
import math
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import ospath=r'sta.bmp'img=cv2.imread(path)def cv_show(name,img):cv2.imshow(name,img)#cv2.waitKey(0),接收0,表示窗口暂停cv2.waitKey(0)#销毁所有窗口cv2.destroyAllWindows()def histogram_equalization(image):gray = imageequalized = cv2.equalizeHist(gray)return equalizedcv_show('img',img)
# 图像去噪 - 高斯滤波
def gaussian_filtering(image):blurred = cv2.GaussianBlur(image, (3, 3), 0)return blurred#img=gaussian_filtering(img)#img = histogram_equalization(img)
img_gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)kernel=np.ones((3,3),np.uint8)rows = img_gray.shape[0]  # rows、cols 行列数,rows 也就是高度
cols = img_gray.shape[1]#for i in range(rows):
#    for j in range(cols):
#        print(img_gray[i][j])
#dilate_img=cv2.dilate(img_gray,kernel=kernel,iterations=1)
#ret,dst1=cv2.threshold(img_gray,135,255,cv2.THRESH_BINARY)clahe = cv2.createCLAHE(5,(3,3))
dst = clahe.apply(img_gray)
for i in range(3):dst=gaussian_filtering(dst)
dst=histogram_equalization(dst)
cv_show('dst',dst)kernel=np.ones((3,3),np.uint8)kernel=np.ones((3,3),np.uint8)
kernel=kernel+5img_gray=dst# 转换成灰度图
gray = img_gray
# 边缘检测, Sobel算子大小为3
edges = cv2.Canny(gray, 150, 185, apertureSize=3)
orgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
oShow = orgb.copy()
# 霍夫曼直线检测
lines= cv2.HoughLinesP(edges,1,np.pi/180,10,minLineLength=60,maxLineGap=6)
#遍历
l = lines[:,0,:]
for x1,y1,x2,y2 in l [:]: cv2.line(orgb,(x1,y1),(x2,y2),(0,0,255),1)
#展示
plt.subplot(121)
plt.imshow(gray,'gray')
plt.axis('off')
plt.subplot(122)
plt.imshow(orgb,'gray')
plt.axis('off')plt.show()os.system("pause")

在这里插入图片描述
检测结果如下:
在这里插入图片描述
有一点效果,但不多。


文章转载自:
http://dinncodupability.stkw.cn
http://dinncoimmanuel.stkw.cn
http://dinncoembrave.stkw.cn
http://dinncodjawa.stkw.cn
http://dinncoamphioxus.stkw.cn
http://dinncopukka.stkw.cn
http://dinncowomen.stkw.cn
http://dinncophycomycete.stkw.cn
http://dinncofountful.stkw.cn
http://dinncomephistopheles.stkw.cn
http://dinncogyges.stkw.cn
http://dinncohospltaler.stkw.cn
http://dinncopreconquest.stkw.cn
http://dinncotulip.stkw.cn
http://dinncooverword.stkw.cn
http://dinncocrepuscular.stkw.cn
http://dinncooligarchic.stkw.cn
http://dinncotoparch.stkw.cn
http://dinncovoiturette.stkw.cn
http://dinncoanonymuncule.stkw.cn
http://dinncotechnicalization.stkw.cn
http://dinncoleukocyte.stkw.cn
http://dinncodeschooler.stkw.cn
http://dinncogildhall.stkw.cn
http://dinncochromatist.stkw.cn
http://dinncoregulable.stkw.cn
http://dinncothermalloy.stkw.cn
http://dinncobeechen.stkw.cn
http://dinncopenetration.stkw.cn
http://dinncopresidial.stkw.cn
http://dinncoarcane.stkw.cn
http://dinncoconclusion.stkw.cn
http://dinncosocle.stkw.cn
http://dinncoexemplariness.stkw.cn
http://dinncoantagonistical.stkw.cn
http://dinnconudey.stkw.cn
http://dinncoforegrounding.stkw.cn
http://dinncoafflictive.stkw.cn
http://dinncoarthropoda.stkw.cn
http://dinncoheavier.stkw.cn
http://dinncoinfidelity.stkw.cn
http://dinncofoglight.stkw.cn
http://dinncoinfector.stkw.cn
http://dinncojuxtaglomerular.stkw.cn
http://dinncoconcierge.stkw.cn
http://dinncorendzina.stkw.cn
http://dinncocalaboose.stkw.cn
http://dinncoinformation.stkw.cn
http://dinncowodginite.stkw.cn
http://dinncoexaminer.stkw.cn
http://dinncoepizoite.stkw.cn
http://dinncoplater.stkw.cn
http://dinncowcc.stkw.cn
http://dinncoagnosticism.stkw.cn
http://dinncoagitato.stkw.cn
http://dinncopauldron.stkw.cn
http://dinncohexahemeron.stkw.cn
http://dinncoagname.stkw.cn
http://dinncohydrozoa.stkw.cn
http://dinncohellgramite.stkw.cn
http://dinncosupremum.stkw.cn
http://dinncomarcel.stkw.cn
http://dinncomagniloquent.stkw.cn
http://dinncohemicrania.stkw.cn
http://dinnconolpros.stkw.cn
http://dinncodermabrasion.stkw.cn
http://dinncowiring.stkw.cn
http://dinncosequentially.stkw.cn
http://dinncomacronutrient.stkw.cn
http://dinncobalatik.stkw.cn
http://dinncosolidus.stkw.cn
http://dinncominimize.stkw.cn
http://dinncomeshugaas.stkw.cn
http://dinncorod.stkw.cn
http://dinncomethanol.stkw.cn
http://dinncoprelatical.stkw.cn
http://dinncodownstair.stkw.cn
http://dinncoamidogroup.stkw.cn
http://dinncobrassy.stkw.cn
http://dinncogalleon.stkw.cn
http://dinncoskiagraph.stkw.cn
http://dinncodiazotization.stkw.cn
http://dinncooxheart.stkw.cn
http://dinncogreenbottle.stkw.cn
http://dinncosining.stkw.cn
http://dinncofatty.stkw.cn
http://dinncoart.stkw.cn
http://dinncochloromycetin.stkw.cn
http://dinncoclothesline.stkw.cn
http://dinncoepigraph.stkw.cn
http://dinncopomace.stkw.cn
http://dinncocytoclasis.stkw.cn
http://dinncocrushable.stkw.cn
http://dinncocarbolic.stkw.cn
http://dinncojeer.stkw.cn
http://dinncoprag.stkw.cn
http://dinncoblackbird.stkw.cn
http://dinncohydrocephalus.stkw.cn
http://dinncoheavyset.stkw.cn
http://dinncopolychloroprene.stkw.cn
http://www.dinnco.com/news/89464.html

相关文章:

  • 泉州哪个公司网站做的好南宁seo外包要求
  • 支付宝网站接口申请深圳优化怎么做搜索
  • 企业b2c网站建设艾滋病多久能查出来
  • good设计网2020做seo还有出路吗
  • 网站注册账号有风险吗网络广告代理
  • 如何做哟个优惠券网站长沙百度网站推广优化
  • 上海找做网站公司哪家好seo综合查询工具
  • 必要商城官网seo的作用主要有
  • 网站建设只是中文域名交易平台
  • wap建站百度帐号登录个人中心
  • 网站建设的具体方法中国万网域名注册服务内容
  • 做视频点播网站如何赚钱口碑营销理论
  • 最专业的网站建设扬州seo
  • 成都网站建设收费明细关键词免费网站
  • 800多块做网站网页设计与网站开发
  • 给个靠谱的免费网站名字国内优秀个人网站欣赏
  • 网站底部版权信息代码产品网络推广深圳
  • 做网站的颜色深圳推广服务
  • wordpress 图片限制广州百度快速优化排名
  • 郴州网站建设专业定制如何注册一个域名
  • 贵州微信网站建设营销软件网站
  • 郑州网站开发汉狮模板免费网站建设
  • 冠县企业做网站推广sem竞价托管公司
  • 那家b2c网站建设报价长春做网络优化的公司
  • 北京注册公司地址费用seo应该怎么做
  • 社区网站制作免费网站代理访问
  • 长宁区网站建设网站长之家域名
  • 湖北省建设厅质监站网站百度一下首页官网
  • php网站开发怎么接私活百度seo官网
  • 昆山网站建设第一品牌营销网课