Low preview performance for 4K camera
Show older comments
Dear Mathworks support team,
I'm currently using Image Acquisition Toolbox 5.3 (R2017b) to acquire images from a Point Grey BlackFlyS camera (BFS-U3-89S6C-C, 4096x2160 resolution).
When I use preview function, the live video has very low performance (the actual frame rate is just 3-4 fps). Can you clarify the problem and give me a solution for this issue?
Thank you
6 Comments
Walter Roberson
on 14 Apr 2018
Could you confirm that you have the device connected directly to a USB-3 compatible port on your host, and that nothing else is connected to the same USB-3 controller ? I would recommend looking through the system hardware inventory to confirm this, as it is not uncommon for USB controllers to be shared with unexpected devices. (I still have no idea where the infrared sensor is on my machine, but it is connected to one of the USB controllers that is connected to some of my slots...)
Duc Do
on 15 Apr 2018
Walter Roberson
on 15 Apr 2018
USB-3: theoretical 640 megabytes per second. The benchmarks I find suggest that in real transfer situations it will probably be between 115 to 167 megabytes per second.
If we suppose real-world rates of 150 megabytes per second (near the top end of the tests), then that would be about 17 frames per second at 8.9 megabytes per frame.
8.9 megabytes per frame would be 4096*2160/1000/1000 which would be for uncompressed 8 bits per pixel grayscale. But the BFS-U3-89S6C-C, is a color device capable of 10 bits and 12 bits resolution; the 42 fps mode is for 8 bits images, which in turn implies either MONO8 or BayerRG8 which https://www.ptgrey.com/Content/Images/Uploaded/Downloads/TRM/2016/BFS-html/html/Model/public/ImageFormatControl.html appears to be "8-bit bayer red green packed format", and if I read the documentation carefully it is only sending 2 bits per pixel for two of the colors with the other four bits being a double-sample of the third color. Ummm, possible, but not high quality color.
I have to wonder precisely what format you are requesting from the camera, because the above might be fast but not good color, and the alternatives with better color would be at most half the maximum frame rate.
At the moment, when I look at the technical documentation, it is plausible that the preview frame rate you are seeing is realistic -- that is, that rate would be what would be expected for higher quality images at that image resolution.
Walter Roberson
on 15 Apr 2018
Edited: Walter Roberson
on 25 Jul 2018
If you are plotting over top then you should not be using preview().
Duc Do
on 16 Apr 2018
Answers (0)
Categories
Find more on DCAM Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!