# image_list
    root_dir = '../data'
    img_path_list = []
    for (root, dirs, files) in os.walk(root_dir):
        if len(files) > 0:
            for file_name in files:
                img_path = root + '/' + file_name
                img_path = img_path.replace('\\', '/')
                img_path_list.append(img_path)
    print(img_path_list)

+ Recent posts