Display the different size of preview image from that of the captured images.
Ältere Kommentare anzeigen
Hi, I have a question about webcam Image Capture and Preview.
The following is my simple code. This cpde captures images from the webcam every one second while displaying the preview image.
----------------------------------------------------------------------
cap1 = videoinput('winvideo', ID_num1,'YUY2_1920x1080');
preview(cap1)
for 1 = 1:1000
frame1 = getsnapshot(cap1);
imwrite(frame1,'title','.jpg');
pause(1)
end
----------------------------------------------------------------------
The preview image from my webcam is 1920x1080. Instead, I would like to display the preview image 320x240 while capturing the images from the webcam for 1920x1080.
Is there any suggestion or any way to solve my problem?
Thank you for your help and kindness.
Akzeptierte Antwort
Weitere Antworten (3)
Walter Roberson
am 16 Feb. 2011
0 Stimmen
Perhaps preview(imresize(cap1,[320 240])) or something similar?
John Smith
am 16 Feb. 2011
John Smith
am 16 Feb. 2011
0 Stimmen
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!