Using MATLAB I am capturing an image from a webcam. I want to extract the date and time of the captured image. How can I do that?
This is my code::
vid = videoinput('winvideo', 1, 'RGB24_640x480');
for i=1:10
img=getsnapshot(vid);
fname=['image' num2str(i)];
imwrite(img,fname,'jpg');
pause(3);
end