Trouble with videoinput and dcam device
Mostrar comentarios más antiguos
Hi all,
I'm relatively new to Matlab. I am trying to write a script that takes a live video feed from a Logitech HD Pro Webcam C920. Eventually I want to use edge detection with it rather than a recorded video, but thats not where Im having the issue. I am using Matlab R2014b.
This is my code for creating a videoinput object:
caminf = imaqhwinfo;
mycam = char(caminf.InstalledAdaptors());
mycaminfo = imaqhwinfo(mycam);
resolution = char(mycaminfo.DeviceInfo.SupportedFormats());
vid = videoinput(mycam, 1, resolution);
if I enter the command: imaqhwinfo(mycam), it says that AdaptorName: 'dcam'. However, if I run this code in a script I get the error message:
Error using videoinput (line 233)
There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO.
Im not really sure where the problem could be here...
Thank you
12 comentarios
Geoff Hayes
el 4 de En. de 2015
Luke - what happens when you step through the code? i.e. put a breakpoint at the line
mycaminfo = imaqhwinfo(mycam);
and step through each line. What does mycaminfo become? What is mycam?
Luke
el 5 de En. de 2015
Luke
el 5 de En. de 2015
Geoff Hayes
el 6 de En. de 2015
Luke - have you installed any (all?) drivers for this webcam? What happens if you run the command webcamlist in the MATLAB Command Window? Does your webcam appear in the list?
Kais Abu saleh
el 7 de Dic. de 2015
hey, i'm having same problem as luke, i tried the command webcamlist and i get an empty list as a result, i've tried everything do you have any idea what to do next?
Nhat Nguyen Thanh Minh
el 23 de Feb. de 2016
install webcam package from Support Package Installer could show you the webcam list
Dipendra Bhandari
el 29 de Jun. de 2016
where do I get a support package installer? i'm facing the exact same problem
Walter Roberson
el 29 de Jun. de 2016
Vishwas Banjan
el 13 de Nov. de 2016
Yousef Mohamed
el 18 de Dic. de 2016
When i write webcam list it tells me that it identifies the webcam and its name but the same problem occurs does that mean i have to work with a usb cam not the built in laptop cam ?
Diah Junaidi
el 31 de Mayo de 2019
Best way to solve this ---> if the usb webcam doesnt wanna install winvideo but you just have webcam, so you absolutely should choose : Image Acquisition Toolbox Support Package for "OS Generic Video Interface". This is the answer.
Vijay Hiremath
el 4 de Mzo. de 2021
Diah Junaidi : It worked as I installed the "OS Generic Video Interface" Thank you so much & U are really osm !
Respuesta aceptada
Más respuestas (1)
Duy Dang
el 10 de Abr. de 2018
0 votos
Thank you Vishwas Banjan, it work with your solution.
Categorías
Más información sobre DCAM Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!