GithubHelp home page GithubHelp logo

lincolnhard / face-point-shape-model-tracking Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 5.0 192 KB

ancient code with deprecated function, refactoring required

C 99.64% C++ 0.36%
face-alignment face-tracking face-detection shape-models face-shape asm

face-point-shape-model-tracking's Introduction

face-point-shape-model-tracking

Modified and inspired from https://github.com/MasteringOpenCV/code/tree/master/Chapter6_NonRigidFaceTracking

The method is similar to ASM, but it use template matching for landmark tracking instead of active contour.

I use 24 landmarks to build shape model, which are label 27-36, 38-44, 48, 49, 51, 53, 54, 56, 58 in MUCT annotation. http://www.milbo.org/muct/muct-landmarks.html

There are 8 bases in shape model, 4 rigids and 4 non-rigids.

The 4 rigid bases are representing scale, in-plane rotation, translation in x direction, and translation in y direction.

The 4 non-rigid bases are head pitch, certain facial expression, head yaw, certian facial expression:

4 5 6 7

By projecting landmarks to the subspace formed by 4 rigid and 4 non-rigid bases, then project back, we can have a standard enough face shape. Furthoemore, limit the weight of each non-rigid basis using its standard deviation makes every face shape common.

Tracking code is re-written in C-style, and scaled down patch matching search area for faster performance.

bug

face-point-shape-model-tracking's People

Contributors

lincolnhard avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.