https://github.com/auduno/mosse
Fast javascript correlation filters for tracking objects in video
https://github.com/auduno/mosse
computer-vision
Last synced: about 1 year ago
JSON representation
Fast javascript correlation filters for tracking objects in video
- Host: GitHub
- URL: https://github.com/auduno/mosse
- Owner: auduno
- License: mit
- Created: 2012-12-20T23:17:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T11:21:20.000Z (about 9 years ago)
- Last Synced: 2025-06-08T23:52:04.697Z (about 1 year ago)
- Topics: computer-vision
- Language: JavaScript
- Size: 16 MB
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
mosse
=====
**mosse.js** is a javascript implementation of MOSSE correlation filters as described in [*Visual Object Tracking using Adaptive Correlation Filters*](http://www.cs.colostate.edu/~draper/papers/bolme_cvpr10.pdf) by David Bolme. The library provides three prebuilt MOSSE filters for tracking of left and right eye and face, as well as tools for building your own filters. These three filters were trained on faces from the MUCT image database.
[Video example (tracking of eyes)](https://auduno.github.io/mosse/examples/filtertest_video.html) - [Webcam example (tracking of eyes)](https://auduno.github.io/mosse/examples/filtertest_gum.html) - [Webcam example (tracking of face)](https://auduno.github.io/mosse/examples/filtertest_gum_face.html)
### Usage ###
To use with precreated filters, include `build/mosse.js` in your code:
```html
```
then run the mossefilter on a canvas element:
```JavaScript
var mfilter = new mosse.mosseFilter();
mfilter.load(mosse.filters.face_filter);
var mode = mfilter.track(element, left, top, width, height);
// returns mode of correlation filter output inside window, relative to midpoint of window
// where `element` is a canvas element, and `left`, `top`, `width` and `height`
// define the window on the canvas element
```
You can also update filter during tracking, by setting final parameter to true:
```JavaScript
mfilter.track(element, left, top, width, height, true);
```