Ask Your Question

Taking a Screenshot

asked 2012-08-24 11:57:57 -0500

Oboingo gravatar image

Hello everyone.

I have a mish-mash of old Python code that I use to take screenshots and do some processing on part of the screen. It works, but the process involves:

  1. Taking a screenshot and saving it to disk.
  2. Loading the file off the hard drive.
  3. Processing the file.
  4. Doing some logic.
  5. Goto #1. Repeating.

This happens several times per second. I am just starting to learn SimpleCV. I want to use it to clean up the old code and make it easier to work on and more powerful. So I am trying to "port" my old code over.

The first step is to find the best way to take the screenshot in the first place. It must be cross platform and, ideally, it would go only in memory without the need to go to and from the disk. Is this possible in SimpleCV?

edit retag flag offensive close merge delete


I would be glad to help, but I am not even sure I would know where to start for adding it. I have used several methods to do it, but all were code from someone else that I just re-purposed.

Oboingo gravatar imageOboingo ( 2012-08-24 13:58:39 -0500 )edit

PIL is not a great answer IMHO. It is not a cross platform solution. It only works on Windows, no Mac or Linux.

Oboingo gravatar imageOboingo ( 2012-08-24 16:56:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-24 13:05:07 -0500

kscottz gravatar image

We do not yet have support for screen capture camera. We have discussed it in the past. If you would like to implement one we can help you out. I have opened a feature request ticket for this functionality. Perhaps one of our GSoC interns who are just wrapping up might try to do it.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2012-08-24 11:57:57 -0500

Seen: 831 times

Last updated: Aug 24 '12