python图片批量保存(opencv) # 保存图片的地址 img_file = "E:/leetcode/Mask_RCNN-master/project/data" # 确认上述地址是否存在 if not os.path.exists(img_file): os.mkdir(img_file) for i in range(0