目标跟踪CLE绘图 OTB数据跟踪绘图 mat文件txt文件 相互转换
import os
import shutil
mat_path = r"C:\Users\lpf\Desktop\buffer\OTB_results"
cls_path = r"C:\Users\lpf\Desktop\buffer\OTB_classification"
mat_lists = os.listdir(mat_path)
mat_lists.sort()
def copy_file(name):
al_path = os.path.join(cls_path, name)
if os.path.exists(al_path):
pass
else:
os.mkdir(al_path)
cls_path_item1 = os.path.join(al_path, item)
shutil.copy(mat_path_item, cls_path_item1)
al_lists = os.listdir(al_path)
al_lists.sort()
if