jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Thu Feb 28, 2013 10:38 pm

Quick status report.

I've been working on command line demo app for the new module, and have finally got captures working OK. Video is also working but only at lo-res - (640x480). Hope to sort that tomorrow. The app allows you to change such things as AWB, ISO, resolution, JPQ quality, effects, metering mode, exposure mode etc. Looking pretty good. We still have some tuning work to do on the image quality - it's not as good as it should be.

But progress is now getting on nicely.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Foundation Camera Board information

Thu Feb 28, 2013 10:49 pm

Drool.

I haven't used any add-ons except an off switch hooked to a GPIO.

But the camera... well... that will be a bit of me!

mk9900
Posts: 1
Joined: Fri Mar 01, 2013 7:42 am

Re: Foundation Camera Board information

Fri Mar 01, 2013 7:47 am

Not sure if this has been asked before, but will the cam be compatible with Motion (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) ?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Fri Mar 01, 2013 8:52 am

mk9900 wrote:Not sure if this has been asked before, but will the cam be compatible with Motion (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) ?
At the moment we just have a command line app that grabs stills or captures video. We do no yet support /dev/video which is how Motion connects to the camera. So not at first. I expect someone will sort out a /dev/video driver at some point, I have no idea how to do that (but will look at it at some point).
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
aTao
Posts: 1087
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Foundation Camera Board information

Fri Mar 01, 2013 10:02 am

jamesh wrote:Quick status report.

I've been working on command line demo app for the new module, and have finally got captures working OK.
samples?, samples, samples!, SAMPLES.
We still have some tuning work to do on the image quality - it's not as good as it should be.

But progress is now getting on nicely.
Ohh, not quite yet then
>)))'><'(((<

User avatar
jbeale
Posts: 3518
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Foundation Camera Board information

Fri Mar 01, 2013 8:23 pm

"Pretty sure will work with the OpenMAX API, but there is also a custom API on the Arm which is easier to use."
-from http://www.raspberrypi.org/phpBB3/viewt ... 25#p220439

Is your command line demo app written in C, or some other language? I presume you are using the custom API?
Would it be useful to publish the API ahead of the hardware release, to help people get their infrastructure ready to use the camera when it comes? Or is it still in flux?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Sat Mar 02, 2013 8:47 am

The apps are in C and uses the 'mmal' shim over the top of OpenMAX. It's basically an effort by Broadcom to make the OpenMAX component system a bit easier to use. There is currently no API documentation on MMAL but it is fully doxygen commented and is supplied in the userland git repo, so you can make your own docs.

I'm seriously considering written a book/ebook on this subject though - MultiMedia programming on the Raspberry Pi or somehting like that.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Foundation Camera Board information

Sun Mar 03, 2013 2:14 pm

Out of interest, once the camera is available, how will they be distributed? Via RS/Farnell?

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Sun Mar 03, 2013 8:17 pm

texy wrote:Out of interest, once the camera is available, how will they be distributed? Via RS/Farnell?

Texy
I don't know - I knew there was something I meant to ask Liz at the birthday get together.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

gcrispin
Posts: 1
Joined: Sun Mar 03, 2013 8:57 pm

Re: Foundation Camera Board information

Sun Mar 03, 2013 9:20 pm

I've been following this for months and months... when will you take my money? :cry:

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4183
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Foundation Camera Board information

Sun Mar 03, 2013 9:51 pm

texy wrote:Out of interest, once the camera is available, how will they be distributed? Via RS/Farnell?

Texy
Eben will stand on the top of Great Orme and scatter them in the winds to the 4 corners of the earth :)

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Foundation Camera Board information

Sun Mar 03, 2013 9:56 pm

I had to look that up :?
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Mon Mar 04, 2013 6:52 am

gcrispin wrote:I've been following this for months and months... when will you take my money? :cry:
When it's ready. Or you can buy one that doesn't work. But I'm guessing that wouldn't be any good?

(soon btw)
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
jbeale
Posts: 3518
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Foundation Camera Board information

Mon Mar 04, 2013 8:33 pm

I have to admire people who can pronounce something like "Cyngreawdr Fynydd".

I can imagine some beta-tester interest in a camera that is only partly and/or sometimes working, especially if there is hope of a future downloadable update that would bring it to fully operational. But it sounds like the camera isn't quite there yet, so we'll have to be patient!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Mon Mar 04, 2013 9:16 pm

jbeale wrote:I have to admire people who can pronounce something like "Cyngreawdr Fynydd".

I can imagine some beta-tester interest in a camera that is only partly and/or sometimes working, especially if there is hope of a future downloadable update that would bring it to fully operational. But it sounds like the camera isn't quite there yet, so we'll have to be patient!
We have a bunch of camera going out to testers (internal only, so don't ask) soon I believe. And it won't be long before release anyway, it's mostly there; the board has passed testing, I'm working on a easy (!) to understand set of apps, and we have a top notch camera guy doing some more tuning. He's already sorted a problems with denoise, and flickering AWB, and is looking at other stuff now. It's starting to look pretty good tbh.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

rjphipps
Posts: 1
Joined: Tue Mar 05, 2013 5:22 pm

Re: Foundation Camera Board information - Stills JPEG Only?

Tue Mar 05, 2013 5:26 pm

Will the camera/drivers also support either RAW (i.e. non-demosaiced - e.g. DNG) output, or at least noncompressed (i.e. non-JPEG - e.g.TIF) output options? Also, what colorspace(s) will be supported (e.g. only sRGB, or a larger possibly native color profile)?

RJP

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Foundation Camera Board information

Tue Mar 05, 2013 5:59 pm

What kind of software is coming with this camera would this enable video streaming over a web page served by apache??

Richard S.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information - Stills JPEG Only?

Tue Mar 05, 2013 6:17 pm

rjphipps wrote:Will the camera/drivers also support either RAW (i.e. non-demosaiced - e.g. DNG) output, or at least noncompressed (i.e. non-JPEG - e.g.TIF) output options? Also, what colorspace(s) will be supported (e.g. only sRGB, or a larger possibly native color profile)?

RJP
Yes, the example code I've written can output the RAW Bayer data as JPEG metadata. Not sure of the exact Bayer format though, I'll need to check. I've also written a quick app that dumps the image as uncompressed YUV420 rather than JPEG.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24188
Joined: Sat Jul 30, 2011 7:41 pm

Re: Foundation Camera Board information

Tue Mar 05, 2013 6:20 pm

redhawk wrote:What kind of software is coming with this camera would this enable video streaming over a web page served by apache??

Richard S.
See previous post, but I have written three apps, one to take JPEG stills, one to take video and one to take YUV420. And Dom has got some instructions that can use the video recording app to stream over the network. Each app can apply various different effects to the data, and the first two have a demo mode that cycles though various options. When I have time I'll post the options available.

The apps I am sure will also be improved as time goes on, and since they will come with source code I hope lots of people will adapt and modify to their own specifications.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
jbeale
Posts: 3518
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Foundation Camera Board information

Tue Mar 05, 2013 7:57 pm

Anyone working with raw images on Linux probably already knows this. But just in case not, be aware that Dave Coffin's open source program DCRaw http://www.cybercom.net/~dcoffin/dcraw/ can likely do what needs to be done to convert a raw still frame into a usable format. Just need to figure out the parameters for your specific device.

bantammenace2012
Posts: 122
Joined: Mon May 28, 2012 12:18 pm

Re: Foundation Camera Board information

Tue Mar 12, 2013 3:35 pm

wrt. The Great Orme, perhaps the camera modules might be geo-cached as a method of distribution.

JDWraspberryPi
Posts: 1
Joined: Tue Mar 26, 2013 4:10 pm

Re: Foundation Camera Board information

Tue Mar 26, 2013 6:59 pm

I would like to suggest command-line software that would open a file, capture video data from the Foundation Camera Board, write the data to the file, and close the file after receiving a termination signal. This method would would allow the user to interactively stop the video capture at any arbitrary time after starting the capture. A user-interactive session might look like the following example:

Code: Select all

$ vcap video.mp4 &
$ kill `ps | grep "grep" --invert-match | grep "vcap.sh video.mp4" | head -n 1 | awk '{print $1}'`;
Here "$ " represents a Linux command prompt, "vcap" is the name of the command, and "video.mp4" is the name of the file. The user would execute the first command to begin the video capture, wait for some time, and then execute the second command to end the video capture. The big deal here is that the software gives the user control over when to stop the video capture. Unfortunately, some command-line, video-capture commands do not provide the user with this capability.

This method would also allow the user to non-interactively stop the video capture after a predetermined time using a shell script like the following:

Code: Select all

#!/bin/bash
vcap $1 &
sleep $2 
kill `ps | grep "grep" --invert-match | grep "vcap.sh video.mp4" | head -n 1 | awk '{print $1}'`;
With this script the user could capture video to a file for a specified time interval by entering the following commands at a Linux prompt:

Code: Select all

$ chmod +x vcap.sh
$ vcap.sh video.mp4 60 &
Here "vcap.sh" is the name of the shell script, "video.mp4" is the name of the file, and "60" is the number of seconds in the specified time interval.

The vcap program would trap the termination signal, close the video-capture file, and exit gracefully. Alternatively, the program could achieve the same functionality by monitoring a file. When the user or a shell script modified that file in a predetermined way then the program would treat that as a termination signal, close the video-capture file, and exit gracefully. Of course the video-capture program could also write to stdout and the user could redirect the output to a file using a command like the following:

Code: Select all

$ vcap > video.mp4 &
This last method would give the user even more control and greater modularity for software developers. For instance the user could pipe the data through a "transcoder" program before saving it to the file.

Code: Select all

$ vcap | transcoder > video.mp4 &
Then any number of people could work on different transcoders without touching the code for the video-capture program. In the last example I am not sure how the transcoder would identify which bits of information were part of the data and which bits of information were part of the wrapper but this method would work well if it were actually possible.

fastmapper
Posts: 27
Joined: Wed Mar 27, 2013 3:54 am

Re: Foundation Camera Board information

Wed Mar 27, 2013 4:05 am

I'm very interested in the camera board, but I do have some questions.

I've seen the question asked several times before, but I haven't seen it answered: what is the camera focal length? I need to know in order to determine what resolution and field of view I can expect from photos collected by the camera.

I am also interested to know: will the ARM processor have access to camera timing signals such as vertical sync or horizontal reference?

poing
Posts: 1131
Joined: Thu Mar 08, 2012 3:32 pm

Re: Foundation Camera Board information

Wed Mar 27, 2013 8:11 am

I don't think it's known as a hard fact what focal length is used, but from what I've seen I'd guess it's equivalent to around 28-35mm on a 135 film SLR where the chip sends out 5MP. Keep in mind though that it's a $25 module including the lens so guessing the resolution based on these figures seems pointless, for the actual resolution depends on both the chip and the lens. You'd need actual measurements.

If you look at this time laps video @ 1.10 you can see what I mean (although I have no clue what settings were used to record the images): http://www.recantha.co.uk/blog/?p=3201

If I see that my first reaction is 'how do I get that lens off' (but hey, I'm spoiled). Guess I'll have to buy two and use a hacksaw on one of them :D

User avatar
RaTTuS
Posts: 10506
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Foundation Camera Board information

Wed Mar 27, 2013 8:29 am

poing wrote:.... Guess I'll have to buy two and use a hacksaw on one of them :D
Scalpel !
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Camera board”