VOC格式标签转换为yolo格式的标签

VOC格式标签转换为yolo格式的标签

xml -> txt

# _*_ coding:utf-8 _*_
import xml.etree.ElementTree as ET
import pickle
import os
from os import listdir, getcwd
from os.path import join
"""已知标签名,xml -> txt"""

imgs_path = './images_fire/'   #图片路径

你可能感兴趣的:(目标检测,目标检测,计算机视觉,深度学习)