- import os
-
- img_list = []
- for fileNames in os.walk("."):
- filename_extension = ['.jpg', '.png', '.jpeg', '.JPG', '.gif']
- for fe in filename_extension:
- for fileName in fileNames[-1]:
- if fileName.endswith(fe):
- img_list.append(fileName)
-
- for img in img_list:
- detect(img)
複製代碼 2021-11-23 22:51 上傳







paineyva1xk 發表在 痞客邦 留言(0) 人氣()