Save multiple images in a folder
Afficher commentaires plus anciens
After I captured the image it save the image.But when I captured again another image and when I save it, the previous image replaced by the new image. I want to save new image not to replace it. How will I do that?
Réponses (2)
Massimo Zanetti
le 4 Oct 2016
3 votes
Change its name
1 commentaire
Muhammad Hammad Malik
le 20 Août 2018
without changing the name how can we save different images with out overwrite?
Thorsten
le 4 Oct 2016
You have to use a new name for each image; e.g., for your i'th image:
filename = sprintf('myimage%02d.png', i);
4 commentaires
Hazel Sialongo
le 4 Oct 2016
for i = 1:10
I = ... % get image I from webcam
filename = sprintf('myimage%02d.png', i);
imwrite(filename, I)
end
Hazel Sialongo
le 4 Oct 2016
Muhammad Anwaar
le 31 Jan 2019
by this u can take image through webcam and u can save it
webcam = webcam(1);
preview(webcam);
img = snapshot(webcam);
imshow(img);
imwrite(img, 'ab.png');
Catégories
En savoir plus sur Deblurring dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!