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

做网站的回扣免费网站模版建设

做网站的回扣,免费网站模版建设,时间轴 网站模板,做讲课ppt的网站前言 点云数据作为一种丰富的三维空间信息表达方式#xff0c;通常用于自动驾驶、机器人导航和三维建模等领域。然而#xff0c;点云数据的直观性不如二维图像#xff0c;这限制了它在一些需要快速视觉反馈的应用场景中的使用。本文将探讨如何将点云数据转换为二维图像通常用于自动驾驶、机器人导航和三维建模等领域。然而点云数据的直观性不如二维图像这限制了它在一些需要快速视觉反馈的应用场景中的使用。本文将探讨如何将点云数据转换为二维图像并介绍相关的技术和实践方法。 实现原理 将3D Box进行投影到图片上。 width, height 480, 480 image np.zeros((height, width, 3), dtypenp.uint8)dis_x_thresh 50 dis_y_thresh 40 # 遍历每个点并在图像上绘制 for point in points:if abs(point[1]) dis_y_thresh or point[0] dis_x_thresh:x (dis_y_thresh-point[1]) * width /(dis_y_thresh*2) #此处的x对应于点云的yy (dis_x_thresh-point[0]) * height /(dis_x_thresh*2) 代码实现 #获取3dbox检测框 def load_groundtruth(gt_file):with open(gt_file, r) as hd:objects json.load(hd)return objects #获取检测框的角点 def get_obj_corners(obj):center [obj[Center][CenterX], obj[Center][CenterY], obj[Center][CenterZ]]size [obj[Size][ObjectLength], obj[Size][ObjectWidth], obj[Size][ObjectHeight]]yaw obj[Yaw]rot np.asmatrix([[math.cos(yaw), -math.sin(yaw)],\[math.sin(yaw), math.cos(yaw)]])plain_pts np.asmatrix([[0.5 * size[0], 0.5*size[1]],\[0.5 * size[0], -0.5*size[1]],\[-0.5 * size[0], -0.5*size[1]],\[-0.5 * size[0], 0.5*size[1]]])tran_pts np.asarray(rot * plain_pts.transpose())tran_pts tran_pts.transpose()corners np.arange(24).astype(np.float32).reshape(8, 3)for i in range(8):corners[i][0] center[0] tran_pts[i%4][0]corners[i][1] center[1] tran_pts[i%4][1]corners[i][2] center[2] (float(i 4) - 0.5) * size[2]return corners #将3d box投影映射到Bev图片上。 for obj in objects:corners get_obj_corners(obj)x1 (dis_y_thresh-corners[0][1]) * width /(dis_y_thresh*2)y1 (dis_x_thresh-corners[0][0]) * height /(dis_x_thresh*2)x2 (dis_y_thresh-corners[1][1]) * width /(dis_y_thresh*2)y2 (dis_x_thresh-corners[1][0]) * height /(dis_x_thresh*2)x3 (dis_y_thresh-corners[2][1]) * width /(dis_y_thresh*2)y3 (dis_x_thresh-corners[2][0]) * height /(dis_x_thresh*2)x4 (dis_y_thresh-corners[3][1]) * width /(dis_y_thresh*2)y4 (dis_x_thresh-corners[3][0]) * height /(dis_x_thresh*2)box np.array([int(x1),int(y1),int(x2),int(y2),int(x3),int(y3),int(x4),int(y4)])boxs box.reshape((-1,2))cv2.drawContours(image, [boxs], 0, (0, 255, 0), 2) 结果可视化
http://www.ho-use.cn/article/10824157.html

相关文章:

  • 建站平台最便宜开发工具选项卡在哪
  • 咸宁做网站的公司那家便宜旅行网站开发
  • 班级网站建设规划书搜狗竞价
  • 做网站大概要花多少钱wordpress手机加载不出来
  • 统一管理网站系统安徽网站建设外贸
  • 深圳官网网站建设珍爱网征婚免费下载
  • 深圳南山住房和建设局网站官网微网站 文章
  • 免费网站站长查询南宁公司网站模板建站
  • 常州做的网站的公司网页系统设计
  • 模板型网站建设免费封面设计在线生成软件
  • wordpress网站是什么意思装修公司哪家产品好
  • php做网站知乎wordpress中文免费
  • 承装承修承试材料在哪个网站做文化事业建设费在哪个网站申报
  • 好看的手机网站模板活动推广朋友圈文案
  • 南宁商城网站推广公司贵阳微网站
  • 五个网站十堰市住房和城乡建设厅官方网站
  • 企业建设网站好处京润珍珠企业网站优化
  • 龙岗网站建设费用广州哪里做公司网站号
  • 水利建设相关网站网络营销策划书实施计划
  • 做网站l价格展厅搭建公司
  • 云南省建设系统网站云主机 小型网站
  • 陕西大型网站建设开发一个游戏的过程
  • 怎么建立一个网站让外国人浏览wordpress2.9
  • 站群软件北京工商注册代理公司
  • 广州seo网站推广平台天河外贸型网站建设
  • 做北美市场的外贸网站电子政务平台官网
  • 搭建网站详细步骤.net 网站开发书籍
  • 网站建设如何敲图标代码怎么学会建自己网站的方法
  • 企业网站开发需要江苏住房与城乡建设厅网站
  • 吉林省四平市建设局网站四川省建筑人员证书查询