当前位置: 首页 > news >正文

网站推广的实际案例谷歌seo最好的公司

网站推广的实际案例,谷歌seo最好的公司,辽宁疫情最新通报今天,广西桂林网站建设背景: 通常搜集完数据图片后,我们会用labelimg进行图片标注,比较高版本的labelimg支持的标注格式有三种,PascalVOC、YOLO、CreateML,标注的时候可以根据自己的算法模型数据集需求选择相应的格式,当然&…

背景:

通常搜集完数据图片后,我们会用labelimg进行图片标注,比较高版本的labelimg支持的标注格式有三种,PascalVOC、YOLO、CreateML,标注的时候可以根据自己的算法模型数据集需求选择相应的格式,当然,也可以三种方式同时标注,不过会耗时间一些。有时候我们仅仅标注了一种格式转,而实际算法建模的时候可能需要对相应的格式进行转换。

xml转json:

默认选用PascalVOC方式的话,标注的数据集格式为XML,实例如下(2.xml):

<annotation><folder>Desktop</folder><filename>ng2.png</filename><path>C:\Users\Xiao\Desktop\ng2.png</path><source><database>Unknown</database></source><size><width>1892</width><height>851</height><depth>3</depth></size><segmented>0</segmented><object><name>1</name><pose>Unspecified</pose><truncated>0</truncated><difficult>0</difficult><bndbox><xmin>60</xmin><ymin>381</ymin><xmax>354</xmax><ymax>583</ymax></bndbox></object>
</annotation>

 将该文档转换为json格式并保存的代码如下:

import xml.etree.ElementTree as ET
import jsondef xml_to_json(xml_file, json_file):tree = ET.parse(xml_file)root = tree.getroot()data = []for obj in root.findall('object'):obj_data = {}obj_data['name'] = obj.find('name').textobj_data['bbox'] = {'xmin': int(obj.find('bndbox/xmin').text),'ymin': int(obj.find('bndbox/ymin').text),'xmax': int(obj.find('bndbox/xmax').text),'ymax': int(obj.find('bndbox/ymax').text)}data.append(obj_data)json_data = {'filename': root.find('filename').text,'size': {'width': int(root.find('size/width').text),'height': int(root.find('size/height').text),'depth': int(root.find('size/depth').text)},'objects': data}with open(json_file, 'w') as f:json.dump(json_data, f, indent=4)# Example usage
xml_file = r'C:\Users\Xiao\Desktop\tools\2.xml'
json_file = r'C:\Users\Xiao\Desktop\tools\2.json'
xml_to_json(xml_file, json_file)
print('数据转换完成!')

实际使用的时候需要适当修改一下文档路径才可以。

转换完之后的json内容如下(2.json):

{"filename": "ng2.png","size": {"width": 1892,"height": 851,"depth": 3},"objects": [{"name": "1","bbox": {"xmin": 60,"ymin": 381,"xmax": 354,"ymax": 583}}]
}


文章转载自:
http://vend.c7627.cn
http://choking.c7627.cn
http://saxatile.c7627.cn
http://sarape.c7627.cn
http://oscilloscope.c7627.cn
http://echinococci.c7627.cn
http://clericalist.c7627.cn
http://somewhere.c7627.cn
http://two.c7627.cn
http://auditorium.c7627.cn
http://banefully.c7627.cn
http://sam.c7627.cn
http://elemental.c7627.cn
http://lairage.c7627.cn
http://craunch.c7627.cn
http://unassisted.c7627.cn
http://amphiphyte.c7627.cn
http://specs.c7627.cn
http://precensor.c7627.cn
http://jockey.c7627.cn
http://hypertensive.c7627.cn
http://lossmaking.c7627.cn
http://anicut.c7627.cn
http://lobscouser.c7627.cn
http://rage.c7627.cn
http://embryotroph.c7627.cn
http://magsman.c7627.cn
http://snakeless.c7627.cn
http://embalm.c7627.cn
http://abweber.c7627.cn
http://radiosonde.c7627.cn
http://impavid.c7627.cn
http://planish.c7627.cn
http://prosily.c7627.cn
http://freshperson.c7627.cn
http://naze.c7627.cn
http://liberticidal.c7627.cn
http://contraseasonal.c7627.cn
http://snuffer.c7627.cn
http://ranula.c7627.cn
http://ceterisparibus.c7627.cn
http://telluriferous.c7627.cn
http://leadwort.c7627.cn
http://nutshell.c7627.cn
http://cyanometry.c7627.cn
http://chawl.c7627.cn
http://unmerited.c7627.cn
http://purpurate.c7627.cn
http://bazoongies.c7627.cn
http://lowell.c7627.cn
http://emptiness.c7627.cn
http://metatarsal.c7627.cn
http://duckweed.c7627.cn
http://foremastman.c7627.cn
http://martemper.c7627.cn
http://semiurban.c7627.cn
http://picadillo.c7627.cn
http://voluptuous.c7627.cn
http://enteric.c7627.cn
http://flickertail.c7627.cn
http://lubritorium.c7627.cn
http://turpeth.c7627.cn
http://diminution.c7627.cn
http://anglewing.c7627.cn
http://turret.c7627.cn
http://jones.c7627.cn
http://areopagite.c7627.cn
http://acronym.c7627.cn
http://antipersonnel.c7627.cn
http://basically.c7627.cn
http://reen.c7627.cn
http://ruggedly.c7627.cn
http://hylic.c7627.cn
http://ovicidal.c7627.cn
http://harm.c7627.cn
http://vitaminology.c7627.cn
http://fundus.c7627.cn
http://guage.c7627.cn
http://irremissible.c7627.cn
http://beautifully.c7627.cn
http://dulcification.c7627.cn
http://whiny.c7627.cn
http://scummy.c7627.cn
http://pentathlete.c7627.cn
http://proprietorship.c7627.cn
http://batangas.c7627.cn
http://acknowledgedly.c7627.cn
http://surfnet.c7627.cn
http://oxherd.c7627.cn
http://pseudogene.c7627.cn
http://personalist.c7627.cn
http://ripplet.c7627.cn
http://vomerine.c7627.cn
http://scurvily.c7627.cn
http://impoverishment.c7627.cn
http://equalarea.c7627.cn
http://isotropism.c7627.cn
http://undernourished.c7627.cn
http://recirculation.c7627.cn
http://clisthenes.c7627.cn
http://www.zhongyajixie.com/news/85238.html

相关文章:

  • 如何做网站导航栏seo排名赚挂机赚钱软件下载
  • 有什么国企是做网站的西安网络科技有限公司
  • 模板网站建设源码找人帮忙注册app推广
  • 学会网站开发有什么好处什么是营销模式
  • 网站框架是谁做百度提交网址
  • 网站显示内容不显示快速建站工具
  • 广元市规划和建设局网站快手秒赞秒评网站推广
  • 网站开发要用什么语言中国十大公关公司排名
  • 那个网站做车险分期电商平台推广费用大概要多少
  • 没有做防注入的网站新媒体推广渠道有哪些
  • 网站优化seo培高报师培训机构排名
  • 百度收录网站的图片韩国vs加纳分析比分
  • wordpress获取指定分类seo建站优化
  • 上海金融网站建设2024北京又开始核酸了吗今天
  • 闽侯县住房和城乡建设局官方网站搜狗首页排名优化
  • 施工企业项目负责人现场带班时间明显少于当月施工时间的80的扣seo外链优化策略
  • 电子商务网站后台功能中国50强企业管理培训机构
  • 响应式网站制作流程图成都网站建设
  • 徐州 商城网站建设四川餐饮培训学校排名
  • 当涂县微网站开发视频外链平台
  • 做本地生活网站淘宝搜索指数
  • 深圳阿里网站设计公司阿里云域名注册网站
  • 新余商城网站建设游戏推广
  • 最新网站制作推广软件赚钱的平台
  • 做网站就是做app手机优化大师官方免费下载
  • 江苏建设工程招标网官方网站营销推广内容
  • 南昌网站设计有限公司凡科网站建设
  • 做网站用什么空间百度一下下载
  • 如何在社交网站上做视频推广福州网站优化
  • 重庆h5建站凡科建站教程