从特定进程/程序获取屏幕截图并对其进行简单的模式识别
我具体需要做什么。关于我的 Web 应用程序中按钮的单击事件。 我需要它来捕获
- 屏幕截图。
- 而不将程序或过程放在前面或将焦点放在它上面。
- 并对这个屏幕截图进行简单的模式识别。
- 识别函数将返回一个布尔值。
我认为那没那么容易。但我从来没有做过这样的事情,如果你能帮我弄清楚这是否可能,以及什么是一个干净的方法来做到这一点?
提示:我将尝试仅识别应用程序中的 RadioButton 值。我在模式识别方面没有太多经验,但我认为我不需要非常准确的算法或框架,因为输入质量和图片将完全相同。该应用程序只会找到特定文本旁边的“RadioButton”,或者如果我可以指定要识别图像的哪一部分,我就不需要文本了。并会判断是否已满!
人们会想知道为什么我需要我的应用程序来做到这一点! :D 所以你当然应该有一个这样做的理由 =)。
澄清:
我需要从应用程序获取“RadioButton”值,即 获得 API 甚至公共财产来共享是极其困难的 这个“RadioButton”的值!
人们投票反对并想结束我的问题!出于什么原因? .. 如果您不够开放,无法接受它并不总是 DataReader、int x、循环和典型的东西,我为您感到抱歉! 我的想法被关闭了,我努力让它重新启动。我真的很对不起你! =)
What specifically I need to do. On the click event of a button in my Web Application.
I need it to capture
- a screenshot.
- without bringing the program or the process to front or set focus on it.
- and process a simple pattern recognition for this screenshot.
- the recognition function will return a bool value.
I don't think that's that easy. but I've never done something like this, and if you could help me to figure out if it's possible and what's a clean way to do this ?
Hint: I'll be trying to recognize just a RadioButton value from an application. I don't have much experience in pattern recognition but I think I won't need a very accurate Algorithm or Framwork as the input quality and picture will be exactly the same. the application will just find the 'RadioButton' that's beside a specific text or if I could specify which part of the image to recognize I won't need the text thing. and it will determine whether it's filled or not!
People will wonder why on earth would I need my application to do that! :D so of course you deserve a reason why you are doing this =).
Clarification:
I need to get a 'RadioButton' value from an application, that is
extremely hard to get an API or even a public property to share the
value for this 'RadioButton'!
People are down voting and want to close my question! for what reason ? .. I'm sorry for you if you're not open enough to accept that it's not always DataReader, int x, loops and typical stuff!
My idea was shutdown and I fought to get it back on. I'm really sorry for you! =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要通过 html 和 javacript 进行屏幕截图根本不可能,您必须使用 flash 或 silverlight。
(手机发帖)
To take screen shot thru html and javacript is simply not possible, you have to use flash or silverlight.
(Posting from mobile)