import os
json_folder = r"C:\Users\lirui\Desktop\mas"
FileNameList = os.listdir(json_folder)
for i in range(len(FileNameList)):
# 判断当前文件是否为json文件
if(os.path.splitext(FileNameList[i])[1] == ".json"):
json_file = json_folder + "\\" + FileNameList[i]
# 将该json文件转为png
os.system("labelme_json_to_dataset " + json_file)
将labelme可视化
最新推荐文章于 2023-09-26 07:00:00 发布
292

被折叠的 条评论
为什么被折叠?



