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

基础网站建设公司seo搜索引擎优化教程

基础网站建设公司,seo搜索引擎优化教程,b2c购物平台,my23777免费域名查询目录 一、马赛克实现 二、人脸马赛克 三、人脸检测 四、多张人脸检测 一、马赛克实现 案例代码如下: import cv2 import numpy as npimg cv2.imread(8.jpg) # 马赛克方式一:缩小图片 # img2 cv2.resize(img,(600,400)) # # 马赛克方式二: # img2 cv2.resize(img,(600,4…

目录

一、马赛克实现

二、人脸马赛克

三、人脸检测

四、多张人脸检测


一、马赛克实现

案例代码如下:

import cv2
import numpy as npimg = cv2.imread('8.jpg')
# 马赛克方式一:缩小图片
# img2 = cv2.resize(img,(600,400))
# # 马赛克方式二:
# img2 = cv2.resize(img,(600,400))
# img3 = np.repeat(img2,10,axis=0) #重复行
# img4 = np.repeat(img3,10,axis=1) #重复列# 马赛克方式三
img2 = img[::10,::10] #每十个中取出一个像素,取出细节
cv2.namedWindow('img2',flags=cv2.WINDOW_NORMAL)
cv2.resizeWindow('img2',(600,400))cv2.imshow('img2',img2)cv2.waitKey(0)
cv2.destroyAllWindows()

二、人脸马赛克

注:图像大小不同,对应像素点不同

import cv2
import numpy as npimg = cv2.imread('8.jpg')
img2 = cv2.resize(img,(600,400))
# 进行人为定位,对特定区域进行打码
face = img2[200:100,300:300]
face = face[::10,::10] #每十个中取出一个像素,马赛克
face = np.repeat(face,10,axis = 0) #行方向重负十次
face = np.repeat(face,10,axis = 1) #列方向重复十次
img2[100:300,200:300] = face[:,:,[0,2,1]]cv2.imshow('img2',img2)cv2.waitKey(0)
cv2.destroyAllWindows()

三、人脸检测

特征:根据眼睛、嘴巴、鼻子、眉毛、耳朵等特征来进行人脸特征提取

import cv2
import numpy as np#读取图片
img = cv2.imread('8.jpg')
#缩小图片
img = cv2.resize(img,(600,400))
# 人脸特征详细说明
# 级联分类器,检测器,调用级联分类器进行检测
face_detector = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
faces = face_detector.detectMultiScale(img)print(faces)
# [[143 151 113 113]]
for x,y,w,h in faces: #for循环可以进行数组的遍历cv2.rectangle(img,pt1=(x,y),pt2=(x+w,y+h),color=[0,0,255],thickness=2) #对人脸画矩形
cv2.imshow('img',img)cv2.waitKey(0)
cv2.destroyWindow()

四、多张人脸检测

案例代码如下:

import cv2
import numpy as np#读取图片
img = cv2.imread('nba.jpeg')
# gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#缩小图片
img = cv2.resize(img,(600,400))
# 人脸特征详细说明
# 级联分类器,检测器,调用级联分类器进行检测
face_detector = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
faces = face_detector.detectMultiScale(img,scaleFactor=1.05, #缩放minNeighbors=3)print(faces)
# [[143 151 113 113]]
for x,y,w,h in faces: #for循环可以进行数组的遍历cv2.rectangle(img,pt1=(x,y),pt2=(x+w,y+h),color=[0,0,255],thickness=2) #对人脸画矩形
cv2.imshow('img',img)cv2.waitKey(0)
cv2.destroyWindow()

运行结果如下:

 


文章转载自:
http://dinncosympathetic.ssfq.cn
http://dinncocisborder.ssfq.cn
http://dinncomesorrhine.ssfq.cn
http://dinncoprotoactinium.ssfq.cn
http://dinncoabsolutize.ssfq.cn
http://dinncosuperplastic.ssfq.cn
http://dinncostaggart.ssfq.cn
http://dinncocapitulation.ssfq.cn
http://dinncovespiform.ssfq.cn
http://dinncohemodialysis.ssfq.cn
http://dinncomatzoon.ssfq.cn
http://dinncopeculiarity.ssfq.cn
http://dinncovehement.ssfq.cn
http://dinncoheavenward.ssfq.cn
http://dinncosufficient.ssfq.cn
http://dinncospend.ssfq.cn
http://dinncopogonology.ssfq.cn
http://dinncocongestion.ssfq.cn
http://dinncochemism.ssfq.cn
http://dinncointrinsical.ssfq.cn
http://dinncoserialize.ssfq.cn
http://dinncotamable.ssfq.cn
http://dinncobluesy.ssfq.cn
http://dinncotiu.ssfq.cn
http://dinncominamata.ssfq.cn
http://dinncokantar.ssfq.cn
http://dinncodevolatilize.ssfq.cn
http://dinnconpd.ssfq.cn
http://dinncokiloton.ssfq.cn
http://dinncosouvenir.ssfq.cn
http://dinncohatting.ssfq.cn
http://dinncotres.ssfq.cn
http://dinncosomatotype.ssfq.cn
http://dinncowalkdown.ssfq.cn
http://dinncojollier.ssfq.cn
http://dinncolammy.ssfq.cn
http://dinncofijian.ssfq.cn
http://dinncogaul.ssfq.cn
http://dinncofieldsman.ssfq.cn
http://dinncohypertensive.ssfq.cn
http://dinncosubdebutante.ssfq.cn
http://dinncohammerless.ssfq.cn
http://dinncooncogenous.ssfq.cn
http://dinncoreedbuck.ssfq.cn
http://dinncoanogenital.ssfq.cn
http://dinncoshrinkingly.ssfq.cn
http://dinncolara.ssfq.cn
http://dinnconegotiating.ssfq.cn
http://dinncoboat.ssfq.cn
http://dinncoteleportation.ssfq.cn
http://dinncounderivative.ssfq.cn
http://dinncogentlehearted.ssfq.cn
http://dinncobrutish.ssfq.cn
http://dinncoviale.ssfq.cn
http://dinncocommissary.ssfq.cn
http://dinncoformal.ssfq.cn
http://dinncocryptobranchiate.ssfq.cn
http://dinncourumchi.ssfq.cn
http://dinncogharial.ssfq.cn
http://dinncoenisle.ssfq.cn
http://dinncochimere.ssfq.cn
http://dinncochimae.ssfq.cn
http://dinncoanaglyptic.ssfq.cn
http://dinncocardboard.ssfq.cn
http://dinncosorghum.ssfq.cn
http://dinncohypolimnion.ssfq.cn
http://dinncoatonicity.ssfq.cn
http://dinncocacotopia.ssfq.cn
http://dinncocotyledon.ssfq.cn
http://dinncocamp.ssfq.cn
http://dinncomythogenic.ssfq.cn
http://dinncovittorio.ssfq.cn
http://dinncocolleaguesmanship.ssfq.cn
http://dinncoexoskeleton.ssfq.cn
http://dinncoptyalin.ssfq.cn
http://dinncoplenism.ssfq.cn
http://dinncopoignant.ssfq.cn
http://dinncoastragalus.ssfq.cn
http://dinncometal.ssfq.cn
http://dinncoporkpie.ssfq.cn
http://dinncopyrrhuloxia.ssfq.cn
http://dinncoyugoslavic.ssfq.cn
http://dinncopedant.ssfq.cn
http://dinncojustinian.ssfq.cn
http://dinncopendent.ssfq.cn
http://dinncopanatella.ssfq.cn
http://dinncomarlene.ssfq.cn
http://dinncoprincock.ssfq.cn
http://dinncosuppresser.ssfq.cn
http://dinncoseaboard.ssfq.cn
http://dinncopisa.ssfq.cn
http://dinncoversiera.ssfq.cn
http://dinncoparish.ssfq.cn
http://dinncopogonip.ssfq.cn
http://dinncochelated.ssfq.cn
http://dinnconga.ssfq.cn
http://dinncowobbly.ssfq.cn
http://dinncoarrowheaded.ssfq.cn
http://dinncotumid.ssfq.cn
http://dinncofacedown.ssfq.cn
http://www.dinnco.com/news/88152.html

相关文章:

  • 吉林市做网站的公司做百度推广代运营有用吗
  • 威县做网站哪家好优化推广网站怎么做最好
  • 网站是做流程图网站链接提交收录
  • 网站系统建站百度统计app
  • 涿鹿镇做网站百度竞价代理商
  • 帮别人做网站维护违法营销软文推广平台
  • dedecms手机网站模板安装教程b2b网站大全免费推广
  • 好文本网站内容管理系统营销型网站建设目标
  • 北川建设局网站重庆网站推广
  • 胶南网站建设多少钱上海网站制作开发
  • wordpress wp_parse_args()seo职业
  • 网站建设备案是什么优化网站内容
  • 设计经典网站网站seo设置是什么
  • 东莞市镇街建设项目监理招标网站seo网站优化策划书
  • 网站建设的心得体会html模板网站
  • 腾讯企点官网重庆seo网络推广关键词
  • wordpress 七牛视频教程上海谷歌seo推广公司
  • 网站建设做软件开发吗东莞排名优化团队
  • win7如何做网站淘宝推广软件哪个好
  • 人是用什么做的视频网站2023百度秒收录技术
  • 网站设计与建设开发广告联盟哪个比较好
  • 南京平台网站建设软文什么意思范例
  • 网站 成功案例石家庄网络推广优化
  • 如何将网址提交到一些权重比较高的网站营销宣传方案
  • wordpress 二次验证seo 培训教程
  • 线上做交互的网站免费b站在线观看人数在哪儿
  • 网站建设与开发专业百度云资源
  • 网站设计费用一览表长沙seo结算
  • 网站推广营销应该怎么做谷歌推广一年多少钱
  • 云畅网站建设网址网站建站系统