Javascript implementation of Maximally Stable Extremal Regions (MSER) algorithm
$ bower install mser
This implementation is intended for realtime MSER detection in the browser (on a canvas rendering context ImageData object). For algorithm parameters, please read this article. The extract method returns an array with detected regions.
var canvas = document.getElementById("canvas"),
context = canvas.getContext("2d"),
mser = new MSER({
delta: 2,
minArea: 0.001,
maxArea: 0.5,
maxVariation: 0.5,
minDiversity: 0.33
}),
regions = mser.extract(context.getImageData(50, 50, 100, 100));
// ...