Semi-successful Bayer-mode capture from internal camera
Benjamin M. Schwartz
bmschwar at fas.harvard.edu
Sun Feb 17 15:30:46 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
I have created a stepwise procedure for experimenting with Bayer mode capture:
1. su -
2. yum install python-imaging
3. wget http://dev.laptop.org/~bemasc/bayertest.tar.gz
4. tar xzvf bayertest.tar.gz
5. cd bayertest
6. python bayertest.py
bayertest.py will produce a file "output.png" containing your picture, after
interpolation by dcraw.
Sample Raw bayer:
1. After each reboot YOU MUST OPEN Record (or any other program that uses
gstreamer to access the camera) BEFORE RUNNING bayertest.py. Otherwise, your
images will be squished into the left half of the field. I have no idea why.
It's pretty weird.
2. The included, patched version of dcraw assumes a bayer-grid orientation that
does not match the camera's. Therefore, the temporary files are rotated by 180
degrees, and then rotated back afterwards. This is only an annoyance if you
want to look at the raw data yourself.
3. The rightmost 4 pixels of each line are just repeats. I have no idea why.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Devel