labelme从json文件提取points到txt文件
最近查csdn关于labelme提取json矩形框的坐标比较少,自己写了点处理数据的代码,右键run即可
需要更改的地方
dir_json = ‘D:/JiaWong_result/json/’
dir_txt = ‘D:/JiaWong_result/res/’
改你自己的文件夹!是文件夹不是文件
第一步:写个代码看看路径对不对
import os
dir_json = 'D:/JiaWong_result/json/'
dir_txt = 'D:/JiaWong_result/res/'
if not
原创
2022-05-29 20:20:41 ·
716 阅读 ·
1 评论