GithubHelp home page GithubHelp logo

zanazakaryaie / object_tracking Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 5.0 5.5 MB

Object trackers you deserve!

Home Page: http://imrid.net/?p=4441

CMake 1.59% C++ 98.39% Shell 0.02%
kcf dlib correlation-tracker fast klt mosse multiscale tracker

object_tracking's Introduction

object_tracking

This repo contains C++ examples to use the following object trackers:

  • Multi-Scale KCF
  • Multi-Scale MOSSE (from Dlib)

Also, there is another tracker that I implemented for ARM CPUs. It extracts FAST keypoints from the detected object, tracks them by KLT algorithm, and maps the bounding box to a new box using the estimated similarity transformation between the points.

In addition to being multi-scale, all the trackers would report failures when the object is no longer in the scene or the tracking quality is below a threshold. This makes them very applicable to real-world projects. Feel free to use and send me PRs if you found better trackers :)

How to Build?

Go inside each folder and then:

mkdir build
cd build
cmake ..
make

Run the generated executable and enjoy! It detects face in the video using a pre-trained SSD model and then tries to track it in the subsequent frames.

Note

  1. If you don't have Dlib on your computer, install it via:
sudo apt-get install build-essential cmake pkg-config 
sudo apt-get install libx11-dev libatlas-base-dev 
sudo apt-get install libgtk-3-dev libboost-python-dev 

git clone https://github.com/davisking/dlib.git 
cd dlib 
mkdir build 
cd build 
cmake .. cmake --build . --config Release 
sudo make install 
sudo ldconfig
  1. A python implementation of fast-klt tracker is availbale here.

Appendix

For more details read my post here.

object_tracking's People

Contributors

zanazakaryaie avatar

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

Watchers

 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.