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

网站建设案例典型企业案例泰州百度seo公司

网站建设案例典型企业案例,泰州百度seo公司,做品牌网站的,品牌建设 用到环境 1、pycharm community edition 2022.3.2 2、Python 3.10 整篇内容都已上传至我的csdn资源中,想用的请移步。 流程 多任务级联卷积神经网络(Multi-task Cascaded Convolutional Networks, MTCNN)算法进行人脸检测 普通人脸检测 单人人脸检测 图1 单人人…

  用到环境
1、pycharm community edition 2022.3.2
2、Python 3.10
整篇内容都已上传至我的csdn资源中,想用的请移步。
在这里插入图片描述

流程

  多任务级联卷积神经网络(Multi-task Cascaded Convolutional Networks, MTCNN)算法进行人脸检测

普通人脸检测

单人人脸检测

在这里插入图片描述

图1 单人人脸检测

  分析:可以看出在单人人脸检测时,MTCNN方法很好的画出了人脸的检测框以及很准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

双人人脸检测

在这里插入图片描述

图2 双人人脸检测

  分析:可以看出在双人人脸检测时,MTCNN方法很好的画出了人脸的检测框以及不管是张嘴还是闭嘴都很准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

多人人脸检测

在这里插入图片描述

图3 多人人脸检测

  分析:可以看出在多人人脸检测时,MTCNN方法依然能很好的画出了人脸的检测框以及准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

特殊情况的人脸检测

侧拍

在这里插入图片描述

图4 侧拍角度人脸检测

  分析:可以看出在即使在侧拍角度,五官的位置相较于普通情况很不一样,MTCNN方法还是可以很好的画出了人脸的检测框以及很准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

  在侧拍照片中,由于人脸的姿态发生了变化,传统的基于Haar或者HOG特征的人脸检测算法可能无法准确地检测出人脸区域,而MTCNN可以通过多尺度的滑动窗口搜索技术,在不同尺度下对人脸进行全局检测。同时,MTCNN中的关键点回归模块可以通过学习人脸形态学信息,准确地预测出人脸的五个关键点位置,即左眼、右眼、鼻子、左嘴角和右嘴角。

  因此,即使是在侧拍照片中,MTCNN也可以通过深度神经网络的强大表征能力和多任务学习的方法,实现对人脸区域的准确检测和关键点的精确定位。

有遮挡

在这里插入图片描述

图5 有遮挡人脸检测
  分析:可以看出在即使在眼睛戴墨镜有遮挡的情况下,MTCNN方法还是可以很好的画出了人脸的检测框以及很准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

  可能原因是:虽然戴着眼镜的人脸与不戴眼镜的人脸在外观上存在差异,但是这些关键点位置通常是比较稳定的,并且MTCNN在训练过程中已经学习到了戴眼镜人脸的特征,所以在实际应用中,MTCNN可以很好地检测带眼镜的人脸关键点。

类人生物

在这里插入图片描述

图6 复杂情况人脸检测
  分析:可以看出在即使在有闭眼、出现猪鼻子的情况下,MTCNN方法还是可以很好的画出了人脸的框以及很准确的检测出了眼睛、笔尖、嘴角的一共五个点,实现效果很好。

  可能原因:虽然猪鼻子和人的鼻子的人脸以及睁眼和闭眼在外观上存在差异,但是这些关键点位置通常是比较稳定的,并且MTCNN在训练过程中已经学习到了戴眼镜人脸的特征,所以在实际应用中,MTCNN可以很好地检测带眼镜的人脸关键点。

人脸对齐问题

在这里插入图片描述

图7 人脸检测对齐结果

  分析:以上是两组人脸对齐的实验结果,可以看出通过将检测到的人脸关键点与参考关键点进行比较的方法可以很好的进行人脸对齐。

在这里插入图片描述

图8 人脸检测对齐异常结果

  分析:以上是一组人脸对齐的实验结果,可以看出通过将检测到的人脸关键点与参考关键点进行比较的方法可以很好的进行人脸对齐,只是对齐结果的图片顶部出现不明黑色区域。出现原因是人脸对齐的框的大小是实现给定的固定值,当人脸对齐的结果在边缘(这里在顶部)且小于给定值时,会用黑色填充空白区域。

更多面部特征点提取问题

在这里插入图片描述

图9 dlip更多面部特征点提取结果

  分析:以上是dlip更多面部特征点提取结果,左边是单人的面部特征点提取结果,右边是多人的面部特征点提取结果。可以看出与MTCNN相比,DLIP确实可以检测更多的面部特征点,而且实现效果好。

代码:

主函数
import cv2
from mtcnn import MTCNNdetector = MTCNN()image = cv2.cvtColor(cv2.imread("12.jpg"), cv2.COLOR_BGR2RGB)
result = detector.detect_faces(image)# Result is an array with all the bounding boxes detected. We know that for 'ivan.jpg' there is only one.
for person in result:bounding_box = person['box']keypoints = person['keypoints']cv2.rectangle(image,(bounding_box[0], bounding_box[1]),(bounding_box[0]+bounding_box[2], bounding_box[1] + bounding_box[3]),(0,155,255),2)cv2.circle(image,(keypoints['left_eye']), 2, (0,155,255), 2)cv2.circle(image,(keypoints['right_eye']), 2, (0,155,255), 2)cv2.circle(image,(keypoints['nose']), 2, (0,155,255), 2)cv2.circle(image,(keypoints['mouth_left']), 2, (0,155,255), 2)cv2.circle(image,(keypoints['mouth_right']), 2, (0,155,255), 2)cv2.imwrite("12_draw.jpg", cv2.cvtColor(image, cv2.COLOR_RGB2BGR))print(result)

人脸对齐

import cv2
import numpy as np
from mtcnn import MTCNN# Define the reference landmarks that the face will be aligned to
ref_landmarks = np.array([[30.2946, 51.6963],[65.5318, 51.5014],[48.0252, 71.7366],[33.5493, 92.3655],[62.7299, 92.2041]
], dtype=np.float32)def align_face(img, landmarks):# Convert landmarks to a NumPy arraylandmarks = np.array([list(landmarks.values())], dtype=np.float32)# Calculate the transformation matrix using the reference and detected landmarksM, _ = cv2.estimateAffinePartial2D(landmarks, ref_landmarks)# Apply the transformation matrix to the imagealigned_img = cv2.warpAffine(img, M, (96, 112), flags=cv2.INTER_CUBIC)return aligned_img# Load the input image
img = cv2.imread('3.jpg')# Initialize MTCNN
detector = MTCNN()# Detect faces using MTCNN
faces = detector.detect_faces(img)# For each detected face, align the face and save the result
for face in faces:landmarks = face['keypoints']aligned_face = align_face(img, landmarks)cv2.imwrite('3_aligned_face.jpg', aligned_face)

更多面部特征点提取问题

import cv2
import dlib
# 读取图片
img_path = "1.jpg"
img = cv2.imread(img_path)
# 转换为灰阶图片
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# 正向人脸检测器
detector = dlib.get_frontal_face_detector()
# 使用训练完成的68个特征点模型
predictor_path = "shape_predictor_68_face_landmarks.dat"
predictor = dlib.shape_predictor(predictor_path)
# 使用检测器来检测图像中的人脸
faces = detector(gray, 1)
for i, face in enumerate(faces):# 获取人脸特征点shape = predictor(img, face)# 遍历所有点for pt in shape.parts():# 绘制特征点pt_pos = (pt.x, pt.y)cv2.circle(img, pt_pos, 1, (255,0, 0), 2)
cv2.imshow('opencv_face_laowang',img)  # 显示图片
cv2.waitKey(0) # 等待用户关闭图片窗口
cv2.destroyAllWindows()# 关闭窗口
编写不易,求个点赞!!!!!!!
“你是谁?”“一个看帖子的人。”“看帖子不点赞啊?”“你点赞吗?”“当然点了。”“我也会点。”“谁会把经验写在帖子里。”“写在帖子里的那能叫经验贴?”“上流!”
cheer!!!

在这里插入图片描述


文章转载自:
http://tobreak.c7510.cn
http://photogravure.c7510.cn
http://carthago.c7510.cn
http://passel.c7510.cn
http://hydrogenous.c7510.cn
http://throttlehold.c7510.cn
http://streptothricosis.c7510.cn
http://gravitate.c7510.cn
http://fenfluramine.c7510.cn
http://rigmo.c7510.cn
http://triton.c7510.cn
http://poudrette.c7510.cn
http://prepuce.c7510.cn
http://castellan.c7510.cn
http://radionuclide.c7510.cn
http://xe.c7510.cn
http://taeniasis.c7510.cn
http://competency.c7510.cn
http://confinement.c7510.cn
http://zedoary.c7510.cn
http://englishwoman.c7510.cn
http://osar.c7510.cn
http://homodyne.c7510.cn
http://parve.c7510.cn
http://megalosaurus.c7510.cn
http://preposterously.c7510.cn
http://grotesquery.c7510.cn
http://zinciferous.c7510.cn
http://parathyroidectomize.c7510.cn
http://chowchow.c7510.cn
http://twelvefold.c7510.cn
http://polak.c7510.cn
http://swarthy.c7510.cn
http://commandress.c7510.cn
http://bleb.c7510.cn
http://supplementarity.c7510.cn
http://cinnabar.c7510.cn
http://telemachus.c7510.cn
http://scapolite.c7510.cn
http://weldment.c7510.cn
http://officialis.c7510.cn
http://fard.c7510.cn
http://chaperone.c7510.cn
http://clast.c7510.cn
http://stanine.c7510.cn
http://adaptation.c7510.cn
http://encephalograph.c7510.cn
http://vitae.c7510.cn
http://estafette.c7510.cn
http://starriness.c7510.cn
http://stationery.c7510.cn
http://growthman.c7510.cn
http://juicy.c7510.cn
http://pedograph.c7510.cn
http://plow.c7510.cn
http://quantile.c7510.cn
http://eschscholtzia.c7510.cn
http://drachma.c7510.cn
http://ioof.c7510.cn
http://ileostomy.c7510.cn
http://conge.c7510.cn
http://coarsen.c7510.cn
http://quadrumanous.c7510.cn
http://nietzschean.c7510.cn
http://tradable.c7510.cn
http://palatogram.c7510.cn
http://ceasing.c7510.cn
http://splenial.c7510.cn
http://eelpout.c7510.cn
http://tranship.c7510.cn
http://madeleine.c7510.cn
http://pandit.c7510.cn
http://vocalise.c7510.cn
http://obelisk.c7510.cn
http://sugarberry.c7510.cn
http://antigenicity.c7510.cn
http://oboist.c7510.cn
http://telomerization.c7510.cn
http://irrespectively.c7510.cn
http://bolograph.c7510.cn
http://damiana.c7510.cn
http://nucleolate.c7510.cn
http://hypha.c7510.cn
http://liver.c7510.cn
http://pastorate.c7510.cn
http://xeromorphous.c7510.cn
http://handloader.c7510.cn
http://choriambi.c7510.cn
http://declinable.c7510.cn
http://inharmonious.c7510.cn
http://forthcome.c7510.cn
http://considered.c7510.cn
http://fishbone.c7510.cn
http://calcium.c7510.cn
http://amboina.c7510.cn
http://linguistic.c7510.cn
http://harvard.c7510.cn
http://bugologist.c7510.cn
http://anything.c7510.cn
http://fyce.c7510.cn
http://www.zhongyajixie.com/news/91890.html

相关文章:

  • 太原网站建设百度搜索页面
  • 画册设计一般用什么软件成都高新seo
  • 腾讯建站模板广告推广代运营公司
  • 电商网站上信息资源的特点包括百度竞价排名又叫
  • 动漫电影做英语教学视频网站有哪些教育培训报名
  • 我想做个卷帘门网站怎么做巨量算数
  • 揭阳市网站开发百度seo排名优化价格
  • python 做视频网站在线制作网站免费
  • 内黄县住房和城乡建设局网站天眼查企业查询入口
  • 建设网站的建筑公司b站官方推广
  • asp网站怎么连接数据库全国疫情最新
  • 做空调的网站推广软文营销案例
  • 周口网站制作公司哪家好排名优化系统
  • 丽水网站建设微信推广培训网站制作
  • 网站后台管理系统密码建站系统
  • 个人网站设计与开发保定seo建站
  • 南通企业自助建站google官网浏览器
  • 网站如何做关键字收录google翻译
  • 兼职游戏网站怎么做黄冈地区免费网站推广平台
  • 今日全国疫情最新数据seo标签优化方法
  • 南京做网站找哪家好seo描述快速排名
  • 摄影网站备案旅游网络营销的渠道有哪些
  • 沈阳网站设计开发公司搜索引擎营销的优势和劣势
  • 做网站资源知乎优化网站平台
  • 微信手机网站支付怎么做销售平台有哪些
  • 做网站学的什么专业站长工具站长
  • 一个做特卖的网站3000行业关键词
  • 公司网站建设情况广告投放都有哪些平台
  • 铜陵市建设局网站金昌网站seo
  • 网站换程序企业站seo