添加状态分类和液面分割
This commit is contained in:
@ -202,9 +202,9 @@ def totxt(xml_path, out_path, class_mapping):
|
||||
|
||||
if __name__ == '__main__':
|
||||
# 设置路径
|
||||
roxml_path = r"/home/hx/桌面/image/1" # 存放原始 XML 文件夹名字的路径
|
||||
dotaxml_path = r"/home/hx/桌面/image/2" # 存放 DOTA格式的 XML文件夹名字(小建议:先手动创建该文件夹,然后路径放在这里)
|
||||
out_path = r"/home/hx/桌面/image/2" # 存放 DOTA格式的 TXT 文件夹名字(小建议:先手动创建该文件夹,然后路径放在这里)
|
||||
roxml_path = r"/home/hx/桌面/image/image/1" # 存放原始 XML 文件夹名字的路径
|
||||
dotaxml_path = r"/home/hx/桌面/image/image/1" # 存放 DOTA格式的 XML文件夹名字(小建议:先手动创建该文件夹,然后路径放在这里)
|
||||
out_path = r"/home/hx/桌面/image/image/2" # 存放 DOTA格式的 TXT 文件夹名字(小建议:先手动创建该文件夹,然后路径放在这里)
|
||||
|
||||
# 第一步:将 XML 文件统一转换成旋转框的 XML 文件
|
||||
filelist = os.listdir(roxml_path)
|
||||
|
||||
Reference in New Issue
Block a user