Save multiple images in a folder

2 visualizaciones (últimos 30 días)
Hazel Sialongo
Hazel Sialongo el 4 de Oct. de 2016
Comentada: Muhammad Anwaar el 31 de En. de 2019
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?

Respuestas (2)

Massimo Zanetti
Massimo Zanetti el 4 de Oct. de 2016
Change its name
  1 comentario
Muhammad Hammad Malik
Muhammad Hammad Malik el 20 de Ag. de 2018
without changing the name how can we save different images with out overwrite?

Iniciar sesión para comentar.


Thorsten
Thorsten el 4 de Oct. de 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 comentarios
Hazel Sialongo
Hazel Sialongo el 4 de Oct. de 2016
How to get image from webcam? I'm sorry i'm new to this.
Muhammad Anwaar
Muhammad Anwaar el 31 de En. de 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');

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by