目录
python操作coco json:
python生成coco格式_AI视觉网奇的博客-CSDN博客_coco python
可视化xml标注,同时生成json格式
import glob
import numpy as np
import cv2
import xml.etree.ElementTree as ET
import os
import json
class MyEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, np.integer):
return int(obj)
elif isinstance(obj, np.floating):
return float(obj)