有没有任何好的图像识别库的.NET?

我希望能够将从networking摄像头拍摄的图像与存储在我的电脑上的图像进行比较。

图书馆不需要百分百的准确,因为它不会被用于任何关键的任务(例如警方调查),我只想要一些我可以使用的东西。

我已经尝试了一个CodeProject的图像识别示范项目,它只适用于小图像/根本不工作,当我比较完全相同的图像120×90像素(这不是分类为OK:P)。

图像识别之前有没有成功?

如果是这样,你能提供一个链接到我可以在C#或VB.NET中使用的库吗?

你可以试试这个: http : //code.google.com/p/aforge/

它包括一个比较分析,会给你一个分数。 还有其他许多其他伟大的成像function。

// The class also can be used to get similarity level between two image of the same size, which can be useful to get information about how different/similar are images: // Create template matching algorithm's instance // Use zero similarity to make sure algorithm will provide anything ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching(0); // Compare two images TemplateMatch[] matchings = tm.ProcessImage( image1, image2 ); // Check similarity level if (matchings[0].Similarity > 0.95) { // Do something with quite similar images } 

你可以使用EmguCV for .NET。

我简单地做了。 只需在这里下载EyeOpen库。 然后在你的C#类中使用它,写下这个:

  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"); }