许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  基于DAD-3DHeads的特征点标记、姿态评估与头部3D对齐Demo

基于DAD-3DHeads的特征点标记、姿态评估与头部3D对齐Demo

阅读数 4
点赞 0
article_banner

写在前面


  • 工作中遇到,简单整理,博文为DAD-3DHeads 特征点标记、姿态评估、头部 3D 对齐 Demo
  • 理解不足小伙伴帮忙指正

不被喜欢的姑娘喜欢,是一件很伤心的事情,可天没有塌下来,该怎么活,还得怎么活。 ——烽火戏诸侯《剑来》


环境安装

克隆项目

https://github.com/PinataFarms/DAD-3DHeads.git

模型文件,如果没有科学上网,需要提前下载,放到家目录下: C:\Users\liruilong\.dad_checkpoints

dad_3dheads.trcd: https://media.pinatafarm.com/public/research/dad-3dheads/dad_3dheads.trcd

创建虚拟环境

(base) C:\Users\liruilong\Documents\GitHub>cd DAD-3DHeads_Demo

(base) C:\Users\liruilong\Documents\GitHub\DAD-3DHeads_Demo>conda create --name DAD-3DHeads python=3.8

(base) C:\Users\liruilong\Documents\GitHub\DAD-3DHeads_Demo>conda activate DAD-3DHeads

(DAD-3DHeads) C:\Users\liruilong\Documents\GitHub\DAD-3DHeads_Demo>pip install -r requirements.txt  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/

运行 Demo 测试

68 个特征点标记

(DAD-3DHeads) C:\Users\liruilong\Documents\GitHub\DAD-3DHeads_Demo> python demo.py images\\demo_heads\\1.jpeg outputs 68_landmarks

在这里插入图片描述

面部曲面标记

(DAD-3DHeads) C:\Users\liruilong\Documents\GitHub\DAD-3DHeads_Demo> python demo.py images/demo_heads/1.jpeg outputs face_mesh

在这里插入图片描述

头部3D曲面标记

python demo.py images/demo_heads/1.jpeg outputs head_mesh

在这里插入图片描述

姿态评估

python demo.py images/demo_heads/1.jpeg outputs pose

在这里插入图片描述

其他的所有 Demo

python demo.py <path/to/input/image.png> <path/to/output/folder> <type_of_output>

# Visualize 68 2D face landmarks
python demo.py images/demo_heads/1.jpeg outputs 68_landmarks

# Visualize 191 2D face landmarks
python demo.py images/demo_heads/1.jpeg outputs 191_landmarks

# Visualize 445 2D face landmarks
python demo.py images/demo_heads/1.jpeg outputs 445_landmarks

# Visualize face mesh
python demo.py images/demo_heads/1.jpeg outputs face_mesh

# Visualize head mesh
python demo.py images/demo_heads/1.jpeg outputs head_mesh

# Visualize head pose
python demo.py images/demo_heads/1.jpeg outputs pose

# Get 3D mesh .obj file
python demo.py images/demo_heads/1.jpeg outputs 3d_mesh

# Get flame parameters .json file
python demo.py images/demo_heads/1.jpeg outputs flame_params

博文部分内容参考

© 文中涉及参考 链接  内容版权归原作者所有,如有侵权请告知,这是一个开源项目,如果你认可它,不要吝啬星星哦 😃


https://github.com/PinataFarms/DAD-3DHeads
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

相关文章
技术文档
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空