python
python有关程序
Zomcxj
这个作者很懒,什么都没留下…
展开
-
批量分割mask转json
代码import osimport cv2import sysimport PILimport copyimport jsonimport yamlimport base64import numpy as npimport skimage.io as iofrom glob import globfrom convertmask import baseDecoratetry: from labelme import __version__ as labelme_versio原创 2022-04-20 10:12:15 · 5594 阅读 · 17 评论 -
批量分割mask转xml检测框
代码import sysimport osimport cv2import yamlimport copyimport xmltodictimport numpy as npimport skimage.io as ioimport xml.etree.ElementTree as ETfrom xml.dom.minidom import parsefrom glob import globsys.path.append('..')def json_to_xml(json_s原创 2022-04-20 09:46:25 · 977 阅读 · 3 评论