Giter VIP home page Giter VIP logo

bfm-visual-tool's Introduction

BFM模型可视化工具 - C++

通过C++和Qt5构建的一个Basel人脸模型(Basel Face Model, BFM)的可视化工具。

功能介绍

生成随机人脸

设置random range 后的滑动条,可以调节随机程度(正态分布的方差),0.0时为平均脸。

设置完成之后点击下方按钮即可在左侧生成随机人脸。

设置PC权重

可以修改面部Shape、Texture和Expr的PC权重,BFM共有199个PC可以在左侧下拉栏中选择,右测滑动条调节数值大小,调节完成后点击对应的按钮完成设置。

[NOTE] 修改PC权重需要在已经生成人脸的前提下使用

将生成人脸存储到文件

目前支持的文件格式仅有PLY格式,可以通过MeshLab打开进行查看。

其他功能

预然人脸操作

该部分通过Qt5内置OpenGL实现,支持按键如下:

  • 鼠标左键:长按后可以拖拉旋转人脸;
  • 鼠标滚轮:缩放;
  • 键盘A/W/S/D:向左转/放大/向右转/缩小。

bfm-visual-tool's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bfm-visual-tool's Issues

提示无法打开源文件 <QtWidgets/QApplication>怎么办

我在用visual studio 2019打开bfm_visual_tool.sln的时候,#include <QtWidgets/QApplication>这一行 提示无法打开源文件 <QtWidgets/QApplication>,按照提示我通过vcpkg安装了qt5,能通过visual studio 2019新建一个qt文件,但是运行本项目main.cpp文件的时候,#include <QtWidgets/QApplication>这一行还是会报错,请问要怎么办呢?

1>Done building project "bfm_visual_tool.vcxproj" -- FAILED.

With Visual Studio 2017

1>------ Build started: Project: bfm_visual_tool, Configuration: Debug x64 ------
1>QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.
1>source.cpp
1>bfm.cpp
1>main.cpp
1>MainWindow.cpp
1>OpenGLWidget.cpp
1>random.cpp
1>c1xx : fatal error C1083: Cannot open source file: '....\Software\dlib\dlib-19.17\dlib-19.17\dlib\all\source.cpp': No such file or directory
1>d:\bfm-visual-tool\bfm_visual_tool\mainwindow.h(10): fatal error C1083: Cannot open include file: 'QtWidgets/QMainWindow': No such file or directory (compiling source file main.cpp)
1>d:\bfm-visual-tool\bfm_visual_tool\mainwindow.h(10): fatal error C1083: Cannot open include file: 'QtWidgets/QMainWindow': No such file or directory (compiling source file MainWindow.cpp)
1>d:\bfm-visual-tool\bfm_visual_tool\openglwidget.h(11): fatal error C1083: Cannot open include file: 'QWidget': No such file or directory (compiling source file OpenGLWidget.cpp)
1>d:\bfm-visual-tool\bfm_visual_tool\vec.h(2): fatal error C1083: Cannot open include file: 'dlib/matrix.h': No such file or directory (compiling source file bfm.cpp)
1>d:\bfm-visual-tool\bfm_visual_tool\random.h(4): fatal error C1083: Cannot open include file: 'dlib/matrix.h': No such file or directory (compiling source file random.cpp)
1>Done building project "bfm_visual_tool.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.