longmao-point-cloud-converter
==================
点云文件转换工具类(pcd,pot)
安装
----------------
.. code-block:: Python
pip install npccp
使用
----------------
.. code-block:: python
import npccp
############ 工具类
## 1. pcd格式转换(ascii,binary,binary_compressed)
npccp.pcdtopcd(sourcePcd, targetPcd, targetDataType)
## 2. pcd转pot(只转换x,y,z,intensity)
npccp.pcdtopot(pcd, pot)
############ 自行封装
## 1. pcd读
with PcdReader(pcd) as reader:
header = reader.getHeader()
while True:
point = reader.getPoint()
if point is None:
break
print(point)
## 2. pcd写
header = PcdXyziHeader()
header.data = PcdHeader.DATA_TYPE_ASCII
with PcdWriter(target, header) as writer:
point = [x,y,z,i]
writer.write(point) ## 循环写点
## 3. pot写
with PotreeWriter(pot) as writer:
point = npccp.new_potree_point(x, y, z, intensity, r, g, b)
writer.write(point) ## 循环写点
Raw data
{
"_id": null,
"home_page": "https://github.com/nayuan/point-cloud-converter-python",
"name": "npccp",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "point-cloud,potree,pcd",
"author": "nayuan",
"author_email": "haojunsheng@longmaosoft.com",
"download_url": "https://files.pythonhosted.org/packages/63/91/2f6600aa29e83b818280653461cf43a2ffb0671a52c8db6d85a772c680c3/npccp-0.1.3.tar.gz",
"platform": "any",
"description": "longmao-point-cloud-converter\n==================\n\u70b9\u4e91\u6587\u4ef6\u8f6c\u6362\u5de5\u5177\u7c7b(pcd,pot)\n\n\n\u5b89\u88c5\n----------------\n.. code-block:: Python\n\n pip install npccp\n\n\n\u4f7f\u7528\n----------------\n.. code-block:: python\n\n import npccp\n\n ############ \u5de5\u5177\u7c7b\n ## 1. pcd\u683c\u5f0f\u8f6c\u6362(ascii,binary,binary_compressed)\n npccp.pcdtopcd(sourcePcd, targetPcd, targetDataType)\n ## 2. pcd\u8f6cpot(\u53ea\u8f6c\u6362x,y,z,intensity)\n npccp.pcdtopot(pcd, pot)\n\n ############ \u81ea\u884c\u5c01\u88c5\n ## 1. pcd\u8bfb\n with PcdReader(pcd) as reader:\n header = reader.getHeader()\n while True:\n point = reader.getPoint()\n if point is None:\n break\n print(point)\n ## 2. pcd\u5199\n header = PcdXyziHeader()\n header.data = PcdHeader.DATA_TYPE_ASCII\n with PcdWriter(target, header) as writer:\n point = [x,y,z,i]\n writer.write(point) ## \u5faa\u73af\u5199\u70b9\n\n ## 3. pot\u5199\n with PotreeWriter(pot) as writer:\n point = npccp.new_potree_point(x, y, z, intensity, r, g, b)\n writer.write(point) ## \u5faa\u73af\u5199\u70b9\n\n",
"bugtrack_url": null,
"license": "Apache",
"summary": "Point Cloud Converter",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/nayuan/point-cloud-converter-python"
},
"split_keywords": [
"point-cloud",
"potree",
"pcd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "63912f6600aa29e83b818280653461cf43a2ffb0671a52c8db6d85a772c680c3",
"md5": "6510c0baa23ce13a5729abb36cc516c8",
"sha256": "205ed1a4cd3062e6591d5b46f39b4e0405fb600fc6e29827f5d079f0c6d702f1"
},
"downloads": -1,
"filename": "npccp-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "6510c0baa23ce13a5729abb36cc516c8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17325,
"upload_time": "2023-09-25T09:03:14",
"upload_time_iso_8601": "2023-09-25T09:03:14.164077Z",
"url": "https://files.pythonhosted.org/packages/63/91/2f6600aa29e83b818280653461cf43a2ffb0671a52c8db6d85a772c680c3/npccp-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-25 09:03:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nayuan",
"github_project": "point-cloud-converter-python",
"github_not_found": true,
"lcname": "npccp"
}