Giter VIP home page Giter VIP logo

face-tracking-pf's Introduction

Face-Tracking-PF

This is a repo for course project of EL2320 Applied Estimation at KTH. This project is an implementation of an integrated face tracker using color-based and moment-based particle filters (PFs).

To test the functionality of the face tracker, videos of moving faces are fed into the system and particles as prediction are labeled in each frame of the video. Particles are in the represention of bounding boxes with different colors. The code is mainly done in Matlab. For more details, please read the report.

Pipeline

  • Obtain initial state of the face target using Haar feature-based cascade classifier
  • Generate particles around initial state and propagate them
  • Measure histogram similarities between particles and face target for color-based and moment-based model
  • Perform systematic resampling for particles
  • Fuse estimations from color-based and moment-based model

Contents

  • In the "code" folder, run the script main_ICM.m to see how the integrated face tracker works; run the script main_clr.m to see how the color-based face tracker works alone.
  • In the "videos" folder, sample3.mp4 and sample4.mp4 are input videos, and the others are outputs from the face tracking system.
  • In the "doc" folder, you can find the report with more details.

Results

Color-based PF (left: particles + posterior state; right: posterior state)

Red bounding boxes represent particles; blue bounding box represents posterior state.

Integrated PF (left: particles + posterior state; right: posterior state)

Red and blue bounding boxes represent particles and posterior state from color-based model; yellow and black bounding boxes represent particles and posterior state from color-based model.

Error performances of different particle filters

Findings

  • Moment-based PF performs better dynamically and responds quickly when target changes its moving direction;
  • Color-based PF is more stable but responds relatively slowly compared with moment-based PF;
  • Integrated PF takes advantages of the above two PFs and outperforms them in general.

References

[1] Nummiaro, Katja, Esther Koller-Meier, and Luc Van Gool. "An adaptive color-based particle filter." Image and vision computing 21.1 (2003): 99-110. [paper]

[2] Junxiang, Gao, Zhou Tong, and Liu Yong. "Face tracking using color histograms and moment invariants." Broadband Network & Multimedia Technology, 2009. IC-BNMT'09. 2nd IEEE International Conference on. IEEE, 2009. [paper]

face-tracking-pf's People

Contributors

txzhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.