摘要: import cv2 as cvimport numpy as npimport osimport skimage.iopath_img=r'D:\data\compay_build\img' # 切割图像路径path_label=r'D:\data\compay_build\label' # 切割 阅读全文
posted @ 2020-04-16 18:08 tangjunjun 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import ospath = 'C:/Users/tj/Desktop/dd' # path为labelme标注后的.json文件存放的路径json_file = os.listdir(path)for file in json_file: os.system("C:/soft/ev4/venv/ 阅读全文
posted @ 2020-04-16 09:44 tangjunjun 阅读(2845) 评论(0) 推荐(0) 编辑
摘要: 中文名称读取与保存方式如下主代码: img = cv2.imdecode(np.fromfile(data_root, dtype=np.uint8), -1)#中文名读取方式 cv2.imencode('.jpg', img_draw)[1].tofile(os.path.join(out_img 阅读全文
posted @ 2020-04-16 09:16 tangjunjun 阅读(322) 评论(0) 推荐(0) 编辑
https://rpc.cnblogs.com/metaweblog/tangjunjun