Git Product home page Git Product logo

colortracker's Introduction

Introduction

This C++ code is an implementation of the visual tracking method proposed in [1]. The implementation is based on the Matlab code provided by the authors of the paper. The implementation in C++ using openCV was done by Mostafa Izz.

Compile

Pre-requirements:

  • C++ compiler with C++11 support
  • OpenCV 2.4 development files
  • CMake 2.8.3+
# download/clone the repo
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make

Demo Run

$ cd ColorTracker
$ ./build/demo-video

API

There are two interfaces provided in the code in class "color_tracker"

  1. cv::Rect track_frame(cv::Mat &current_frame) Provided to track frame by frame So, the parameters needed to be passed to the constructor are used for intializing the bounding box only.
  2. void track_video(double start_second = 0, double end_second = 0) Provided to track video In the second case the video path should be provided in the parameters passed to the constructor.

There are examples on both interfaces in the file demo-video.cpp There is a simple example in the file demo-vot.cpp for usage with the VOT challenge.

The code was tested under two environments:

1- Windows 7 using visual studio 2013 with openCV 2.4.9 2- Ubuntu 14.04 with GCC 4.8.2 with openCV 2.4.9

Contact

Mostafa Izz [email protected]

References

[1] Martin Danelljan, Fahad Shahbaz Khan, Michael Felsberg and Joost van de Weijer. "Adaptive Color Attributes for Real-Time Visual Tracking". Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2014.

colortracker's People

Contributors

mani-monaj avatar

Stargazers

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

Watchers

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