自由/开放图书馆找到类似的图片类似、图书馆、自由、图片

2023-09-03 13:01:25 作者:一个醒不来的梦

我在寻找稳定和成熟的自由/开源库可以比较两个图像。

I'm looking for stable and mature free/opensource library allows to compare two images.

我发现这一个,但我想知道,如果你用一个更好的!

I found this one but I want to know if you use a better one!

相似图片搜索器 - .NET图片在C#和RGB处理

推荐答案

我做到了simply.Just下载EyeOpen库的这里。 然后用它在你的C#类,并写:

I did it simply.Just download EyeOpen Library here. then use it in your c# class and write this:

 use eyeopen.imaging.processing

ComparableImage cc;

ComparableImage pc;

int sim;

void compare(object sender, EventArgs e){
    pc = new ComparableImage(new FileInfo(files));
    cc = new ComparableImage(new FileInfo(file));

    pc.CalculateSimilarity(cc);
    sim = pc.CalculateSimilarity(cc);

    int sim2 = sim*100

    Messagebox.show(sim2 + "% similar");

}
 
精彩推荐
图片推荐