当前位置:网站首页>Point cloud target detection Kitti dataset bin file visualization, one-stop solution
Point cloud target detection Kitti dataset bin file visualization, one-stop solution
2022-07-26 18:02:00 【Marstein】
Refer to the link method 1 , Need to install mayavi,numpy,pyqt5;
numpy+mayavi.mlab
1. Install dependency library
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install mayavi -i https://pypi.tuna.tsinghua.edu.cn/simple2. Read .bin Format file for visualization
import mayavi.mlab
import numpy as np
import os
def viz_mayavi(points, vals="distance"): # Visualization only uses 3 D data (x,y,z)!
x=points[:, 0]
y=points[:, 1]
z=points[:, 2]
r=points[:, 3] # reflectance value of point
d=np.sqrt(x**2+y**2)
if vals == "height":
col = z
else:
col = d
# Create the size of the visualization template
fig=mayavi.mlab.figure(bgcolor=(0, 0, 0), size=(1280, 720))
mayavi.mlab.points3d(x, y, z,
col,
mode="point",
colormap='spectral',
figure=fig,
)
mayavi.mlab.show()
if __name__ == "__main__":
bin_file_path = 'bin_2pcd'
bin_files = os.listdir(bin_file_path)
for bin_file in bin_files:
if bin_file.endswith(".bin"):
mypointcloud = np.fromfile(bin_file_path + '/' + bin_file, dtype=np.float32, count=-1).reshape([-1, 4])
viz_mayavi(mypointcloud,vals="height")3. You can get visual results
remarks :
The following error that cannot be run was encountered during , You can directly refer to the following link :Ubuntu18.04 Let's work it out Qt appear qt.qpa.plugin:Could not load the Qt platform plugin “xcb“ problem _ Hope Xiaohui's blog -CSDN Blog _bicyclegan
Generally, the problem is the same , See the above link for details , The solution is as follows ;
sudo apt-get install libxcb-xinerama0thus , Happy to see some clouds !
边栏推荐
- 【集训Day1】Spy dispatch
- 大咖访谈 | 开源对安全是双刃剑——《大教堂与集市》中文译本作者卫剑钒
- 点云目标检测KITTI数据集bin文件可视化,一站式解决
- 2、 Topic communication principle, code implementation
- Hosts this file has been set to read-only solution
- Linux Installation mysql8.0.29 detailed tutorial
- JS 函数作用域 变量声明提升 作用域链 不加var的变量,是全局变量
- Cross site scripting attack (XSS)
- Mondriaans‘s Dream(状态压缩DP)
- Machine learning by Li Hongyi 2. Regression
猜你喜欢

AI zhetianchuan DL regression and classification

【集训Day2】Torchbearer
![[Oumi reading club] talk about the creator economy in the meta universe: infinite dimension](/img/60/17cb0295f81dc580cc3ff8543ec253.png)
[Oumi reading club] talk about the creator economy in the meta universe: infinite dimension

【集训Day1】Spy dispatch

【数字IC】深入浅出理解AXI-Lite协议

深度学习实验:Softmax实现手写数字识别

AI zhetianchuan ml integrated learning

【集训Day1】 Dwarves line up

A detailed explanation of throughput, QPS, TPS, concurrency and other high concurrency indicators

236. The nearest common ancestor of a binary tree
随机推荐
Spark数据格式UnsafeRow
Tree DP problem
AI sky covering DL multilayer perceptron
Centos安装docker以及mysql和redis环境
Several ways to resolve hash conflicts
Linux Installation mysql8.0.29 detailed tutorial
VIM多行操作
Spark unified memory partition
Overview of the agenda of the keynote speech of apachecon Asia, an international celebrity vs a local open source star
The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
《敏捷宣言》四大价值观,十二大原则
Sign up now | oar hacker marathon phase III midsummer debut, waiting for you to challenge
兆骑科创海外高层次人才引进平台,创业赛事活动路演
老子云携手福昕鲲鹏,首次实现3D OFD三维版式文档的重大突破
【模板】线段树 1
Cross site scripting attack (XSS)
Diagram of seven connection modes of MySQL
Just this time! Talk about the technical solutions of distributed system in detail
5、 Parameter server principle, code implementation
Basic select statement