labelme标记的.json转换成图片


import os
path = 'C:/Users/tj/Desktop/dd' # path为labelme标注后的.json文件存放的路径
json_file = os.listdir(path)
for file in json_file:
os.system("C:/soft/ev4/venv/Scripts/labelme_json_to_dataset.exe %s" % (path + '/' + file)) #
# C:/soft/ev4/venv/Scripts/labelme_json_to_dataset.exe  为labelme_json_to_dataset.exe的路径  path + '/' + file 为读取.json路径

print(path + '/' + file)
posted @ 2020-04-16 09:44  tangjunjun  阅读(2862)  评论(0编辑  收藏  举报
https://rpc.cnblogs.com/metaweblog/tangjunjun