【PCL】.asc文件转换为.pcd文件 - Cloud丶S的博客 - CSDN博客 https://blog.csdn.net/syc666946/article/details/798
虽然是转载,对原文进行一点介绍。
**
- 原始数据:
**
新建一个txt文件:命名为convert,后缀为py
直接粘贴原文的代码:
import time
from sys import argv
#script,filename = argv
# filename = raw_input("please input filename: ")
# print ("the input file name is:%r." %filename)
def convert(filename):
print ("the input file name is:%r." %filename)
start = time.time()
print("open the file.....")
file = open(filename,"r+")
count = 0
for line in file:
count = count + 1
print("size is %d" %count)
file.close()
#output = open("out.pcd&