from
Search duplicate images in sub folders using histogram
by Tharindu Adikari
Finds duplicate images in a folder and in sub-folders using a histogram based method.
|
| scan_folder(folder_path)
|
function b = scan_folder(folder_path)
file_list = dir(folder_path);
for i=1:length(file_list)
child_path = [folder_path, '\', file_list(i).name];
if (file_list(i).isdir && ~strcmp(file_list(i).name, '.')&& ~strcmp(file_list(i).name, '..'))
scan_folder(child_path);
elseif (~file_list(i).isdir)
add_to_db(child_path);
end
end
b = 1;
end
|
|
Contact us