Outputs perceptual hash and face objects that are present on the image;
Requires phash, cimg, imagemagick and opencv to be installed.
It must be noted that due to the limitation of phash, which only accepts
file paths, we must have access to some folder, where we can write tmp files.
By default module uses
os.tmpdir() + '/image-tag-' + pkg.version directory to store files,
and cleans them up after they had been processed. If you want to speed up processing and only
pay the price of copying memory (which is, of course, still not ideal) - create ramdisk and use it
npm install image-tag -S
TODO: list libraries needed to install
Accepts image buffer and outputs tagged image:
var ImageTag = ;var imageTag =tmpDir: '/path/to/ramdisk'faceProfiles: false // you can pass paths to custom xml haar cascades, that will be used to detect faces. In fact you can detect smth other than a face herephash: true // determines whether we need to calculate phashphashBinary: true // should we calculat it?face: true // determines whether we need to detect facesize: true // do we need to report size? Add width, height to the response;// works only with png and jp(e)g images, so if you need to do this with other formats// please convert your image beforehandimageTag;