ImageSimilarity
I try to use function ImageSimilarity, but dissimilarity allways equal NaN. The example dissimilarity.js also gives NaN. Can I understand, what is a reason?
Hi, I am having the exact same issue too. Can anybody help? I am trying to compare images cropped from a bigger image. It seems to me the NaN issue only shows up if the images were cropped? I am not sure if the issue happens because I cropped the image? or because the images were too small. they are [ Matrix 50x89 ]
@Anslem What was the size of the files you were comparing? I am testing out smaller images with width < 50 and can consistantly get this issue. Also, I worked around this issue by scaling up the image to 100px, the image works again then.
I'm using this and works well: https://www.npmjs.com/package/phash
https://github.com/AVVS/image-tag - this one is for tagging images / face detection
The example gives NaN because it's not actually opening the pictures. Thus it passes in two empty matrices, and finds no matches.
I'm finding that Image similarity doesn't call it's callback when it is given images.