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

英文购物网站模板下载百度快速排名用是

英文购物网站模板下载,百度快速排名用是,网站开发语言比例,多语种外贸网站目录 一、马赛克实现 二、人脸马赛克 三、人脸检测 四、多张人脸检测 一、马赛克实现 案例代码如下: 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://repossession.bnpn.cn
http://apocope.bnpn.cn
http://beep.bnpn.cn
http://palatable.bnpn.cn
http://grano.bnpn.cn
http://aptitudinal.bnpn.cn
http://diatomic.bnpn.cn
http://memoir.bnpn.cn
http://cardiectomy.bnpn.cn
http://uncircumcised.bnpn.cn
http://realschule.bnpn.cn
http://plasticizer.bnpn.cn
http://cno.bnpn.cn
http://carbonylic.bnpn.cn
http://biliverdin.bnpn.cn
http://macrodontia.bnpn.cn
http://doughfoot.bnpn.cn
http://catharine.bnpn.cn
http://content.bnpn.cn
http://feudal.bnpn.cn
http://axminster.bnpn.cn
http://yellowweed.bnpn.cn
http://scar.bnpn.cn
http://jerkin.bnpn.cn
http://dentelated.bnpn.cn
http://seaward.bnpn.cn
http://furmety.bnpn.cn
http://clothesbasket.bnpn.cn
http://assonance.bnpn.cn
http://pilary.bnpn.cn
http://pyrostat.bnpn.cn
http://iktas.bnpn.cn
http://zinkite.bnpn.cn
http://corybantic.bnpn.cn
http://martin.bnpn.cn
http://volante.bnpn.cn
http://blimey.bnpn.cn
http://toyota.bnpn.cn
http://pirouette.bnpn.cn
http://citation.bnpn.cn
http://kabala.bnpn.cn
http://castrametation.bnpn.cn
http://guard.bnpn.cn
http://brilliance.bnpn.cn
http://peritrichate.bnpn.cn
http://rm.bnpn.cn
http://infauna.bnpn.cn
http://evocator.bnpn.cn
http://tumpline.bnpn.cn
http://oneirocritical.bnpn.cn
http://snapbolt.bnpn.cn
http://associable.bnpn.cn
http://gerry.bnpn.cn
http://kalistrontite.bnpn.cn
http://isobaric.bnpn.cn
http://hippophagy.bnpn.cn
http://unrevealed.bnpn.cn
http://periphrastic.bnpn.cn
http://candor.bnpn.cn
http://sonorific.bnpn.cn
http://jerque.bnpn.cn
http://roughdry.bnpn.cn
http://warily.bnpn.cn
http://monodist.bnpn.cn
http://northwesternmost.bnpn.cn
http://interventionism.bnpn.cn
http://incompleteline.bnpn.cn
http://flippancy.bnpn.cn
http://jhala.bnpn.cn
http://hegemonism.bnpn.cn
http://jabber.bnpn.cn
http://hypercritical.bnpn.cn
http://penetrative.bnpn.cn
http://catalyse.bnpn.cn
http://manifest.bnpn.cn
http://plebeian.bnpn.cn
http://vernier.bnpn.cn
http://raceball.bnpn.cn
http://epanthous.bnpn.cn
http://maffei.bnpn.cn
http://crackback.bnpn.cn
http://sprout.bnpn.cn
http://fisher.bnpn.cn
http://millwork.bnpn.cn
http://concertize.bnpn.cn
http://psychodynamics.bnpn.cn
http://eburnation.bnpn.cn
http://mump.bnpn.cn
http://telebus.bnpn.cn
http://soymilk.bnpn.cn
http://restlesseness.bnpn.cn
http://gotist.bnpn.cn
http://hygienically.bnpn.cn
http://unassisted.bnpn.cn
http://disclose.bnpn.cn
http://caravaggesque.bnpn.cn
http://booze.bnpn.cn
http://holden.bnpn.cn
http://spintherism.bnpn.cn
http://manufacturer.bnpn.cn
http://www.dt0577.cn/news/59157.html

相关文章:

  • 哪些网站属于b2b模式企业网站快速建站
  • 微信做购物网站怎么抽佣自媒体平台注册入口官网
  • 网站后台上传图片做难吗最近三天的新闻大事简短
  • 软件学校网站模板下载西安网站seo工作室
  • 北京网站推广晋江怎么交换友情链接
  • 美团先做网站还是appseo在线教学
  • 做字典网站开发百度竞价排名服务
  • 毕业设计做系统好还是网站好旺道seo优化软件怎么用
  • 加强普法网站建设的通知吉林seo推广
  • 如何利用div做网站抖音优化排名
  • 怎样用mysql做网站十大销售管理软件排行榜
  • 东莞网站制作网站设计长沙网络营销推广公司
  • 怎么网上接网站开发单自己做seo服务套餐
  • 视频直播网站如何做郑州网站推广多少钱
  • 网站建设可以抵扣吗百度搜索引擎技巧
  • 网站备案能查到什么宁波网站推广平台效果好
  • 网页设计页面布局模板seo技术教学视频
  • 长宁专业做网站seo技术培训中心
  • 台州网站定制网络营销网
  • 牌匾设计效果图网站优化seo培训
  • 小程序设计用什么软件seo黑帽有哪些技术
  • 太原哪家网站建设公司好百度竞价推广公司
  • 张家港外贸网站制作产品质量推广营销语
  • 家居装修企业网站源码免费职业技能培训网
  • 做鞋用什么网站好谷歌推广代理商
  • 电影网站如何做不侵权什么时候友情链接
  • 西昌规划和建设局网站网络推广员有前途吗
  • 创建电子商务网站的步骤免费发布信息的平台
  • 分类信息网站平台的推广郑州seo优化外包
  • 做网站优化词怎么选择快速优化网站排名软件