<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>A blog about my work on the camera module for pygame as part of the GSOC project.</description><title>Abeocracy</title><generator>Tumblr (3.0; @abeocracy)</generator><link>http://abeocracy.tumblr.com/</link><item><title>GSOC meeting @ HSB</title><description>&lt;p&gt;The coming Tuesday (29.09.09) there will be meeting of all the GSOC’ders in the Benelux. This meeting will be at the HSB in Brussels during TechTue25 (more info at &lt;a href="http://hackerspace.be/TechTue25"&gt;HSB&lt;/a&gt;). There will be a lot of other people from outside of GSOC so you are always welcome if you would like to connect with technical minded people and share ideas.&lt;/p&gt;

&lt;p&gt;PS Bring you GSOC-tshirt if it arives on time!&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/196130290</link><guid>http://abeocracy.tumblr.com/post/196130290</guid><pubDate>Fri, 25 Sep 2009 00:56:28 +0200</pubDate></item><item><title>Belgium media and police still not entirely sure just how the internetz work...</title><description>&lt;p&gt;I was quite shocked this morning when I read on deredactie.be about a terror alert aimed at a local school in the Belgium city “Mechelen”. A total of 333 police agents where dispatched, 9 arrest where made and there was even a helicopter circling the airspace in search of possible killers.&lt;/p&gt;

&lt;p&gt;Only later this day I learned that the source of all this commotion, was a message posted on 4chan.org saying: “293 days to go until I strike at KTA Lyceum Mechelen, watch the news”.&lt;/p&gt;

&lt;p&gt;That’s correct, 4chan the internet community famous for several internet memes like Rick’Roll, Chocolate Rain, the Sarah Palin email hack, spamming YouTube with porn, claiming Steve Job died of a heart attack, spamming the swastika symbol into Google Hot Trends, the Project Chanology, the pedo bear, threatening to bomb several football stadiums with dirty bombs, posting pictures of mock pipe bombs, and several other ‘joke’ threads.&lt;/p&gt;

&lt;p&gt;Well on this 4chan someone threatens to harm a school almost 9 months after the posting the actual message on a site that could be considered the social dumpster of the internet. The only thing this overreaction the can ensure is just more jokes of 4chan….&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/183725072</link><guid>http://abeocracy.tumblr.com/post/183725072</guid><pubDate>Wed, 09 Sep 2009 17:32:33 +0200</pubDate></item><item><title>I just added a comment system to my blog...</title><description>&lt;p&gt;From now on you can post comment on this blog thank to the friendly people of &lt;a href="http://disqus.com"&gt;Disqus&lt;/a&gt;. Adding Disqus to Tumblr (or any other bog system for that matter) is very simple, and I can’t recommend enough to anyone who wants to add comments to his/her blog.&lt;/p&gt;

&lt;p&gt;PS The comment section’s layout is still a bit ugly, I will fix that later…&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/155492300</link><guid>http://abeocracy.tumblr.com/post/155492300</guid><pubDate>Tue, 04 Aug 2009 09:22:03 +0200</pubDate><category>abeocracy.be</category><category>Disqus</category></item><item><title>The color masks of the camera are working correctly now…</title><description>&lt;img src="http://23.media.tumblr.com/GnhCaH5HnqkxbehqCETW6ig0o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The color masks of the camera are working correctly now…&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/153165822</link><guid>http://abeocracy.tumblr.com/post/153165822</guid><pubDate>Fri, 31 Jul 2009 22:40:23 +0200</pubDate><category>pygame</category><category>python</category><category>photo</category><category>gsoc</category><category>camera</category><category>programming</category></item><item><title>GSOC Midterm report</title><description>&lt;p&gt;With the midterm evaluation behind us I thought it would be useful to post a update 
on the progress on the camera module for Mac OSX. The current version on
&lt;a href="http://github.com/ab3/pygame-mirror/"&gt;github&lt;/a&gt; can read a frame from the camera and copy it to 
the surface. There is still something wrong with the colors, this has probably
something to do with the masks in &lt;strong&gt;surf-&gt;format&lt;/strong&gt;. I have tried out some combination
but non seem to work, so if you have suggestion on how to get the colors write please
post them on the pygame mailinglist.&lt;/p&gt;

&lt;p&gt;I have thoroughly cleaned up the camera_mac.m file and have removed all Cocoa
code because it caused to many problems. Only the &lt;strong&gt;mac_gworld_to_nsimage&lt;/strong&gt; used
Cocoa so I didn’t have to trow away too much code. The following functions are now
available:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mac_list_cameras()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_open_device ()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_init_device()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_close_device()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_start_capturing()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_stop_capturing ()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_read_raw()&lt;/strong&gt;&lt;br/&gt;
note: When I try to print the string I get nothing, this is probably because of a \0 byte in the array.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_read_frame()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_camera_idle()&lt;/strong&gt;    &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_copy_gworld_to_surface()&lt;/strong&gt;&lt;br/&gt;
note: This function gives &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;strong&gt;PyCameraObject struct&lt;/strong&gt; has altered a bit because I don’t use a &lt;strong&gt;ImageSequence&lt;/strong&gt;
anymore because it was easier to get the frame copy the frame directly instead of 
recording a frame into a sequence and then decompressing a frame out of it. In
addition to removing the &lt;strong&gt;ImageSequence&lt;/strong&gt; I make use of the ‘buffer struct’. Here is the
current &lt;strong&gt;PyCameraObject struct&lt;/strong&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;typedef struct {
    PyObject_HEAD
    char* device_name;              // unique name of the device
    SeqGrabComponent component;     // A type used by the Sequence Grabber API
    SGChannel channel;              // Channel of the Sequence Grabber
    GWorldPtr gworld;               // Pointer to the struct that holds the
                                    // data of the captured image
    Rect boundsRect;                // bounds of the image frame
    long size;                      // size of the image in our buffer to draw
    short bytes;                    // number of bytes in gworld
    struct buffer pixels;           // pixels
} PyCameraObject;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;A usual you can find the latest version on github.com/ab3 so if you would like to test
the latest changes or would like to help with the color problem or the read_raw function,
you are always welcome.&lt;/p&gt;

&lt;h3&gt;ToDo&lt;/h3&gt;

&lt;p&gt;Here is a list of thing I still have to do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;fix the colors of read_frame()&lt;/li&gt;
&lt;li&gt;fix read_raw()&lt;/li&gt;
&lt;li&gt;implement set_controller() and get_controller()&lt;/li&gt;
&lt;li&gt;add simple computer vision stuff

&lt;ul&gt;
&lt;li&gt;thresholding with hysteresis
*…&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;optimization, sbggr8_to_rgb???&lt;/li&gt;
&lt;li&gt;implement proof of concept game…&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;

&lt;p&gt;So this concludes my midterm report, feel free to post any bugs, comments and 
suggestions&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/143506531</link><guid>http://abeocracy.tumblr.com/post/143506531</guid><pubDate>Fri, 17 Jul 2009 16:27:37 +0200</pubDate><category>python</category><category>pygame</category><category>osx</category><category>gsoc</category></item><item><title>This is a screenshot of the pygame camera module for Mac OSX at...</title><description>&lt;img src="http://13.media.tumblr.com/GnhCaH5Hnpznm1tucDvWgL63o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This is a screenshot of the pygame camera module for Mac OSX at work. I was finally able to get the image from the camera onto the game surface.&lt;/p&gt;

&lt;p&gt;PS The reason that I am blue is not because I am a night elf but because there is still something wrong with the color masks of the surface.&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/143091586</link><guid>http://abeocracy.tumblr.com/post/143091586</guid><pubDate>Fri, 17 Jul 2009 01:25:00 +0200</pubDate><category>pygame</category><category>python</category><category>photo</category></item><item><title>GSOC Week 3-4</title><description>&lt;p&gt;The past two weeks I was busy studying for my examinations, so I didn’t have much time to work on my GSOC project.
However I was able to do a lot of work to get the &lt;strong&gt;PyCameraObject struct&lt;/strong&gt; integrated in the existing code and implemented some additional functions.&lt;/p&gt;

&lt;p&gt;Here is the definition of this struct, it isn’t completed yet because some “types” I would like to put into it cause compile errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PyCameraObject:&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;typedef struct {
    PyObject_HEAD
    char* device_name;              // unieke name of the device
    SeqGrabComponent component;     // A type used by the Sequence Grabber API
    SGChannel channel;              // Channel of the Sequence Grabber
    GWorldPtr gWorld;               // Pointer to the struct that holds the data of the captured image
    Rect boundsRect;                // bounds of the image frame
} PyCameraObject;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In addition of implementing the &lt;strong&gt;PyCameraObject struct&lt;/strong&gt;, I have writen the folowing functions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mac_device_init():&lt;/strong&gt;&lt;br/&gt;
This function initializes the sequence grabber component and prepares it for capturing images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_device_close():&lt;/strong&gt;&lt;br/&gt;
I have extended this function so it works with the &lt;strong&gt;PyCameraObject struct&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_start_capturing():&lt;/strong&gt;&lt;br/&gt;
At this moment this function&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;camera_start():&lt;/strong&gt;&lt;br/&gt;
This function just calls the above functions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;camera_get_size():&lt;/strong&gt;&lt;br/&gt;
Simple function that returns the size of the image frame.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Schedule for this week&lt;/h3&gt;

&lt;p&gt;This week I am planning to finish the &lt;strong&gt;mac_start_capturing&lt;/strong&gt; function so that I can capture images from my camera an put then in a &lt;strong&gt;SDL_Surface&lt;/strong&gt; object.
As usional you can folow my work on &lt;a href="http://github.com/ab3" title="github"&gt;my github account&lt;/a&gt;.&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/128139586</link><guid>http://abeocracy.tumblr.com/post/128139586</guid><pubDate>Mon, 22 Jun 2009 17:19:00 +0200</pubDate><category>python</category><category>pygame</category><category>gsoc</category><category>osx</category><category>programming</category></item><item><title>GSOC Week 1</title><description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Welcome to my weekly address to the PyGame Nation. This is the first of many entries about my work on the camera module for Mac OSX.&lt;/p&gt;

&lt;p&gt;This week I have written the following ‘simple’ functions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mac_list_camera&lt;/strong&gt;:&lt;br/&gt;
On the module for Linux, a list of available cameras in made by trying out every potential device. On the OSX module I use the &lt;em&gt;FindNextComponent&lt;/em&gt; function to search for Components of the SeqGrabComponentType type.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_device_open&lt;/strong&gt;:&lt;br/&gt;
A simple function that open a camera, it uses &lt;em&gt;OpenComponent&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mac_device_close&lt;/strong&gt;:&lt;br/&gt;
A simple function that closes a camera, it uses &lt;em&gt;CloseComponent&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The remaining time I have spend on build problems and bugs :(&lt;/p&gt;

&lt;h3&gt;Schedule for next week&lt;/h3&gt;

&lt;p&gt;The coming week I will spend my time on defining and implementing a camera class specific to Mac OSX, because the existing class is to much intertwined  with &lt;em&gt;v4l&lt;/em&gt;. When I have done that I will be able to integrate the above functions into the python module.&lt;/p&gt;

&lt;p&gt;As usual you can follow my progress on my &lt;a href="http://github.com/ab3/" title="abe's github account"&gt;github account&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS I still have to add a comment system to this blog, so if you would like to comment on something I suggest you do this on the &lt;a href="http://www.pygame.org/wiki/info" title="pygame"&gt;pygame mailing list&lt;/a&gt;.&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/116208908</link><guid>http://abeocracy.tumblr.com/post/116208908</guid><pubDate>Mon, 01 Jun 2009 13:50:00 +0200</pubDate><category>gsoc</category><category>python</category><category>programming</category><category>pygame</category><category>osx</category></item><item><title>Those of you who where wondering what the explanation for the...</title><description>&lt;img src="http://7.media.tumblr.com/GnhCaH5Hnnlfx5z27KtGoYsbo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Those of you who where wondering what the explanation for the name of my blog is, will find the above comic very illuminating…&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.qwantz.com/archive/001433.html" title="Dinosaur Comics"&gt;original comic&lt;/a&gt;.&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/109053611</link><guid>http://abeocracy.tumblr.com/post/109053611</guid><pubDate>Sun, 17 May 2009 17:22:00 +0200</pubDate><category>Photo</category><category>Comic</category><category>Dinosaur Comics</category><category>Funny</category></item><item><title>Hello, world!</title><description>&lt;p&gt;Welcome to my new blog. I will use this blog as a way to keep the outside word updated on my work on porting the camera module of pygane to Mac OSX, as part of the GSOC 2009 project.&lt;/p&gt;

&lt;p&gt;You can follow the progress on the camera module at &lt;a href="http://github.com/ab3" title="github"&gt;my personal github account&lt;/a&gt;. For more information on pygame please visit the &lt;a href="http://www.pygame.org" title="pygame"&gt;official site&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In addition to pygame related stuff, I will post on other programming related topics and random jokes&lt;/p&gt;

&lt;p&gt;PS you will be able to visit this blog at &lt;a href="http://abeocracy.be" title="abeocracy.be"&gt;abeocracy.be&lt;/a&gt; in the near future, when the DNS is updated…&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/109050847</link><guid>http://abeocracy.tumblr.com/post/109050847</guid><pubDate>Sun, 17 May 2009 17:13:53 +0200</pubDate><category>Python</category><category>GSOC</category><category>OSX</category><category>MAC</category><category>PyGame</category><category>Programming</category></item><item><title>Profile picture</title><description>&lt;img src="http://18.media.tumblr.com/GnhCaH5Hnnkh84z9LYkGqGVso1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Profile picture&lt;/p&gt;</description><link>http://abeocracy.tumblr.com/post/108781306</link><guid>http://abeocracy.tumblr.com/post/108781306</guid><pubDate>Sun, 17 May 2009 01:10:50 +0200</pubDate></item></channel></rss>
