python 姿势估计_Python中的实时头姿势估计

python 姿势估计

Head pose estimation is a challenging problem in computer vision because of the various steps required to solve it. Firstly, we need to locate the face in the frame and then the various facial landmarks. Now, recognizing the face seems a trivial task in this day and that is true with faces facing the camera. The problem arises when the face is at an angle. Add to that some facial landmarks are not visible due to the movement of the head. After this, we need to convert the points to 3D coordinates to find the inclination. Sounds like a lot of work? Don’t worry we will go step by step and refer two great resources that will make our work a lot easier.

头部姿势估计在计算机视觉中是一个具有挑战性的问题,因为解决它需要采取各种步骤。 首先,我们需要在框架中定位面部,然后定位各种面部标志。 现在,识别脸部在今天看来是一件微不足道的任务,对于面对相机的脸部来说确实如此。 当面部倾斜时会出现问题。 此外,由于头部的移动,一些面部标志也看不见。 之后,我们需要将这些点转换为3D坐标以找到倾斜度。 听起来需要很多工作? 不用担心,我们将一步一步地介绍两个重要的资源,这些资源将使我们的工作更加轻松。

目录 (Table of Contents)

  • Requirements

    要求
  • Face Detection

    人脸检测
  • Facial Landmark Detection

    脸部地标检测
  • Pose Estimation

    姿势估计

要求 (Requirements)

For this project, we need OpenCV and Tensorflow so let’s install them.

对于此项目,我们需要OpenCV和Tensorflow,因此让我们安装它们。

#Using pip
pip install opencv-python
pip install tensorflow#Using conda
conda install -c conda-forge opencv
conda install -c conda-forge tensorflow

人脸检测 (Face Detection)

Our first step is to find the faces in the images on which we can find facial landmarks. For this task, we will be using a Caffe model of OpenCV’s DNN module. If you are wondering how it fares against other models like Haar Cascades or Dlib’s frontal face detector or you want to know more about it in-depth then you can refer to this article:

我们的第一步是在图像中找到可以找到面部标志的面Kong。 对于此任务,我们将使用OpenCVDNN模块的Caffe模型。 如果您想知道它与Haar Cascades或Dlib的正面人脸检测器之类的其他型号相比效果如何,或者想深入了解它,那么可以参考本文:

You can download the required models from my GitHub repository.

您可以从GitHub

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值