Error using imaq.VideoDevice

3 次查看(过去 30 天)
sm m
sm m 2015-6-7
I am using windows 8 on a 64 bit microprocessor. I wanted to use the following function but was getting the following error
Error using imaq.VideoDevice (line 12)
Invalid ADAPTORNAME 'winvideo' specified. ADAPTORNAME must be specified as a string. The available adaptors are {(none)}. Image acquisition adaptors may be available as downloadable support packages. Open Support Package Installer to install additional vendors.
Error in main (line 10)
oj = imaq.VideoDevice('winvideo',1);
Any suggestion will be helpful.
  1 个评论
sm m
sm m 2015-6-7
So instead of using a live video how can I recode this such that it uses a saved video instead of needing a live video.
Current code:
oj = imaq.VideoDevice('winvideo',1);
frame = step(oj);
How could I rewrite this so that it does the same but for a saved video in the path. tHANKS

请先登录,再进行评论。

回答(2 个)

Walter Roberson
Walter Roberson 2015-6-7
You need to download the support package. At the top of your MATLAB command window, look at the furthest grouping to the right and you will see a green Plus sign for "Add Ons". Click there and click on the support packages link that comes up from there.
  4 个评论
Suryadiputra Liawatimena
which add ons? I am using 2018a, cannot find winvideo. thanks.
Image Analyst
Image Analyst 2018-7-27
Are you looking for "Image Acquisition Toolbox Support Package for OS Generic Video Interface by MathWorks Image Acquisition Toolbox Team" or "MATLAB Support Package for IP Cameras by MathWorks Image Acquisition Toolbox Team"

请先登录,再进行评论。


Image Analyst
Image Analyst 2015-6-7
See my attached demo for how to "open a saved video stream and read it frame by frame".

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by