real time image processing ?

Hello, I have 3 CCTV cameras which working continuously, instead of saving video, they take snapshot each second and saving in different folders. I mean: camera one save an image for each second in folder A, camera two save image in folder B, camera 3 in folder C. I'd like to use Matlab for real time image processing, just wondering to know how can I read image from each folder contentiously? for offline processing already used this method for each image but its not working now:
srcFiles = dir('C:\New Folder\*.jpg');
for i = 1 : length(srcFiles)
filename = strcat('C:\New Folder\',srcFiles(i).name);
I = imread(filename);
figure, imshow(I);
end

답변 (2개)

Marry M
Marry M 2016년 7월 6일

0 개 추천

you may use this method: https://uk.mathworks.com/matlabcentral/answers/uploaded_files/21085/recurse_subfolders.m

댓글 수: 1

Abo
Abo 2016년 7월 6일
thank you Marry, your suggestion is just for offline processing i think. but in my case the number of images in each folder change in each second, for example at time 0 i have one image in each folder, then 3 seconds later i have 3 more (4 images) in each folder. what should i do for this kind of problem?

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

Image Analyst
Image Analyst 2016년 7월 7일

0 개 추천

You can get the file date/time from dir(). Then sort them to figure out the newest one.

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

질문:

Abo
2016년 7월 6일

답변:

2016년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by