Error using imaq.VideoDevice

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 Kommentar

sm m
sm m am 7 Jun. 2015
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

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Walter Roberson
Walter Roberson am 7 Jun. 2015

0 Stimmen

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 Kommentare

sm m
sm m am 7 Jun. 2015
Is there a way I could avoid doing all this .I dont need a live video for my work.
Is there a command to open a saved video stream and read it frame by frame through an infinte loop?
Walter Roberson
Walter Roberson am 7 Jun. 2015
videoreader class and getFrame(). There are examples on the documentation pages for videoreader
Suryadiputra Liawatimena
Suryadiputra Liawatimena am 27 Jul. 2018
which add ons? I am using 2018a, cannot find winvideo. thanks.
Image Analyst
Image Analyst am 27 Jul. 2018
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"

Melden Sie sich an, um zu kommentieren.

Image Analyst
Image Analyst am 7 Jun. 2015

0 Stimmen

See my attached demo for how to "open a saved video stream and read it frame by frame".

Gefragt:

am 7 Jun. 2015

Kommentiert:

am 27 Jul. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by