Advertisement

批量处理LabelMe标记后的Json文件

阅读量:
复制代码
 import argparse

    
 import base64
    
 import json
    
 import os
    
 import os.path as osp
    
 import warnings
    
  
    
 import PIL.Image
    
 import yaml
    
  
    
 from labelme import utils
    
  
    
  
    
 def main():
    
     warnings.warn("This script is aimed to demonstrate how to convert the\n"
    
               "JSON file to a single image dataset, and not to handle\n"
    
               "multiple JSON files to generate a real-use dataset.")
    
  
    
     parser = argparse.ArgumentParser()
    
     parser.add_argument('json_file')
    
     parser.a

全部评论 (0)

还没有任何评论哟~