shell 大神请忽略,windows同样适用。
菜鸡整理数据集时,日常记录
clc; clear;
path_in = "./standard_Bakground/";
path_out = "./standard/";
files = dir(path_in);
for i = 3 : length(files)
old_name = files(i).name;
new_name = num2str(sprintf('%04d.jpg', i-2));
movefile(path_in + old_name, path_out + new_name);
end