我希望能够将从网络摄像头拍摄的图像与存储在我计算机上的图像进行比较。
这个库不需要百分之百准确,因为它不会用于任何关键任务(例如警方调查),我只想要一些我可以使用的OK。
我尝试过Image Recognition from CodeProject的一个演示项目,它只适用于小图像/当我比较完全相同的图像120x90像素时,它根本不起作用(这不属于OK :P )。
以前在图像识别方面取得过成功吗?
如果是这样,您能提供一个我可以在C#或VB.NET中使用的库的链接吗?
发布于 2008-09-30 07:16:34
你可以试试这个:http://code.google.com/p/aforge/
它包括一个比较分析,将给你一个分数。还有许多其他所有类型的优秀成像功能也包括在内。
// 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
}
发布于 2010-10-26 23:58:38
您完全可以为.NET使用EmguCV。
发布于 2012-09-14 17:32:17
我做得很简单。只需下载EyeOpen库here即可。然后在您的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");
}
https://stackoverflow.com/questions/152028
复制相似问题