Get a screenshot from a specific process/program and process a simple pattern recognition on it

白昼怎懂夜的黑 提交于 2019-12-25 02:12:10

问题


What specifically I need to do. On the click event of a button in my Web Application. I need it to capture

  1. a screenshot.
  2. without bringing the program or the process to front or set focus on it.
  3. and process a simple pattern recognition for this screenshot.
  4. 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! =)


回答1:


To take screen shot thru html and javacript is simply not possible, you have to use flash or silverlight.

(Posting from mobile)



来源:https://stackoverflow.com/questions/7701294/get-a-screenshot-from-a-specific-process-program-and-process-a-simple-pattern-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!