Giter VIP home page Giter VIP logo

bfm-tools's Introduction

A C++ Impl Tool for Basel Face Model

A simple tool to use Basel Face Model (BFM) in C++.

Depend on:

  • Basel Face Model (version>=2017, because we need expression information);
  • Eigen3
  • HDF5 (version=1.12);
  • Dlib (version=19.21);
  • OpenCV with opencv_contrib (version<=3.4.10, because OpenCV4 remove some basic data structure like CvMat)

Note: You could use your own dataset whose format is similar with Basel Face Model, and you should change corresponding parameters.

How to use:

See example/ex_gen_faces.cpp. You need know information about your dataset as follows:

/path/to/basel_face_model.h5
n_vertice n_face n_id_pc n_expr_pc
fx fy cx cy
/h5_path/to/shape_mu /h5_path/to/shape_ev /h5_path/to/shape_pc
/h5_path/to/tex_mu /h5_path/to/tex_ev /h5_path/to/tex_pc
/h5_path/to/expr_mu /h5_path/to/expr_ev /h5_path/to/expr_pc
/h5_path/to_triangle_lists
n_landmark /path/to/landmark.anl

If landmark is not needed, use 0 to replace n_landmark /path/to/landmark.anl .

If needed, landmark.anl format is as follow:

landmark_idx[0] 
landmark_idx[1]
...
landmark_idx[n_landmark-1]

bfm-tools's People

Stargazers

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

Watchers

 avatar

bfm-tools's Issues

Ask the Basel Face Model 2019 version first

Hello, I would like to ask how to generate random Face using Basel Face Model 2019 version (that version is a.h5 file, I will not use),
I would be very grateful if you can help me,That version is a full human head

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.