Re: [sugar] [Activities] Panorama activity

2008-09-10 Thread Erik Blankinship
It would be great to incorporate more recording methods into Record.  We've
plans to also incorporate stop-motion and time-lapse into record also.  It
could become a behemoth of an activity though...  perhaps it might benefit
from being broken into different components (a.k.a. tamtamization)?

As for Record's UI, it uses windows to allow for its custom fullscreen mode
and for embedding widgets over video (seen, for example, in the
picture-in-picture modes and the info button).


On Fri, Sep 5, 2008 at 10:26 AM, 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-
 
 ___
 Devel mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/devel

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] [Activities] Panorama activity

2008-09-05 Thread Christoph Derndorfer
Sweet, I totally missed that!

Is anyone actively working on integrating that functionality into 'record'
or making it available as a seperate activity?

Christoph


On 9/5/08, 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 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
  [EMAIL PROTECTED]
  http://lists.laptop.org/listinfo/devel
 
 ___
 Activities mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/activities




-- 
Christoph Derndorfer
co-editor, olpcnews
url: www.olpcnews.com
e-mail: [EMAIL PROTECTED]
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] [Activities] Panorama activity

2008-09-05 Thread Ixo X oxI
If the code is short, how about including it in Pippy as an example python
script ? :)
-Iain

2008/9/5 Christoph Derndorfer [EMAIL PROTECTED]

 Sweet, I totally missed that!

 Is anyone actively working on integrating that functionality into 'record'
 or making it available as a seperate activity?

 Christoph


 On 9/5/08, 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.jpghttp://people.fas.harvard.edu/%7Ebmschwar/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.jpghttp://people.fas.harvard.edu/%7Ebmschwar/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
  [EMAIL PROTECTED]
  http://lists.laptop.org/listinfo/devel
 
 ___
 Activities mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/activities




 --
 Christoph Derndorfer
 co-editor, olpcnews
 url: www.olpcnews.com
 e-mail: [EMAIL PROTECTED]
 ___
 Devel mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/devel


___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] [Activities] Panorama activity

2008-09-05 Thread Benjamin M. Schwartz
-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-
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] [Activities] Panorama activity

2008-09-05 Thread Nirav Patel
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-

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar