labelme标注的json文件转变成VIA文件

via 数据格式
labelme标注的json文件转变成VIA文件_第1张图片
代码

import json
import os
from tqdm import tqdm
# labelme mask json dir

#键:file,值:one_image
#one_image;键 fileref size":1115004,"filename":"34020010494_e5cb88e1c4_k.jpg",
# "base64_img_data":"", "file_attributes":{},regions:{}
#regions: 键:0-----1---2---3:
# 值"shape_attributes":{"name":"polygon","all_points_x":[],"all_points_y":[]},"region_attributes":{}
via

你可能感兴趣的:(数据集处理,json,python,numpy)