필터 지우기
필터 지우기

Save multiple images in a folder

조회 수: 2 (최근 30일)
Hazel Sialongo
Hazel Sialongo 2016년 10월 4일
댓글: Muhammad Anwaar 2019년 1월 31일
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?

답변 (2개)

Massimo Zanetti
Massimo Zanetti 2016년 10월 4일
Change its name
  댓글 수: 1
Muhammad Hammad Malik
Muhammad Hammad Malik 2018년 8월 20일
without changing the name how can we save different images with out overwrite?

댓글을 달려면 로그인하십시오.


Thorsten
Thorsten 2016년 10월 4일
You have to use a new name for each image; e.g., for your i'th image:
filename = sprintf('myimage%02d.png', i);
  댓글 수: 4
Hazel Sialongo
Hazel Sialongo 2016년 10월 4일
How to get image from webcam? I'm sorry i'm new to this.
Muhammad Anwaar
Muhammad Anwaar 2019년 1월 31일
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');

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by