Package Exports
- image-correlation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (image-correlation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-image-correlation
Concept
Can be check similar two images from nodeJS.
Function signiture & Processing
It's return Similarity/Correlation rate.
function correlation(sourceArray: Array, targetArray: Array): float;
Install
npm i image-correlation
How to use
var {imageCorrelation} = require("image-correlation");
imageCorrelation(image, image); // return 0.493196962
image: url is the path to the file. It can be a relative path, an http url, a data url, or an in-memory Buffer.