Convert the .json marked by labelme into a picture


import os
path = 'C: / Users / tj / Desktop / dd' # path is the path where the .me file after labelme is marked
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 is the path of labelme_json_to_dataset.exe path + '/' + file is the path of reading.json path 

print (path + '/' + file)

Guess you like

Origin www.cnblogs.com/tangjunjun/p/12710615.html