2-bit preview for serial camera
Rayman
Posts: 14,793
I'm having much better luck with the C328 camera that I did with the MCA25...
I wrote this little code that diplays a preview image from the camera onto the VGA screen in 2-bit grayscale mode.· It then snaps and saves a 640x480 jpg image when you click the mouse...
Thanks to Harrison for posting his C328 code...
I've put some notes on this here:
http://www.rayslogic.com/propeller/Programming/Cameras/cameras.htm
Here's sample photos (I think I need to tweak the focus a bit more...):
...just included the 2-bit bitmap placeholder file
Post Edited (Rayman) : 11/13/2007 11:42:52 AM GMT
I wrote this little code that diplays a preview image from the camera onto the VGA screen in 2-bit grayscale mode.· It then snaps and saves a 640x480 jpg image when you click the mouse...
Thanks to Harrison for posting his C328 code...
I've put some notes on this here:
http://www.rayslogic.com/propeller/Programming/Cameras/cameras.htm
Here's sample photos (I think I need to tweak the focus a bit more...):
...just included the 2-bit bitmap placeholder file
Post Edited (Rayman) : 11/13/2007 11:42:52 AM GMT
Comments
Wow.
The documentation for the c328RS on electronics123.com mentions down-sampling for VGA etc. ... does this mean that the raw data is available?
Is this the camera you are using?
By the way... the preview resolution turns out to be exactly the same resolution as 4DSystem's uOLED 160-GMD.
Rich
Here's the kind I bought:
http://www.electronics123.com/s.nl/it.A/id.2527/.f?sc=8&category=241
PS: Ask me why I got two [noparse]:)[/noparse]
I love you... in a purely hetero sort of way[noparse]:)[/noparse]
someone with some dynamite to show up and blast at the right places.
Rayman's got a box of dynamite under his desk... [noparse]:)[/noparse]
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.
— Calvin, of 'Calvin and Hobbes.
I could be incorperated into a rover with pic capture and send to host computer.
Rob7
The 640x480 jpg filesize is typically up to 20 kB.· With the fastest, 115200 baud connection, it takes at least a second for the data (without the packet overhead).
The SD writing is very fast, I don't think it adds too much to the limit.
I like Harrison's trick of just calling the file a ".mpg" and appending new images to the end to make a movie...
I think on average I got about 2 - 5 seconds per picture when it was creating a new file per frame. That gives you 512 frames (fat16 limitation of 512 files in root directory).
Post Edited (Harrison.) : 11/13/2007 10:13:53 PM GMT
then read them in on a PC? that way, you'd get more than your 512 frames [noparse]:)[/noparse]
and hopefully more because it won't need to create a new file and after every frame and close and flush, it can just keep writing.