Re: Panorama activity
this is still one of the cooler projects people have taken on! Jeff K, have you gotten to try it out? Nirav, any thoughts of another release? Else you (or someone who wants to maintain it) should set up hosting for the code... SJ On Sun, Oct 12, 2008 at 2:15 AM, Nirav Patel [EMAIL PROTECTED] wrote: That sounds like a much better idea. I'll try to set up something like that on my webserver, though I'll have to move elsewhere if the activity gains any kind of popularity. It still leaves the problem of the images uploading to my personal Flickr account though. I think having a Panorama Collection or Set on the OLPC Flickr account would be nice. Also, I uploaded the pre-alpha bundle: http://eclecti.cc/files/Panorama-1.xo Nirav On Sun, Oct 12, 2008 at 1:39 AM, Brian Jordan [EMAIL PROTECTED] wrote: Maybe one could set up a one-way upload script for this on dev (or some appropriate community-developed-web-services-server-of-the-future)? This script, then, could handle the uploading via flickr API securely. Regards Brian ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Panorama activity
I applied for project hosting a few weeks ago but haven't gotten a reply yet. For now I'm just using my own repo. I'm starting up an Activity development team at my university, and our first projects are going to be getting Panorama and Bridge to a deployable state. Our first meeting is going to be this week, and there should be a more stable release of Panorama over Thanksgiving weekend. Nirav On Tue, Nov 4, 2008 at 2:57 PM, Samuel Klein [EMAIL PROTECTED] wrote: this is still one of the cooler projects people have taken on! Jeff K, have you gotten to try it out? Nirav, any thoughts of another release? Else you (or someone who wants to maintain it) should set up hosting for the code... SJ On Sun, Oct 12, 2008 at 2:15 AM, Nirav Patel [EMAIL PROTECTED] wrote: That sounds like a much better idea. I'll try to set up something like that on my webserver, though I'll have to move elsewhere if the activity gains any kind of popularity. It still leaves the problem of the images uploading to my personal Flickr account though. I think having a Panorama Collection or Set on the OLPC Flickr account would be nice. Also, I uploaded the pre-alpha bundle: http://eclecti.cc/files/Panorama-1.xo Nirav On Sun, Oct 12, 2008 at 1:39 AM, Brian Jordan [EMAIL PROTECTED] wrote: Maybe one could set up a one-way upload script for this on dev (or some appropriate community-developed-web-services-server-of-the-future)? This script, then, could handle the uploading via flickr API securely. Regards Brian ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Panorama activity
That sounds like a much better idea. I'll try to set up something like that on my webserver, though I'll have to move elsewhere if the activity gains any kind of popularity. It still leaves the problem of the images uploading to my personal Flickr account though. I think having a Panorama Collection or Set on the OLPC Flickr account would be nice. Also, I uploaded the pre-alpha bundle: http://eclecti.cc/files/Panorama-1.xo Nirav On Sun, Oct 12, 2008 at 1:39 AM, Brian Jordan [EMAIL PROTECTED] wrote: Maybe one could set up a one-way upload script for this on dev (or some appropriate community-developed-web-services-server-of-the-future)? This script, then, could handle the uploading via flickr API securely. Regards Brian ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Panorama activity
My roomate and I wrote an auto-stitching Panorama Activity during the Yahoo Hack Day at CMU yesterday (ended up winning the Hack for Good award). I'll be posting it in the wiki at some point today. It needs a whole lot of polishing, since it was written in 24 hours. I ran into the same problem that Ben did with autowhitebalance and autoexposure. I looked through the ov7670 driver, and it seems changing V4L2_CID_BRIGHTNESS should flip the auto exposure control (AEC) bit in one of the registers. I added support for changing brightness to the camera module in Pygame, but either disabling AEC doesn't work, or it just makes auto gain control and auto white balance work even harder to change the image. Other than that, the stitching seems to work ok. I'm going to pyramidize it at some point to make it faster, and do something to improve the accuracy. The slowness of stitching doesn't effect the user experience much though, because it only stitches after the user is done taking the pictures. The Activity we wrote uses the Flickr API for an upload to Flickr button. I feel that this is the most important part. There is support for saving the stitched images as Journal entries, but it would be wonderful if a kid anywhere in the world could see panoramas taken by other kids elsewhere. Flickr is far from ideal for this. Beyond not really being designed for viewing panoramas, it is currently set up to just upload every picture to my personal Flickr account. My API key, secret key, and an authentication token are prerecorded in the activity, so anyone could potentially use those values to edit existing photos and upload whatever to my Flickr account: http://flickr.com/photos/nrpatel/ It seems Gigapan doesn't have an upload API. gigapan.org works in Browse on my os767 XO, but panning around an image is pretty slow. Anyone have ideas on this? A better way to Flickr, ideas for designing a new site, getting Gigapan to add an upload API, etc? The other issue we ran into is integrating OLPCGames with pyGTK stuff. We used OLPCGames to take advantage of capturing the images as SDL surfaces, but we also wanted pyGTK to pop up a Dialog box when the user hits Save, asking for a Title, Tags, and a Description of the panorama. We hacked together something that does pop up the box and saves correctly, but fails to ever destroy the box. It then just sits with the box open, preventing the user from using or exiting the Activity. Is it possible to use pyGTK beyond the toolbox while still using OLPCGames? Nirav On Fri, Sep 5, 2008 at 6:41 PM, Jeff Keller [EMAIL PROTECTED] wrote: Yeah -- I sent my loaner unit off to Burning Man, but I should get it back soon, and I'd be delighted to talk about stitchers. Randy Sargent and I wrote our own for GigaPan last summer because nothing else was up to the task. It relies on a model of the GigaPan device's behavior to do rough placement, but it can auto-stitch 1000+ images with 10 pixels rms displacement error, and it should be open-sourced one of these days. Of course, it uses much more storage, RAM, and CPU than an XO has, but nothing inappropriate to what it does, and there are some nice improvements in the works. Oh, and my office is down the block from OLPC's. --Jeff On Fri, Sep 5, 2008 at 12:38 PM, Samuel Klein [EMAIL PROTECTED] wrote: Speaking of which, Jeff Keller has been trying to get OLPC folks to learn more about using his gigapan group's cameras (and perhaps to borrow one to bring them into a country for weeks) for a while. Jeff, Ben Schwartz and Nirav are really interested in large-scale image splicing... SJ --- 617 529 4266 On Fri, Sep 5, 2008 at 2:08 AM, Brian Jordan [EMAIL PROTECTED] wrote: *bump* http://wiki.laptop.org/go/Panorama_camera_activity (code? Nirav is interested in doing something similar!) Brian On Wed, Jun 20, 2007 at 11:56 PM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The XO happens to be perfect for shooting stitched panoramic photographs, due to the swivel design. I tested it out in the OLPCHQ lobby. Then, I wrote a simple panorama stitcher in 50 lines of Python. It runs in 3.4 seconds on my Core Duo, producing this output: http://people.fas.harvard.edu/~bmschwar/lobby_ugly.jpg The results aren't too bad. I also tried stitching this scene with Hugin, the most powerful panorama stitcher I know of. Hugin required significant user intervention and half an hour of computing time, producing this output: http://people.fas.harvard.edu/~bmschwar/lobby_pretty.jpg This scene is unusually difficult because of the huge indoor-outdoor contrast. Given this positive result, I would like to work on a panorama-making activity, possibly inside Capture. I know that at age 10, I loved making panoramas out of photographs. Panoramas provide an immersive way for children to communicate their environments to each other
Re: Panorama activity
On Sat, Oct 11, 2008 at 10:26 PM, Nirav Patel [EMAIL PROTECTED] wrote: My roomate and I wrote an auto-stitching Panorama Activity during the Yahoo Hack Day at CMU yesterday (ended up winning the Hack for Good award). I'll be posting it in the wiki at some point today. It needs a whole lot of polishing, since it was written in 24 hours. I ran into the same problem that Ben did with autowhitebalance and autoexposure. I looked through the ov7670 driver, and it seems changing V4L2_CID_BRIGHTNESS should flip the auto exposure control (AEC) bit in one of the registers. I added support for changing brightness to the camera module in Pygame, but either disabling AEC doesn't work, or it just makes auto gain control and auto white balance work even harder to change the image. Other than that, the stitching seems to work ok. I'm going to pyramidize it at some point to make it faster, and do something to improve the accuracy. The slowness of stitching doesn't effect the user experience much though, because it only stitches after the user is done taking the pictures. So cool -- can't wait to try. The Activity we wrote uses the Flickr API for an upload to Flickr button. I feel that this is the most important part. There is support for saving the stitched images as Journal entries, but it would be wonderful if a kid anywhere in the world could see panoramas taken by other kids elsewhere. Flickr is far from ideal for this. Beyond not really being designed for viewing panoramas, it is currently set up to just upload every picture to my personal Flickr account. My API key, secret key, and an authentication token are prerecorded in the activity, so anyone could potentially use those values to edit existing photos and upload whatever to my Flickr account: http://flickr.com/photos/nrpatel/ Awesome! :-D Maybe one could set up a one-way upload script for this on dev (or some appropriate community-developed-web-services-server-of-the-future)? This script, then, could handle the uploading via flickr API securely. Regards Brian It seems Gigapan doesn't have an upload API. gigapan.org works in Browse on my os767 XO, but panning around an image is pretty slow. Anyone have ideas on this? A better way to Flickr, ideas for designing a new site, getting Gigapan to add an upload API, etc? The other issue we ran into is integrating OLPCGames with pyGTK stuff. We used OLPCGames to take advantage of capturing the images as SDL surfaces, but we also wanted pyGTK to pop up a Dialog box when the user hits Save, asking for a Title, Tags, and a Description of the panorama. We hacked together something that does pop up the box and saves correctly, but fails to ever destroy the box. It then just sits with the box open, preventing the user from using or exiting the Activity. Is it possible to use pyGTK beyond the toolbox while still using OLPCGames? Nirav On Fri, Sep 5, 2008 at 6:41 PM, Jeff Keller [EMAIL PROTECTED] wrote: Yeah -- I sent my loaner unit off to Burning Man, but I should get it back soon, and I'd be delighted to talk about stitchers. Randy Sargent and I wrote our own for GigaPan last summer because nothing else was up to the task. It relies on a model of the GigaPan device's behavior to do rough placement, but it can auto-stitch 1000+ images with 10 pixels rms displacement error, and it should be open-sourced one of these days. Of course, it uses much more storage, RAM, and CPU than an XO has, but nothing inappropriate to what it does, and there are some nice improvements in the works. Oh, and my office is down the block from OLPC's. --Jeff On Fri, Sep 5, 2008 at 12:38 PM, Samuel Klein [EMAIL PROTECTED] wrote: Speaking of which, Jeff Keller has been trying to get OLPC folks to learn more about using his gigapan group's cameras (and perhaps to borrow one to bring them into a country for weeks) for a while. Jeff, Ben Schwartz and Nirav are really interested in large-scale image splicing... SJ --- 617 529 4266 On Fri, Sep 5, 2008 at 2:08 AM, Brian Jordan [EMAIL PROTECTED] wrote: *bump* http://wiki.laptop.org/go/Panorama_camera_activity (code? Nirav is interested in doing something similar!) Brian On Wed, Jun 20, 2007 at 11:56 PM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The XO happens to be perfect for shooting stitched panoramic photographs, due to the swivel design. I tested it out in the OLPCHQ lobby. Then, I wrote a simple panorama stitcher in 50 lines of Python. It runs in 3.4 seconds on my Core Duo, producing this output: http://people.fas.harvard.edu/~bmschwar/lobby_ugly.jpg The results aren't too bad. I also tried stitching this scene with Hugin, the most powerful panorama stitcher I know of. Hugin required significant user intervention and half an hour of computing time, producing this output: http://people.fas.harvard.edu/~bmschwar
Re: [sugar] [Activities] Camera raw mode (WAS: Panorama activity)
Nirav, IIRC the camera also supports a RAW mode, right? Is this another feature that we could integrate into an advanced camera activity that also includes the features mentioned below? Thanks, Christoph On Fri, Sep 5, 2008 at 4:26 PM, Nirav Patel [EMAIL PROTECTED] wrote: I don't know about integrating it into Record, but the other issues are fairly easy to resolve. I wrote a Python module over the summer to interface v4l2 cameras that returns Pygame surfaces. Capturing images is near instant (~20ms for 640x480 RGB). Autogain and autowhitebalance can be disabled using v4l2 camera controls. There is support in my module for the hflip and vflip controls, but adding additional controls is trivial. Alternately, we could just use a little utility in C to access any v4l2 camera control. Since the module I wrote is for Pygame and is eventually going to be cross platform, adding v4l2 specific stuff to it is probably not the greatest idea. It may just be better to skip sticking it in Record and make a standalone activity, since Record seems to have plenty of issues on its own without a big new feature. There wouldn't be much code duplication if Panorama doesn't use gstreamer anyway. Nirav On Fri, Sep 5, 2008 at 9:26 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: [EMAIL PROTECTED] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] [Activities] Camera raw mode (WAS: Panorama activity)
It supports Bayer RGGB8, which should be basically unprocessed data off of the CMOS. I can't imagine it being useful though. It would require unBayerizing it to display, even though the XO's display is also Bayer (I assume pixel offsets and swizzling would mess it up, even if the colors are in the same order). You're better off letting the camera do the heavy processing and just get packed RGB back. Nirav On Sat, Sep 6, 2008 at 10:15 AM, Christoph Derndorfer [EMAIL PROTECTED] wrote: Nirav, IIRC the camera also supports a RAW mode, right? Is this another feature that we could integrate into an advanced camera activity that also includes the features mentioned below? Thanks, Christoph On Fri, Sep 5, 2008 at 4:26 PM, Nirav Patel [EMAIL PROTECTED] wrote: I don't know about integrating it into Record, but the other issues are fairly easy to resolve. I wrote a Python module over the summer to interface v4l2 cameras that returns Pygame surfaces. Capturing images is near instant (~20ms for 640x480 RGB). Autogain and autowhitebalance can be disabled using v4l2 camera controls. There is support in my module for the hflip and vflip controls, but adding additional controls is trivial. Alternately, we could just use a little utility in C to access any v4l2 camera control. Since the module I wrote is for Pygame and is eventually going to be cross platform, adding v4l2 specific stuff to it is probably not the greatest idea. It may just be better to skip sticking it in Record and make a standalone activity, since Record seems to have plenty of issues on its own without a big new feature. There wouldn't be much code duplication if Panorama doesn't use gstreamer anyway. Nirav On Fri, Sep 5, 2008 at 9:26 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: [EMAIL PROTECTED] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Panorama activity
*bump* http://wiki.laptop.org/go/Panorama_camera_activity (code? Nirav is interested in doing something similar!) Brian On Wed, Jun 20, 2007 at 11:56 PM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The XO happens to be perfect for shooting stitched panoramic photographs, due to the swivel design. I tested it out in the OLPCHQ lobby. Then, I wrote a simple panorama stitcher in 50 lines of Python. It runs in 3.4 seconds on my Core Duo, producing this output: http://people.fas.harvard.edu/~bmschwar/lobby_ugly.jpg The results aren't too bad. I also tried stitching this scene with Hugin, the most powerful panorama stitcher I know of. Hugin required significant user intervention and half an hour of computing time, producing this output: http://people.fas.harvard.edu/~bmschwar/lobby_pretty.jpg This scene is unusually difficult because of the huge indoor-outdoor contrast. Given this positive result, I would like to work on a panorama-making activity, possibly inside Capture. I know that at age 10, I loved making panoramas out of photographs. Panoramas provide an immersive way for children to communicate their environments to each other and to the world. - --Ben Schwartz -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeU4yUJT6e6HFtqQRAv4rAJ9F5wTDfzz9piYzzwGskVVmaqZTiQCgjFru QsRergUtY1iCZS6hIXCHjSM= =v5GB -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] [Activities] Panorama activity
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] [Activities] Panorama activity
I don't know about integrating it into Record, but the other issues are fairly easy to resolve. I wrote a Python module over the summer to interface v4l2 cameras that returns Pygame surfaces. Capturing images is near instant (~20ms for 640x480 RGB). Autogain and autowhitebalance can be disabled using v4l2 camera controls. There is support in my module for the hflip and vflip controls, but adding additional controls is trivial. Alternately, we could just use a little utility in C to access any v4l2 camera control. Since the module I wrote is for Pygame and is eventually going to be cross platform, adding v4l2 specific stuff to it is probably not the greatest idea. It may just be better to skip sticking it in Record and make a standalone activity, since Record seems to have plenty of issues on its own without a big new feature. There wouldn't be much code duplication if Panorama doesn't use gstreamer anyway. Nirav On Fri, Sep 5, 2008 at 9:26 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel