rying to get the video preview from a webcam in matlab. I dont know what Im doing wrong. Can someone help me?
Make sure you have package for this.
It is already installed. With an application software I can preview the video. I can even take a snapshot
this is my code: vid = videoinput('winvideo',1); preview(vid)
let me try it on my machine
and this is what I get: ??? Error using ==> videoinput.videoinput There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO. Error in ==> Untitled1 at 1 vid = videoinput('winvideo',1); ??? Error using ==> videoinput.videoinput There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO. Error in ==> Untitled1 at 1 vid = videoinput('winvideo',1);
It might not recognize your driver(webcam)
Do you have any idea how to fix it?
I downloaded the driver from the webcam site
Let me try your code on my computer
I have another one: %Toma de imagen vid = videoinput('winvideo',1,'YUY2_640x480'); set(vid,'ReturnedColorSpace','rgb'); opcion = 1; while opcion > 0 preview(vid); opcion = input('Digite:\n\n* 0 para salir,\n* 1 para capturar imagen.\n\n'); if (opcion==1) imwrite(getsnapshot(vid),'test2.jpg'); imshow('test2.jpg') end end close all clc it worked well one month ago
vid = videoinput('winvideo',1); preview(vid) Above piece of code works on my computer, so try re installing your driver
Ok im gonna restar my computer then. Dont go please
What are you working on,btw?
Image processing. Im working on a system that recognizes how many circles in a test have a tick. Then counting them in order to get a score for the student
And the immage my be taken from a webcam
ok Im comming back soon
That's pretty cool, very innovative
Yeah its working. No much I have to do it for my semester project
What class is it for?
Digital signal processing
Are you EE major?
Electrical Engineering
Join our real-time social learning platform and learn together with your friends!