Closed cellphonef closed 5 years ago
with open(os.path.join('label_tmp', stem) + '.txt', 'a') as f: for i in range(len(x_left)):
f.writelines(str(int(x_left[i]))) f.writelines("\t") f.writelines(str(int(ymin))) f.writelines("\t") f.writelines(str(int(x_right[i]))) f.writelines("\t") f.writelines(str(int(ymax))) f.writelines("\n")
作者改了原作者的代码把? 每行多出来一个text字符串 并且每个坐标值不是以逗号分割的而是以/t 我是要以原作者以逗号分割还是制表符分隔啊? 为什么多一行text啊 有何意义? @YCG09
已解决
with open(os.path.join('label_tmp', stem) + '.txt', 'a') as f: for i in range(len(x_left)):
f.writelines("text\t")
作者改了原作者的代码把? 每行多出来一个text字符串 并且每个坐标值不是以逗号分割的而是以/t 我是要以原作者以逗号分割还是制表符分隔啊? 为什么多一行text啊 有何意义? @YCG09