激光点云格式转换 bin 相互 pcd转换

代码在git

kitti-velodyne-viewer

View kitti lidar point cloud with bounding box label by single file.

Requirements

The code requires pyqtgraph and python 3.x

Dataset

Download KITTI 3D object detection data and organize the folders as follows:

    dataset/KITTI/object/

        velodyne/
            training/
                000003.bin
            testing/

        calib/
            training/
                000003.txt
            testing/

        label/
            training/
                000003.txt
            testing/

convert .pcd to .bin

usage:

# pcdfolder is where `.pcd` files are stores
python pcd2bin.py covert pcdfolder binfolder

for example:

python pcd2bin.py convert pcdfiles outputfolder

convert .bin to .pcd

you have to install PCL lib first.
usage:

cmake .
make
./build/binpcd --m=bin2pcd --b=velodyne_bin/ --p=velodyne_pcd/
./build/binpcd --m=pcd2bin --b=velodyne_bin/ --p=velodyne_pcd/

Options:

--help : produce help message
--b : bin file folder
--p : pcd file folder
--m : mode - bin2pcd, pcd2bin

refer to kitti_velodyne_bin_to_pcd

posted @   luoganttcc  阅读(568)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
点击右上角即可分享
微信分享提示