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)