Error using imaq.VideoDevice

2 visualizaciones (últimos 30 días)
sm m
sm m el 7 de Jun. de 2015
Comentada: Image Analyst el 27 de Jul. de 2018
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 comentario
sm m
sm m el 7 de Jun. de 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

Iniciar sesión para comentar.

Respuestas (2)

Walter Roberson
Walter Roberson el 7 de Jun. de 2015
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 comentarios
Suryadiputra Liawatimena
Suryadiputra Liawatimena el 27 de Jul. de 2018
which add ons? I am using 2018a, cannot find winvideo. thanks.
Image Analyst
Image Analyst el 27 de Jul. de 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"

Iniciar sesión para comentar.


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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by