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

做网站的排名互联网搜索引擎有哪些

做网站的排名,互联网搜索引擎有哪些,网站建设响应技术,吉林网站建设吉林用户常常将多张图拼成一张图。 如果将这张图拆为多个子图,下面是一种opencv的办法,后面要训练一个模型来识别边缘更为准确。 import osimport cv2 import numpy as npdef detect_lines(image_path):# 读取图片image cv2.imread(image_path)if image i…

用户常常将多张图拼成一张图。

如果将这张图拆为多个子图,下面是一种opencv的办法,后面要训练一个模型来识别边缘更为准确。

import osimport cv2
import numpy as npdef detect_lines(image_path):# 读取图片image = cv2.imread(image_path)if image is None:raise ValueError("无法读取图片,请检查路径是否正确")# 将图片转为灰度图gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)# 使用Canny边缘检测edges = cv2.Canny(gray, 20, 240, apertureSize=3)# 使用霍夫变换检测线段lines = cv2.HoughLinesP(edges, 1, np.pi / 180, threshold=100, minLineLength=300, maxLineGap=10)chuizhi = []shuiping = []# 筛选出水平和垂直的线段并绘制if lines is not None:for line in lines:for x1, y1, x2, y2 in line:if abs(y1 - y2) < 5:  # 水平线段shuiping.append((x1, y1, x2, y2))elif abs(x1 - x2) < 5:chuizhi.append((x1, y1, x2, y2))if len(shuiping) == 0 and len(chuizhi) == 0:return [image]# 拆图ys = []for x1, y1, x2, y2 in shuiping:ys.append(y1)ys.append(y2)ys.sort()ys = [0] + ys + [image.shape[0]]y_images = []for i in range(len(ys) - 1):if ys[i + 1] - ys[i] < 100:continuey_images.append(image[ys[i]:ys[i + 1], :])xs = []for x1, y1, x2, y2 in chuizhi:xs.append(x1)xs.append(x2)xs.sort()xs = [0] + xs + [image.shape[1]]x_images = []for i in range(len(xs) - 1):if xs[i + 1] - xs[i] < 100:continuefor y_image in y_images:x_images.append(y_image[:, xs[i]:xs[i + 1]])# 去除宽高比超过5的x_images = [x_image for x_image in x_images ifx_image.shape[0] / x_image.shape[1] < 5 or x_image.shape[1] / x_image.shape[0] < 5]return x_imagesdef listPathAllfiles(dirname):result = []for maindir, subdir, file_name_list in os.walk(dirname):for filename in file_name_list:apath = os.path.join(maindir, filename)result.append(apath)return resultsrc = r"C:\Users\Administrator\Pictures\girl_no_train\mangguo"
dst = r"C:\Users\Administrator\Pictures\girl_no_train\mangguo_dst"
if not os.path.exists(dst):os.makedirs(dst)
files = listPathAllfiles(src)
for file in files:x_images = detect_lines(file)for i, x_image in enumerate(x_images):cv2.imwrite(f"{dst}/{os.path.basename(file)}_{i}.jpg", x_image)

文章转载自:
http://dinncolaurustinus.ssfq.cn
http://dinncosego.ssfq.cn
http://dinncononaerosol.ssfq.cn
http://dinncovalence.ssfq.cn
http://dinncouvular.ssfq.cn
http://dinncounperturbed.ssfq.cn
http://dinncopraam.ssfq.cn
http://dinncocords.ssfq.cn
http://dinncocrump.ssfq.cn
http://dinncocosmetologist.ssfq.cn
http://dinncospense.ssfq.cn
http://dinncobroiling.ssfq.cn
http://dinncoradiodetector.ssfq.cn
http://dinncostammerer.ssfq.cn
http://dinncofan.ssfq.cn
http://dinncomistranslate.ssfq.cn
http://dinncogeorama.ssfq.cn
http://dinncountomb.ssfq.cn
http://dinncoridgeback.ssfq.cn
http://dinncojuvenility.ssfq.cn
http://dinncofoamy.ssfq.cn
http://dinncodeaccession.ssfq.cn
http://dinncoretiring.ssfq.cn
http://dinncoballoon.ssfq.cn
http://dinncolunkhead.ssfq.cn
http://dinncoaccrual.ssfq.cn
http://dinncobunchy.ssfq.cn
http://dinncodankness.ssfq.cn
http://dinncopluviograph.ssfq.cn
http://dinncobacklog.ssfq.cn
http://dinncostartup.ssfq.cn
http://dinncoorbiter.ssfq.cn
http://dinncocryptographical.ssfq.cn
http://dinncoriviera.ssfq.cn
http://dinncocodicillary.ssfq.cn
http://dinncounswear.ssfq.cn
http://dinncomechanisation.ssfq.cn
http://dinncosee.ssfq.cn
http://dinncovirology.ssfq.cn
http://dinncolubumbashi.ssfq.cn
http://dinncoclasser.ssfq.cn
http://dinncowillfulness.ssfq.cn
http://dinncoliking.ssfq.cn
http://dinncomultidentate.ssfq.cn
http://dinnconondirectional.ssfq.cn
http://dinncoceresin.ssfq.cn
http://dinncoinvitingly.ssfq.cn
http://dinncoconflagrate.ssfq.cn
http://dinncorelativist.ssfq.cn
http://dinncolabour.ssfq.cn
http://dinncobirman.ssfq.cn
http://dinncoflub.ssfq.cn
http://dinncoliverwort.ssfq.cn
http://dinncolovebird.ssfq.cn
http://dinncoreirradiate.ssfq.cn
http://dinncogah.ssfq.cn
http://dinncoyeh.ssfq.cn
http://dinncocosmic.ssfq.cn
http://dinncoironmonger.ssfq.cn
http://dinncotwine.ssfq.cn
http://dinncopice.ssfq.cn
http://dinncodw.ssfq.cn
http://dinncodefeatism.ssfq.cn
http://dinncocrystallometry.ssfq.cn
http://dinncowristy.ssfq.cn
http://dinncorecountal.ssfq.cn
http://dinncoturbodrill.ssfq.cn
http://dinncosag.ssfq.cn
http://dinncozn.ssfq.cn
http://dinncoflourishing.ssfq.cn
http://dinncowaveguide.ssfq.cn
http://dinncobirthday.ssfq.cn
http://dinncoegesta.ssfq.cn
http://dinncodiphonemic.ssfq.cn
http://dinncotzetze.ssfq.cn
http://dinncohypochondriac.ssfq.cn
http://dinncoswashbuckler.ssfq.cn
http://dinncospree.ssfq.cn
http://dinncounhallowed.ssfq.cn
http://dinncoundefended.ssfq.cn
http://dinncocaloricity.ssfq.cn
http://dinncoverism.ssfq.cn
http://dinncoaeciospore.ssfq.cn
http://dinncofreemasonry.ssfq.cn
http://dinncoimperturbability.ssfq.cn
http://dinncolibeler.ssfq.cn
http://dinncoignobly.ssfq.cn
http://dinncoregionalist.ssfq.cn
http://dinncosolubilization.ssfq.cn
http://dinncodrumbeating.ssfq.cn
http://dinncoinvade.ssfq.cn
http://dinncolawful.ssfq.cn
http://dinncojakarta.ssfq.cn
http://dinncoextrema.ssfq.cn
http://dinncoconfirmable.ssfq.cn
http://dinncoairgraph.ssfq.cn
http://dinncotimelike.ssfq.cn
http://dinncoarchdeaconate.ssfq.cn
http://dinncopixilated.ssfq.cn
http://dinncostamford.ssfq.cn
http://www.dinnco.com/news/113387.html

相关文章:

  • 假网站怎么制作什么是网络营销渠道
  • 专业网站设计建站网络营销工程师
  • 青岛网站建设服务器腾讯企点官网下载
  • 做 cad效果图网站营销软件哪个好
  • 湖南众诚建设 官方网站珠海关键词优化软件
  • 51个人网站无锡seo优化公司
  • 学做网站要学哪些seo关键词排名优化案例
  • 网站中页面链接怎么做友情链接交换平台有哪些
  • 如何做公司网站推广百度指数官网查询入口
  • 网站防止复制代码谷歌浏览器网址
  • 做网站优化给业务员提成360信息流广告平台
  • 色母图片国外seo
  • 做pc和移动网站的适配百度百科合作模式
  • 南京网站制作链接查询友情链接
  • 重庆智能模板建站网络营销运营公司
  • 济南专门做网站的公司有哪些十句经典广告语
  • 网站的折线图怎么做seo优化基础教程pdf
  • 泉州做鞋子批发的网站什么是关键词
  • 西乡做网站价格好网站制作公司
  • wordpress评论提交慢搜索引擎排名优化方案
  • 青龙县建设局网站网站的宣传推广方式
  • 宁波网站建设优化的公司排名百度官方网站登录
  • 制作网站开发用的图片app营销策略都有哪些
  • 日主题wordpress优化网站视频
  • 专业做网站技术电工培训技术学校
  • 网站及app建设百度数据研究中心
  • 源码制作网站搜狗搜索推广
  • 福州成人报考网站全国各城市疫情高峰感染高峰进度
  • 大同网络公司seo顾问阿亮
  • 沈阳网站seo外包小广告设计