“Brilliant people simplify things, and mediocre people complicate things.” — Unknone

OLPC Spy Cam

So now that I have my XO OLPC computer I wanted to find something to do with it. As I said before its the web cam that really impressed me and so I decided to start playing with that. After jumping onto the # freenode irc room and asking them a few questions I was quickly able to write this program.

Set it up as a cron job and upload pictures from outside my apartment window every hour. I’m not sure how long ill be keeping it running and if I play with the laptop and dont turn off the script I guess it will upload of me.

Well for anyone interested the important code to take a picture is: [sourcecode language=""]os.system(’gst-launch-0.10 v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=’ + filename)[/sourcecode] and I would love to hear what you have been doing with your XO.

Tags: , , , , , , ,

13 Comments

rssComments RSS transmitTrackBack Identifier URI


I don’t have an XO, but I think this is wonderful stuff: good for the kids, and a wonderful opportunity for Linux evangelism.

I had two calls this week from new XO owners who needed a little help.. I have never seen one of the darn things so I couldn’t do much, but at least I explained some basics (like, no, you aren’t connecting to a special “Linux Internet” - it’s the same World Wide Web you already go to).

Comment by Anthony Lawrence on February 9, 2008 2:15 pm


@Anthony Lawrence You should get them on freenode they have great support there :)

Comment by earobinson on February 9, 2008 2:16 pm


I’d love to tell you, but unfortunately my OLPC’s one of the lagging few thousands who are burning 400 bucks and have no XO so far *sigh*

Comment by Anon on February 9, 2008 4:54 pm


@Anon when did you order it?

Comment by earobinson on February 10, 2008 2:14 pm


Next time put a shirt on when you take a pic of yourself. :S

Comment by Ian on February 11, 2008 2:15 am


Hey. Ok so this is driving me insane! I would like to upload pics onto my myspace. I did it once before, but i have no clue what i did. Can you help?

Comment by Eve on February 26, 2008 4:43 pm


Hey Eve, you might want to stop by the OLPCNews.com/forum and have a look around. There are a lot of great threads there.

As for how to upload pictures to MySpace, I’d say you would probably have to pull up MySpace in the XO’s browser and, when you go to your upload page and click the “browse” button, you’ll see the Journal appear. Find the picture you took with the XO’s cam and then select it.

To make it easier to find the pictures you take, you might want to go into Journal and click on the picture entries and change the names of each one. This way when you go to upload them you’ll know which one is which. Otherwise each one will just be called “picture by Eve”.

Hope that helps! Please feel free to contact me if you have any other questions. I’m at thepetecomATgmail.

Comment by ThePete on February 28, 2008 4:54 pm


I’m eager to try out your (awesome looking) timelapse software on my XO, but I keep getting the error:

“Import Error: no module named Image”

Where is the image module that it needs?

Do I need any other software or libraries installed on a stock XO?

Cheers!

Comment by Taylor on March 1, 2008 11:02 pm


Taylor I dont think so, but it does use the pil library http://www.pythonware.com/products/pil/, try:

su
yum install python- imaging … i hope thats the command ill check it when I get home

Comment by earobinson on March 2, 2008 1:17 am


I’m getting the error where it says “No module named imageFilter” even after I yum installed python-imaging. :(
Any ideas?

Comment by ThePete on March 3, 2008 4:36 am


imageFilter is the second file if you do an “ls” you should have two files imageFilter.py and imageCaputer.py

Comment by earobinson on March 3, 2008 9:22 am


Hey I am a brand new linux newbie, what are the step by step instructions for setting this up? Sounds way cool!

Comment by Bob Smith on March 5, 2008 7:54 pm


earobinson - I wanted to drop you a quick “Thank you” for filling me in on the missing “sudo yum install python-imaging” command. It’s working like a charm!

Comment by Taylor on April 7, 2008 7:01 pm

addLeave a comment