Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

las2pcd How to convert? #194

Open
csdyang opened this issue Aug 29, 2023 · 2 comments
Open

las2pcd How to convert? #194

csdyang opened this issue Aug 29, 2023 · 2 comments

Comments

@csdyang
Copy link

csdyang commented Aug 29, 2023

No description provided.

@Xanxus1111
Copy link

same question

@altarizer
Copy link

altarizer commented Apr 30, 2024

This method cannot work in this project

https://www.danielgm.net/cc/
install cloudcompare
open cloudcompare
load las file
save as pcd file

So i hope you will use this instread,

Make Converting Python Script

  1. make requirements.txt
laspy==1.7.1
numpy==1.19.5
pclpy==0.11.0
  1. install packages
$ pip install -r requirements.txt
  1. write code in las2pcd.py
import numpy as np

from pclpy import pcl
import pclpy

src_path = "src.las"
desc_path = "dest.pcd"

def las2pcd():
    pc = pclpy.io.las.read(src_path, "PointXYZ")
    writer = pcl.io.PCDWriter()
    writer.writeBinary(desc_path, pc)
las2pcd()
  1. convert
$ python las2pcd.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants