lst = list() for file_name in os.listdir(dir_image): image = PIL.Image.open(file_name) lst.append(image) arr = numpy.array(lst).
確定! 回上一頁