摘要:
unet自带的json_to_dataset.py有点问题。用这个转比较好 点击查看代码 import random import cv2 as cv import json import numpy as np from matplotlib import pyplot as plt from s 阅读全文
摘要:
1.图片转base64 点击查看代码 import os import shutil import base64 def traverse_folder(path): for root,dirs,files in os.walk(path): for file in files: if file.s 阅读全文
摘要:
去除大颗粒脚本 点击查看代码 import cv2 import numpy as np import json import os def list_jsons(folder_path): for filename in os.listdir(folder_path): if filename.e 阅读全文
摘要:
点击查看代码 import cv2 import numpy as np import json import os def list_jsons(folder_path): for filename in os.listdir(folder_path): if filename.endswith( 阅读全文
摘要:
去除labelme空的标注文件和对应的图片 点击查看代码 import os import json def is_empty_labelme_file(file_path): with open(file_path, 'r') as f: data = json.load(f) # 检查图像数据是 阅读全文