import os,shutil
num = 0
for file in os.listdir('Annotations2'):
num +=1
print(num,file)
orgin = os.path.join('Annotations2',file)
target = os.path.join('Annotations','20190618_{:>06d}.xml'.format(num))
shutil.copy(orgin,target)
orgin = os.path.join('JPEGImages2','{}.jpg'.format(file.split('.')[0]))
target = os.path.join('JPEGImages','20190618_{:>06d}.jpg'.format(num))
shutil.copy(orgin,target)
Annotations2待转化的
Annotations转换好的
目录

博客提及了待转化的Annotations和转换好的Annotations,但未提供更多详细信息。
1603

被折叠的 条评论
为什么被折叠?



