Ask your own question, for FREE!
Mathematics 19 Online
OpenStudy (anonymous):

rying to get the video preview from a webcam in matlab. I dont know what Im doing wrong. Can someone help me?

OpenStudy (anonymous):

Make sure you have package for this.

OpenStudy (anonymous):

It is already installed. With an application software I can preview the video. I can even take a snapshot

OpenStudy (anonymous):

this is my code: vid = videoinput('winvideo',1); preview(vid)

OpenStudy (anonymous):

let me try it on my machine

OpenStudy (anonymous):

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);

OpenStudy (anonymous):

It might not recognize your driver(webcam)

OpenStudy (anonymous):

Do you have any idea how to fix it?

OpenStudy (anonymous):

I downloaded the driver from the webcam site

OpenStudy (anonymous):

Let me try your code on my computer

OpenStudy (anonymous):

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

OpenStudy (anonymous):

vid = videoinput('winvideo',1); preview(vid) Above piece of code works on my computer, so try re installing your driver

OpenStudy (anonymous):

Ok im gonna restar my computer then. Dont go please

OpenStudy (anonymous):

What are you working on,btw?

OpenStudy (anonymous):

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

OpenStudy (anonymous):

And the immage my be taken from a webcam

OpenStudy (anonymous):

ok Im comming back soon

OpenStudy (anonymous):

That's pretty cool, very innovative

OpenStudy (anonymous):

Yeah its working. No much I have to do it for my semester project

OpenStudy (anonymous):

What class is it for?

OpenStudy (anonymous):

Digital signal processing

OpenStudy (anonymous):

Are you EE major?

OpenStudy (anonymous):

Electrical Engineering

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!