How to add the format to Image acquisition toolbox?
4 views (last 30 days)
Show older comments
Hello, every one.
I have a question about my code. There is something wrong when I coding the example from image acquisition.
% Access an image acquisition device.
vidobj = videoinput('winvideo', 1, 'RGB24_320X240');
end
but my computer shows that:
The FORMAT specified is not supported by this device.
Because when I debug
info=imaqhwinfo('winvideo');
info.DeviceInfo.SupportedFormats;
The lists of SupportedFormats do not include RGB, so what can I do to add RGB into this?
Thanks for your kindness.
Hang Yang
0 Comments
Accepted Answer
Walter Roberson
on 10 Sep 2017
Specify one of the color formats that the device supports. But then specify 'ReturnedColorSpace', 'rgb'
2 Comments
More Answers (0)
See Also
Categories
Find more on National Instruments Frame Grabbers in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!