04-26-2006 04:31 AM - edited 04-26-2006 04:31 AM
Message Edited by Guyson on 04-26-2006 04:36 AM
04-27-2006 02:33 PM
04-28-2006 04:43 AM
04-29-2006 11:08 AM
Kai,
I took your VI and configured it to no triggering and doing the acquisition from a Basler 601f1 in 640x480 at 60fps.
The acquisition of 2000 frames takes ~30 seconds. This is what I expected.
Writing the resulting ~600MB AVI to disk after the sequence was acquired takes about 15 seconds.
The overall execution time is less than one minute. So where is the problem? BTW, I noticed on my PC in the TaskManager a Peak Memory Charge of almost 1600MB. Does your computer have enough memory for this operation ?
BR, Guenter Mueller
04-29-2006 02:43 PM
04-29-2006 07:47 PM
Hello Kai,
concerning your "Am I right that the camera cannot maintain 100 fps in 640x480 with YUV4:2:2 video format?" - I think I was sleeping. Although I am not the hero of all video formats, YUV4:2:2 should mean, that you have an average data transfer of 16bit per pixel. (look e.g. at homepages of video professionals -- and -- This is also what Basler says.)
Short check: 100fps x (640 x 480) x (2byte per pixel) is about 60MB/sec. This is twice the bandwidth of 1394. So the maximum frame rate you can expect should be about 50fps.
Does anyone know better about YUVa:b:c than me and would like to add some comments for Kai? (Especially in case my calculation is incorrect.)
04-29-2006 08:08 PM
Hello Kai.
The information in my recent posting should be ok. A solution might be to use the camera in raw mode and to "bayer decode" the color - the A602fc CMOS chip supports this. See e.g. Basler homepage for the specification of the A602fc and the http://www.framos.de/pdf_sheets/mt9v403_ds.pdf.
This should solve your "bandwidth problem".
05-03-2006 04:08 AM
Thanks Guenter,
I can make use of Bayer 8 to record a avi file. However, how can we decode the frame?
I understand that it is hard to guarantee an exact frame rate all the time. May I know the tolerance of the rate?
My notebook configuration are as follow,
1) HP NX6120
2) Microsoft Windows XP Professional Version 2002 SP2
3) Intel(R) Pentium (R) M processor 1.73GHz 794MHz, 0.99GB RAM.
The tolerance is important for me to further analysis.
05-03-2006 10:08 AM
Hello Kai.
Examples how to "bayer decode" an image are shipped with your NI Vision Software, see e.g. the color.llb in the vision examples.
Your question "May I know the tolerance of the rate?" is quite good - and hard to answer.
Scott Savage properly pointed out (in his answer) that you are not dealing with a real time operating system.
A good approach is: You run a benchmark and specify the conditions that must be met to keep your system doing it's job:
Try out if your notebook is in a good condition, i.e. it should at least be capable in doing a continous acquisition without "loosing" a images.
In the next step try out if your notebook is capable in writing all the incoming frames (within a reasonable delay) to an AVI.
If this works and the CPU and memory usage look good, this should be worth further investigation.
05-03-2006 09:06 PM