% % file=dir('/home/wang/Desktop/trainset/others/');
% % for i=3:length(file)
% %      path= strcat('/home/wang/Desktop/trainset/others/',file(i).name,'\n');
% %      %save('/home/wang/Desktop/trainsetimage_name');
% %      %save result.txt  -ascii path
% %      fid=fopen('./result5.txt','a');
% %      fprintf(fid,path);
% % end



fid=fopen('result5.txt');
line=fgetl(fid);
while ischar(line)
    I=imread(line);
    imshow(I);
    line=fgetl(fid);
    u=input('do you want to continue?');
end
fclose(fid);

 

转载于:https://www.cnblogs.com/Wanggcong/p/4807892.html

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐