node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

ImageSimilarity

Open Anslem opened this issue 11 years ago • 5 comments

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?

Anslem avatar Jun 29 '15 13:06 Anslem

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 ]

sleungcy avatar Jul 19 '15 04:07 sleungcy

@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.

sleungcy avatar Jul 19 '15 04:07 sleungcy

I'm using this and works well: https://www.npmjs.com/package/phash

davduran avatar Oct 05 '15 15:10 davduran

https://github.com/AVVS/image-tag - this one is for tagging images / face detection

AVVS avatar Oct 05 '15 16:10 AVVS

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.

jhedin avatar Jan 15 '16 06:01 jhedin