- 博客(1)
- 收藏
- 关注
原创 python读取子目录图片并整理重命名转存
/home/jiuanlab1/July_Aug_Proj/datalabel中有多个文件夹,每个文件夹中有图片,最终效果是使得每个子目录中的图片被提取出来并且被分别保存。 import os import cv2 cnt_img=0 def rename_label(path,outpath1,outpath2): global cnt_img files = os.listdir(path) for f in files: if(os.path.is
2021-07-13 18:51:01 220
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人