navee_navee
Newbie level 1
hai frnds!!
i'm naveen.. i'm doing a face recognition project as major final year project in b.tech,i've been using the following code to acquire image through webcam but it shows a blank image in output...can any one help me? thanks
vid = videoinput('winvideo');
preview(vid);
start(vid);
im=getdata(vid); % im = getsnapshot(vid); alternative use
figure,imshow(im);
i'm using integrated webcam of laptop (model : compaq cq 40-144 tu).
i'm naveen.. i'm doing a face recognition project as major final year project in b.tech,i've been using the following code to acquire image through webcam but it shows a blank image in output...can any one help me? thanks
vid = videoinput('winvideo');
preview(vid);
start(vid);
im=getdata(vid); % im = getsnapshot(vid); alternative use
figure,imshow(im);
i'm using integrated webcam of laptop (model : compaq cq 40-144 tu).