GithubHelp home page GithubHelp logo

aimlabmu / mosse-tracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jjhbw/mosse-tracker

0.0 0.0 0.0 4.17 MB

A proof-of-concept implementation of the MOSSE video object tracking algorithm by Bolme et al.

License: MIT License

Rust 80.86% HTML 19.14%

mosse-tracker's Introduction

MOSSE tracker in Rust

A Rust implementation of the Minimum Output Sum of Squared Error (MOSSE) tracking algorithm, as presented in the 2010 paper Visual Object Tracking using Adaptive Correlation Filters by David S. Bolme et al.

example

For a bit of extra context, check out the accompanying blog post at https://barkeywolf.consulting/posts/mosse-tracker/.

Running it

Cut up a video into frames

ffmpeg -i ./testdata/traffic.mp4 -vf fps=30 ./testdata/traffic/img%04d.png

Run the example binary

Running a debug build (not using the --release flag) will dump the state of the filter at each frame to a file and will output additional debug information. Note that the image filenames need to be provided in order. Below commands should result in test_tracking.mp4.

cargo run --release --example demo $(ls ./testdata/traffic/img0*.png) &&\
ffmpeg -y -framerate 30 -i ./predicted_image_%4d.png -pix_fmt yuv420p test_tracking.mp4 &&\
rm *.png

Run web example

wasm-pack build --no-default-features --target web
python3 -m http.server

Open http://localhost:8000 and allow webcam access.

Evaluate on the votchallenge dataset

See /examples/votchallenge. Thanks @alsuren for contributing the necessary code!

mosse-tracker's People

Contributors

jjhbw avatar chriamue avatar alsuren 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.