1 import glob 2 import os 3 4 inputPath = r'E:/data/pic/cat' 5 fileList = glob.glob(inputPath + '/*') 6 cnt = 0 7 for path in fileList: 8 os.rename(pa Read More
1 import os 2 import cv2 3 class GeneDataset(): 4 def __init__(self,rootdir): 5 self.rootdir = rootdir 6 self.subdirs = [] 7 def looksubdir(self): 8 l Read More