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

网站百度收录快wordpress插件 二次开放

网站百度收录快,wordpress插件 二次开放,做网站必须要公网ip,青岛模板网站建设价格依赖json与os 输入:default.json 输出每个点云对应一个标签 参考:3D点云目标检测数据集标注工具 保姆级教程——CVAT (附json转kitti代码)_3d点云标注工具-CSDN博客 import json import osdef json_to_kitti(json_path, outpu…

依赖json与os

输入:default.json

输出每个点云对应一个标签

参考:3D点云目标检测数据集标注工具 保姆级教程——CVAT (附json转kitti代码)_3d点云标注工具-CSDN博客

import json
import osdef json_to_kitti(json_path, output_dir):with open(json_path, 'r') as f:data = json.load(f)labels = data['categories']['label']['labels']os.makedirs(output_dir, exist_ok=True)# 遍历每一帧for item in data['items']:item_id = item['id']  # 使用 JSON 中的 'id' 值annotations = item['annotations']# 输出 KITTI 格式文件的路径,使用 'id' 命名output_path = f"{output_dir}/{item_id}.txt"with open(output_path, 'w') as f_out:# 遍历每个标注for annotation in annotations:label_id = annotation['label_id']label_name = labels[label_id]['name']# 提取 3D 立方体信息position = annotation['position']rotation = annotation['rotation']scale = annotation['scale']# KITTI 格式字段truncated = 0  # 默认为 0,因为未提供截断信息occluded = 1 if annotation['attributes']['occluded'] else 0alpha = rotation[2]  # 使用 Z 轴的旋转角作为方向角bbox_left = 0.0  # 2D 边界框位置,点云标注中通常为 0bbox_top = 0.0bbox_right = 0.0bbox_bottom = 0.0height = scale[2]  # 物体高度width = scale[0]   # 物体宽度length = scale[1]  # 物体长度x = position[0]    # 物体在相机坐标系中的 x 坐标y = position[1]    # 物体在相机坐标系中的 y 坐标z = position[2]    # 物体在相机坐标系中的 z 坐标rotation_y = rotation[2]  # KITTI 中物体绕 Y 轴的旋转角度# 将数据写入到 KITTI 格式文件f_out.write(f"{label_name} {truncated} {occluded} {alpha} "f"{bbox_left} {bbox_top} {bbox_right} {bbox_bottom} "f"{height} {width} {length} {x} {y} {z} {rotation_y}\n")json_to_kitti('/home/wisdom/pyprojects/dataset/uat1/annotations/default.json', '/home/wisdom/pyprojects/dataset/uat1/annotations/kitti_labels')

http://www.dtcms.com/wzjs/558250.html

相关文章:

  • 毕业设计做课程网站好注册资本1000万的公司需要多少钱
  • 江苏省建设厅网站建造师强制注销phpmysql网站开发实例
  • 淘宝客网站备案流程seo超级外链工具免费
  • 深圳网站建设价格是多少启东市住房建设局网站
  • 高端网站建设要多少钱wordpress mu下载
  • 免费网站制作推广莘县网站制作
  • 下载建设银行官方网站下载人人商城源码
  • 指数网站网络营销论文摘要
  • 个人网站优秀推广策略和推广方法
  • 郑州网站建设 新浪博客怎么用python做网页
  • 网站建设方案书设计图电商网站开发面试题
  • 奢做品二手 哪个网站好国家企业信息管理系统官网
  • 企业进行网站建设的方式wordpress方向
  • 米各庄网站建设太原做手机网站
  • 微信公众号直接同步到wordpress网站seo分析案例
  • 河南网站建设技术公司菠菜网站的代理怎么做的
  • 网站风格的设计原则可以放友情链接的网站
  • 做考勤的网站电子商务网站建设技术规范
  • 动易网站后台编辑器无效问题网站制作中搜索栏怎么做
  • 苏州建设工程人才招聘网信息网站网站空间付款方式
  • 中山网站建设怎么样最新新闻国际新闻
  • 常平东莞网站建设网站做权重的好处
  • 潍坊网站建设一品网络小程序郴州seo快速排名
  • seo做网站赚钱吗网站建设合同黑客攻击
  • 个人做网站费用自己做的网页发布
  • 抚顺营销型网站建设深圳市保障性住房轮候申请系统
  • 免费注册域名网站知乎高端自适应网站开发
  • 网站建站免费江西省城市建设档案馆网站
  • 网站硬件建设方案罗湖田贝社区网站建设
  • 扬州大学第四届网站建设评比做网站要用编程吗