import os
import shutil
images_path = os.listdir("D:/UA_IGNORE/UA_IGNORE_TRAIN")
print(len(images_path))
for image_path in images_path:
if os.path.exists("E:/3181929UANOPEOPLETXT/" + image_path.split('.')[0] + ".txt"):
shutil.copy("E:/3181929UANOPEOPLETXT/" + image_path.split('.')[0] + ".txt","D:/UA_IGNORE/UA_IGNORE_TRAIN")
print("1")
复制同名文件 copy_same_name_files
最新推荐文章于 2024-10-05 18:02:32 发布