如何将图像与桌面屏幕进行比较 [英] How to compare images with desktop Screen
问题描述
所以我开始在Windows窗体中开发我的新项目,并且不知道从什么开始。所以我想将dektop Screen与位于一个File中的图像进行比较。如果屏幕包含文件中的一个图像,则必须执行某些操作(这对于例如抛出异常并不重要)。主要的障碍是当我运行这个程序时必须进行比较,直到我没有点击特定的按钮,在这个时候屏幕可以多次更改,例如我在互联网上寻找某些东西,当它从文件中检测到图像时必须报告我。因此,我认为最好的方法是每秒制作许多截图,并将其与图像进行比较。因此,如果有人有另一个想法或者知道我必须以哪种方式移动,请写下来。
So I am beginning working on my new Project in windows Forms and donn't know with what to start. So I want to compare dektop Screen with images, which are located in one File. If Screen includes one of the images from file it have to do something(this isn't important for example throw exception). Main obstacle is that when I run this program It have to make comparission until I donn't click a specific button, in this time Screen can be changed many times, for example I am looking somthing in Internet and when it detects image from file it have to report me. So I think that the best way fo this will be to make many Screenshots for example in every second and compare it with images. So if anyone has another idea or knows in which way I have to move please write it.
推荐答案
这里有一些指向比较图像的项目和方法的链接。 />
希望他们帮忙。
代码项目链接
Stack Exchange链接
用于比较图像的MSDN方法。
Here are some links to projects and methods to compare images.
Hope they help.
Code project link
Stack Exchange link
MSDN method to compare images.
这篇关于如何将图像与桌面屏幕进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!