Implementing "IMREAD" function in real time

조회 수: 6 (최근 30일)
Kingsley Bowoto
Kingsley Bowoto 2021년 2월 11일
답변: Walter Roberson 2021년 2월 12일
I am currently working on a project that has to do with the capturing of images with a camera. I want a matlab syntax that can read images from a target folder as soon as the images go into it. I would greatly appreaciate if anyone can give me a clue on this.

답변 (2개)

Image Analyst
Image Analyst 2021년 2월 11일
If your MATLAB program has control of the camera, call getsnapshot() followed by image() and drawnow. If not, repeatedly call dir() and look for changes, then identify the new file and call imread() and imshow() if a new image appeared in the folder. Not sure how fast it will be though. Should appear "real time" if your frame rate is low enough.
  댓글 수: 3
Image Analyst
Image Analyst 2021년 2월 11일
Then I guess you used the second method I mentioned, right?
Kingsley Bowoto
Kingsley Bowoto 2021년 2월 12일
I tried but didn't work. Please can you show me how the syntax will look like,I might be missing something somewhere.

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


Walter Roberson
Walter Roberson 2021년 2월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by