问题描述
我希望能够比较来自一个摄像头拍摄到存储在我的计算机上的图像的图像。
I want to be able to compare an image taken from a webcam to an image stored on my computer.
该库不需要百分之百准确,因为它不会在任何关键任务(例如警方调查),我只是想要的东西'OK'我可以工作使用。
The library doesn't need to be one hundred percent accurate as it won't be used in anything mission critical (e.g. Police investigation), I just want something 'ok' I can work with.
我已经尝试了示范项目图像识别从$ C $的CProject 和它仅适用于小的图像/不工作的时候,当我比较确切的同一图像120x90像素(这个不属于OK:P)。
I have tried a demonstration project for Image Recognition from CodeProject, and it only works with small images / doesn't work at all when I compare an exact same image 120x90 pixels (this is not classified as 'ok' :P ).
有没有人在这里曾与图像识别之前的成功?
Has anybody here had success with image recognition before?
如果是的话,你可以提供一个链接到图书馆,我可以用C#使用或VB.NET?
If so, would you be able to provide a link to a library I could use in either C# or VB.NET?
在此先感谢。 :)
推荐答案
您可以试试这个:的http:// code.google.com / P / aforge /
它包括一个对比分析,会给你一个分数。有各类其他许多伟大的影像学特征包括在内。
It includes a comparision analysis that will give you a score. There are many other great imaging features of all types included as well.
// 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
}
这篇关于是否有任何“OK”图像识别库.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!