Git Product home page Git Product logo

lukas-kanade-tracking's Introduction

Lucas-Kanade-tracking-and-Correlation-Filters

This repository contains implementation of Lucas-Kanade algorithm proposed by Lucas and Kanade. Lucas-Kanade algorithm can be used for sparse optical flow (associate feature points across frames) and tracking (associate image patch cross frames).

This repo implements the algorithm for tracking a single template across 400 frames video.
Please download the data from here, unzip and put it in /data folder.

Lucas Kanade Tracking with one single template

The "vanilla" algorithm for tracking with single template from the first frame. Reference paper Lucas-Kanade 20 Years On: A Unifying Framework

Example

Run

python ./code/testCarSequence.py

Lucas Kanade Tracking with corrected template

To address the bbox drifting issue, reset the reference frame every 100 frames.Reference paper The Template Update Problem

Example

Run

python ./code/testCarSequenceWithTemplateCorrection.py

Lucas Kanade Tracking with appearance basis

The prior mehod may suffer from drastic appearance change like rotation or deformation, to address this issue, we can decompose the template into a series of bases, track the object with predefined bases.

Red bbox: w/o basis. Green bbox: w/ basis.

Example

Run

python ./code/testSylvSequence.py

Lucas Kanade Tracking with dominant affine motion

Example

Run

python ./code/testAerialSequence.py

lukas-kanade-tracking's People

Contributors

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