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 Commento

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

Accedi per commentare.

Risposte (2)

Walter Roberson
Walter Roberson il 7 Giu 2015

0 voti

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 Commenti

sm m
sm m il 7 Giu 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?
videoreader class and getFrame(). There are examples on the documentation pages for videoreader
which add ons? I am using 2018a, cannot find winvideo. thanks.
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"

Accedi per commentare.

Image Analyst
Image Analyst il 7 Giu 2015

0 voti

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

Richiesto:

il 7 Giu 2015

Commentato:

il 27 Lug 2018

Community Treasure Hunt

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

Start Hunting!

Translated by