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

via 数据格式
在这里插入图片描述
代码

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

版权声明:本文为m0_46308537原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。