C#中的图像识别 [英] Image recognition in C#

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

问题描述

大家都在读这个。



首先我不是专业人士,我只是为了好玩而编码。好吧,我想创建一个涉及图像识别的新项目,没有什么难的只是一个采取图像的应用程序,并尝试找到最后一个内的其他图像,例如:尝试在屏幕截图中找到一个图标并确定其坐标,图像正在移动所以我需要每秒至少读取10个屏幕截图。我想在C#中做到这一点(我不是很熟悉它,但这没什么大不了的)但是如果有一个更好的文档库我可以用它来学习一种新的编码语言,所以随意推荐任何库或随你。



提前感谢!!



我的尝试: < br $>


i正在寻找一个图书馆,但我不知道。

解决方案

图像识别=不容易尊重。



Google为Aforge。它可以为你处理繁重的图像识别,虽然你仍然需要做大量的工作来实现它。


好吧,如果我是你我对于'c#图像识别'来说,已经开始使用优秀的Google了。作为我,我已经知道2个库可能会帮助



OpenCV(使用Emgu CV包装器):Emgu CV:.NET中的OpenCV(C#,VB,C ++等) [ ^ ]

AForge: AForge .NET :: Computer Vision,Artificial Intelligence,Robotics [ ^ ]



并快速检查StackOverflow显示此类似图像查找器 - .NET图像处理C#和RGB投影 - 主页 [ ^ ]可能很有用



您可能不得不花费大量时间学习语言,尝试使用图书馆,可能会尝试另外的图书馆里昂 - 他们会带来'一些'教程,你需要的很多信息可能在网上的其他地方虽然


引用:

图像识别



据我所知,'图像识别'更像是在现实生活中找到一张脸或一辆汽车。

所以,我不确定图像识别的措辞是否适合您的需要。



您的请求是在大型中找到一张小图片(图标)一个(截图)是一个非常简化的问题。



我同意对于第一个问题,我会寻找像Dave推荐的Aforge这样的库。 br />
但是对于你的问题,我只是尝试自己做这个程序。

这主要是扫描截图并查找图标的匹配。


hi everyone reading this.

first of all im not a pro, i just code for fun. well the thing is that i wanna make a new project that involve image recognition, nothing hard just an app that take an image and try find for an other image inside the last one for example: try to find an icon in a screenshot and identify its coordinates, that image is moving so i need to read at least 10 screenshots per second. i will like like to do it in C# (im not pretty familiar with it but thats not big deal) but if there is a better documented library out there i can use it to learn a new coding language so feel free to recommend any library or whatever.

thanks in advance!!

What I have tried:

i was looking for a library but i have no clue.

解决方案

Image recognition = NOT easy in any respect.

Google for "Aforge". It can handle the heavy lifting of image recognition for you, though you're still going to have to do a considerable amount of work to get it going.


well, if I were you I'd have started with good old Google, for 'c# image recognition'. Being me, I already know of 2 libraries that may help

OpenCV (using Emgu CV wrapper) : Emgu CV: OpenCV in .NET (C#, VB, C++ and more)[^]
AForge : AForge.NET :: Computer Vision, Artificial Intelligence, Robotics[^]

and a quick check on StackOverflow shows this Similar images finder - .NET Image processing in C# and RGB projections - Home[^] may be useful

You're likely going to have to spend a good amount of time learning the lingo, trying a library out, possibly trying another library out for comparison - they will come with 'some' tutorials, a lot of the info you need could be elsewhere on the net though


Quote:

image recognition


As I understand it, 'image recognition' is more like finding a face or a car in a real life picture.
So, I am not sure the wording "image recognition" fit to your need.

Your request is finding a small picture (icon) in a large one (screenshot) is a vastly simplified problem.

I agree that for the first problem, I would look for a library like "Aforge" like recommended by Dave.
But for your problem, I would simply try to do the program by myself.
It is mainly a matter of scanning the screenshot and find a match of the icon.


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

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