EADST

Python: Obtain All Image Path from Given Folder

Python: Obtain All Image Path from Given Folder

image_list = []
path = './test/'
for root, dirs, files in os.walk(path):
    for file in files:
        if file[-4:] == ".jpg":
            image_path = os.path.join(root, file)
            image_list.append(image_path)

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文242篇,共被浏览290036

本站已经建立1778天!

热门文章
文章归档
回到顶部