real time image processing ?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
Marry M
2016-7-6
you may use this method: https://uk.mathworks.com/matlabcentral/answers/uploaded_files/21085/recurse_subfolders.m
Image Analyst
2016-7-7
You can get the file date/time from dir(). Then sort them to figure out the newest one.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for IP Cameras 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!