Coder Social home page Coder Social logo

chen-si-jia / object-tracking-tld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuzand/object-tracking-tld

0.0 0.0 0.0 24 KB

C++ implementation of the Tracking-Learning-Detection (TLD) framework for object tracking.

License: MIT License

C++ 98.82% CMake 1.18%

object-tracking-tld's Introduction

Object-Tracking-TLD

C++ implementation of the Tracking-Learning-Detection (TLD) framework for long-term, single-object tracking in a video stream, developed by Kalal et al [1]. As its name suggests, it has three main components: tracking, detection and learning. The tracker estimates object's motion from frame to frame. The detector localizes the object in each frame and if necessary re-initializes the tracker. The results of the tracking and detection are fused into a single result (a bounding box), and if the result is valid then the learning step is performed to estimate the detector's errors and update the dector.

Dependencies

  • C++17
  • OpenCV (>=4.2.0)

Usage

To build the project with cmake:

mkdir build
cd build
cmake ..
make

To run it (within the build/ directory):

./my_tld [--input] [--output] [--gt_bboxes] [--evaluate]

Options:

  • --input string, input video path (or keyword "camera").
  • --output string, output video path (if not specified then no output is produces).
  • --gt_bboxes string, path to the file containing ground-truth bounding boxes.
  • --evaluate bool (1 or 0), whether to perform evaluation of the tracking or not (gt_bboxes has to be provided).

Examples:

--input="../videos/input_video.mp4"
--input="../Dudek/img/%04d.jpg" --output="../output_video.mp4"  --gt_bboxes="../Dudek/groundtruth_rect.txt" --evaluate=1
--input="cam" --output="../output_video.mp4"

For evaluation we used the tracking benchmark dataset: http://cvlab.hanyang.ac.kr/tracker_benchmark/datasets.html

Results

dancing_robot_out.mp4

Red bbox is the result of the cascade detector (after NMS), purple bbox of the median-flow tracker, green bbox of the fusion of the former two.

References

  1. Tracking-Learning-Detection, Z. Kalal, K. Mikolajczyk, J. Matas.
  2. Robust Object Tracking Based on Tracking-Learning-Detection, G. Nebehay.

Other imlementations

object-tracking-tld's People

Contributors

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