import os
import cv2
def changeLable(path):
fileList = os.listdir(path)
for fileName in fileList:
# 打开标签文件
fileLabel = open(path + "/" + fileName, "r+")
# 取出文件名并拼接.jpg
imgName = fileName.split(".")[0]+".jpg"
print("所需图片{}".format(imgName))
imagePath = "E:/iron/coco/image/"+imgName
print(
从txt中读取数据转成yolo格式数据
于 2022-07-22 08:24:59 首次发布