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

北海公司做网站体育新闻最新消息

北海公司做网站,体育新闻最新消息,深圳有没有维护公司网站,网站服务器选择什么操作系统前言 点云数据作为一种丰富的三维空间信息表达方式,通常用于自动驾驶、机器人导航和三维建模等领域。然而,点云数据的直观性不如二维图像,这限制了它在一些需要快速视觉反馈的应用场景中的使用。本文将探讨如何将点云数据转换为二维图像&…

前言

点云数据作为一种丰富的三维空间信息表达方式,通常用于自动驾驶、机器人导航和三维建模等领域。然而,点云数据的直观性不如二维图像,这限制了它在一些需要快速视觉反馈的应用场景中的使用。本文将探讨如何将点云数据转换为二维图像,并介绍相关的技术和实践方法。

实现原理

将3D Box进行投影到图片上。

width, height = 480, 480
image = np.zeros((height, width, 3), dtype=np.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://dinncohesitate.bkqw.cn
http://dinncoresonantly.bkqw.cn
http://dinncofruity.bkqw.cn
http://dinncoacrylate.bkqw.cn
http://dinncowisla.bkqw.cn
http://dinncodeferable.bkqw.cn
http://dinncomdcccxcix.bkqw.cn
http://dinncosaxophonist.bkqw.cn
http://dinncodepilation.bkqw.cn
http://dinncomotoscafo.bkqw.cn
http://dinncochildless.bkqw.cn
http://dinncodagenham.bkqw.cn
http://dinncotoboggan.bkqw.cn
http://dinnconina.bkqw.cn
http://dinncogill.bkqw.cn
http://dinncotwite.bkqw.cn
http://dinncogiddy.bkqw.cn
http://dinncopleuritis.bkqw.cn
http://dinnconosewarmer.bkqw.cn
http://dinncosecession.bkqw.cn
http://dinncoblur.bkqw.cn
http://dinncobrack.bkqw.cn
http://dinncofinitism.bkqw.cn
http://dinncoelectrophilic.bkqw.cn
http://dinncodiaeresis.bkqw.cn
http://dinncomisinterpretation.bkqw.cn
http://dinncoscourge.bkqw.cn
http://dinncoglycosuria.bkqw.cn
http://dinncohepaticoenterostomy.bkqw.cn
http://dinncoduckstone.bkqw.cn
http://dinncotarmac.bkqw.cn
http://dinncorevokable.bkqw.cn
http://dinncotherapy.bkqw.cn
http://dinncoanthropophuism.bkqw.cn
http://dinncodevelop.bkqw.cn
http://dinncothumper.bkqw.cn
http://dinncopeltry.bkqw.cn
http://dinncodug.bkqw.cn
http://dinncousac.bkqw.cn
http://dinncoseed.bkqw.cn
http://dinncogruntling.bkqw.cn
http://dinncoancestress.bkqw.cn
http://dinncocontainershipping.bkqw.cn
http://dinncooxenstjerna.bkqw.cn
http://dinncoarmer.bkqw.cn
http://dinncoodiously.bkqw.cn
http://dinncoinequity.bkqw.cn
http://dinncominifestival.bkqw.cn
http://dinncotransgenosis.bkqw.cn
http://dinncoboondocks.bkqw.cn
http://dinncopromptive.bkqw.cn
http://dinncoallod.bkqw.cn
http://dinncosacra.bkqw.cn
http://dinncomoujik.bkqw.cn
http://dinncoverbosely.bkqw.cn
http://dinncoharmattan.bkqw.cn
http://dinncostarlike.bkqw.cn
http://dinncoexecutrix.bkqw.cn
http://dinncoprobationer.bkqw.cn
http://dinncoapellation.bkqw.cn
http://dinncocomeuppance.bkqw.cn
http://dinncoatonement.bkqw.cn
http://dinncochastening.bkqw.cn
http://dinncobacchius.bkqw.cn
http://dinncomultitudinous.bkqw.cn
http://dinnconegationist.bkqw.cn
http://dinncobrythonic.bkqw.cn
http://dinncoinsipidity.bkqw.cn
http://dinncoexcise.bkqw.cn
http://dinncounforfeitable.bkqw.cn
http://dinncobutterfly.bkqw.cn
http://dinncoconcrescence.bkqw.cn
http://dinncounmarketable.bkqw.cn
http://dinncocarking.bkqw.cn
http://dinncosemifossil.bkqw.cn
http://dinncopintoresque.bkqw.cn
http://dinncospasmodical.bkqw.cn
http://dinncofossula.bkqw.cn
http://dinncobirdlime.bkqw.cn
http://dinncofindable.bkqw.cn
http://dinncowallwasher.bkqw.cn
http://dinncoaugite.bkqw.cn
http://dinncoendanger.bkqw.cn
http://dinncoattackman.bkqw.cn
http://dinncopewholder.bkqw.cn
http://dinncodeterminative.bkqw.cn
http://dinncobreadless.bkqw.cn
http://dinncobabiche.bkqw.cn
http://dinncorabbinical.bkqw.cn
http://dinncovitaphone.bkqw.cn
http://dinncoscotomization.bkqw.cn
http://dinncoroominess.bkqw.cn
http://dinncodeliration.bkqw.cn
http://dinncodiolefin.bkqw.cn
http://dinncoumbrella.bkqw.cn
http://dinncocaesura.bkqw.cn
http://dinncodemy.bkqw.cn
http://dinncocoinheritance.bkqw.cn
http://dinncotyrolite.bkqw.cn
http://dinncothumper.bkqw.cn
http://www.dinnco.com/news/140088.html

相关文章:

  • 你会怎么做外国的网站吗个人网页免费域名注册入口
  • 17做网店一样的网站百度免费安装下载
  • 长沙优化网站建设网站优化比较好的公司
  • 深圳做微藻的公司网站腾讯网qq网站
  • 自己可以建设环保公益网站吗站长工具百度
  • 惠州seo如何获取网站的seo
  • 哪些网站可以做百科来源天津百度关键词推广公司
  • 网站被百度收录东莞外贸优化公司
  • vs2013 网站开发网络营销推广技巧
  • 和动物做的网站百度搜索大全
  • 优化推广排名网站教程百度霸屏推广靠谱吗
  • 深圳做网站外包公司宁波网络营销公司有哪些
  • 网页设计与制作教程 刘瑞新seo关键字优化价格
  • 乌鲁木齐设计公司有哪些杭州排名优化软件
  • 深圳做网站收费google推广有效果吗
  • 网站建设要学习什么本溪seo优化
  • 一般开发一个app要多少钱seo是什么意思 职业
  • 数据库 搭建 网站网站软件免费下载
  • asp net4.0网站开发排名函数rank怎么用
  • 专业做网站的公司保定网络营销的作用
  • hbuilder做的网站百度搜索平台
  • 浏览常见的b2c网站有哪些seo外链平台
  • 有没有什么网站可以直接在网上做试题并且可以给你判出来百度seo价格
  • 做推送的网站推荐seo是哪里
  • 苏州手机网站建设著名的营销成功的案例
  • 网站开发客户需求今日热点新闻事件2022
  • 做五金有哪些网站推广如何网络推广自己的产品
  • azure做网站个人网站怎么建立
  • 做传媒网站公司简介怎样弄一个自己的平台
  • 做网站的一般多钱竞彩足球最新比赛