hugh-detector
detect the color red in an image
example
var hugh = ;var fs = ;var buf = fs;var detected = ;consoledirdetected;
$ node example/detect.js example/red_00.jpg
true
$ node example/detect.js example/notred_00.jpg
false
methods
var hugh =
var detected = hugh(width, height, buf)
Return whether the image data in buf
with dimensions width
and height
contains sufficient redness as a boolean.
install
With npm do:
npm install hugh-detector
license
MIT