码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • C# Onnx Dense Face 3D人脸重建,人脸Mesh


    目录

    介绍

    效果

    模型信息

    项目

    代码

    下载

    其他


    介绍

    github地址:GitHub - cleardusk/3DDFA_V2: The official PyTorch implementation of Towards Fast, Accurate and Stable 3D Dense Face Alignment, ECCV 2020.

    Introduction
    This work extends 3DDFA, named 3DDFA_V2, titled Towards Fast, Accurate and Stable 3D Dense Face Alignment, accepted by ECCV 2020. The supplementary material is here. The gif above shows a webcam demo of the tracking result, in the scenario of my lab. This repo is the official implementation of 3DDFA_V2.

    Compared to 3DDFA, 3DDFA_V2 achieves better performance and stability. Besides, 3DDFA_V2 incorporates the fast face detector FaceBoxes instead of Dlib. A simple 3D render written by c++ and cython is also included. This repo supports the onnxruntime, and the latency of regressing 3DMM parameters using the default backbone is about 1.35ms/image on CPU with a single image as input. If you are interested in this repo, just try it on this google colab! Welcome for valuable issues, PRs and discussions 😄

    效果

    图片源自网络侵删 

    模型信息

    Inputs
    -------------------------
    name:input
    tensor:Float[-1, 3, 120, 120]
    ---------------------------------------------------------------

    Outputs
    -------------------------
    name:camera_matrix
    tensor:Float[-1, 3, 4]
    name:landmarks
    tensor:Float[-1, 38365, 3]
    ---------------------------------------------------------------

    项目

    代码

    1. using OpenCvSharp;
    2. using System;
    3. using System.Collections.Generic;
    4. using System.Drawing;
    5. using System.Windows.Forms;
    6. namespace Onnx_Demo
    7. {
    8. public partial class frmMain : Form
    9. {
    10. public frmMain()
    11. {
    12. InitializeComponent();
    13. }
    14. string fileFilter = "*.*|*.bmp;*.jpg;*.jpeg;*.tiff;*.tiff;*.png";
    15. string image_path = "";
    16. DateTime dt1 = DateTime.Now;
    17. DateTime dt2 = DateTime.Now;
    18. Mat image;
    19. private void button1_Click(object sender, EventArgs e)
    20. {
    21. OpenFileDialog ofd = new OpenFileDialog();
    22. ofd.Filter = fileFilter;
    23. if (ofd.ShowDialog() != DialogResult.OK) return;
    24. pictureBox1.Image = null;
    25. pictureBox2.Image = null;
    26. textBox1.Text = "";
    27. image_path = ofd.FileName;
    28. pictureBox1.Image = new Bitmap(image_path);
    29. image = new Mat(image_path);
    30. }
    31. private void Form1_Load(object sender, EventArgs e)
    32. {
    33. }
    34. private void button2_Click(object sender, EventArgs e)
    35. {
    36. if (image_path == "")
    37. {
    38. return;
    39. }
    40. textBox1.Text = "检测中,请稍等……";
    41. pictureBox2.Image = null;
    42. Application.DoEvents();
    43. image = new Mat(image_path);
    44. Detect_Face detect_net = new Detect_Face(0.7f);
    45. Face_Mesh mesh_net = new Face_Mesh("mesh");//choices=["dense", "mesh"]
    46. dt1 = DateTime.Now;
    47. List<BoxInfo> bboxes = detect_net.detect(image);
    48. foreach (var item in bboxes)
    49. {
    50. mesh_net.detect(image, new List<BoxInfo>() { item });
    51. }
    52. dt2 = DateTime.Now;
    53. pictureBox2.Image = new Bitmap(image.ToMemoryStream());
    54. textBox1.Text = "推理耗时:" + (dt2 - dt1).TotalMilliseconds + "ms";
    55. }
    56. private void pictureBox2_DoubleClick(object sender, EventArgs e)
    57. {
    58. Common.ShowNormalImg(pictureBox2.Image);
    59. }
    60. private void pictureBox1_DoubleClick(object sender, EventArgs e)
    61. {
    62. Common.ShowNormalImg(pictureBox1.Image);
    63. }
    64. }
    65. }

    下载

    源码下载

    其他

    C++ 3D人脸重建,人头姿势估计,人脸Mesh-CSDN博客

  • 相关阅读:
    SpringSecurity启动流程源码深入刨析
    基于SSM的图书管理借阅系统设计与实现
    最高月薪20K?平均薪资近万...在华为子公司工作是什么体验?
    MySQL-TCL语言-transaction control language事务控制语言
    python入门-安装及环境配置(简单好用)
    一文看懂推荐系统:排序15:DeepFM模型(Factorization-Machine),xDeepFM可不是对DeepFM的改编哦,而是对DCN的改编
    【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释
    详细介绍Linux环境的搭建以及相关问题出现的解决
    NDI Tools使用介绍
    Flask自定义装饰和g的使用
  • 原文地址:https://blog.csdn.net/lw112190/article/details/134239669
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号