how to find location of Image captured using webcam ?

6 ビュー (過去 30 日間)
sanjay
sanjay 2014 年 3 月 18 日
回答済み: Dishant Arora 2014 年 3 月 18 日
I have to find location of image captured using webcam. adaptorName = 'winvideo'; deviceID = 1; vidFormat = 'RGB24_640x480'; vid = videoinput(adaptorName, deviceID, vidFormat); I = getsnapshot(vid); % fullImageFileName = fileparts(which(I));
I have to get path of image into fullImageFileName variable..

回答 (1 件)

Dishant Arora
Dishant Arora 2014 年 3 月 18 日
getsnapshot returns Image frame(3D-array), it doesn't write that into memory as an image. So, I is nothing but a variable in matlab workspace. See:
whos I
To write it into memory as an image for future uses:
imwrite(I , 'fullFileName')

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by