.NET 有没有好的图像识别库? [英] Are there any OK image recognition libraries for .NET?

查看:35
本文介绍了.NET 有没有好的图像识别库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够将从网络摄像头拍摄的图像与存储在我的计算机上的图像进行比较.

I want to be able to compare an image taken from a webcam to an image stored on my computer.

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

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.

我已经为 CodeProject 的图像识别 尝试了一个演示项目,它仅适用于小图像/当我比较完全相同的 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 there been any 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 comparison 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
}

这篇关于.NET 有没有好的图像识别库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆