Socket
Socket
Sign inDemoInstall

mosse

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mosse

Fast correlation filters for tracking objects in video


Version published
Weekly downloads
85
increased by60.38%
Maintainers
1
Install size
1.13 MB
Created
Weekly downloads
 

Readme

Source

mosse

mosse.js is a javascript implementation of MOSSE correlation filters as described in Visual Object Tracking using Adaptive Correlation Filters 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) - Webcam example (tracking of eyes) - Webcam example (tracking of face)

Usage

To use with precreated filters, include build/mosse.js in your code:

<script src="js/mosse.js"></script>

then run the mossefilter on a canvas element:

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:

mfilter.track(element, left, top, width, height, true);

Keywords

FAQs

Last updated on 29 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc