labelmeでマークされた.jsonを画像に変換する


import os
path = 'C:/ Users / tj / Desktop / dd'#pathは、labelme
json_file = os.listdir(path)の
にjme_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はreading.jsonパスのパスです

print(path + '/' + file)

おすすめ

転載: www.cnblogs.com/tangjunjun/p/12710615.html