longmao-point-cloud-converter
==================
点云文件转换工具类(pcd,pot)
安装
----------------
.. code-block:: Python
pip install longmao-point-cloud-converter
使用
----------------
.. code-block:: python
############ 工具类
## 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": "longmao-point-cloud-converter",
"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/b9/3d/6bc2dbd771d068feb851b5caee5311a06aa7c95b181ba63e44ffc7b87a26/longmao-point-cloud-converter-0.0.5.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 longmao-point-cloud-converter\n\n\n\u4f7f\u7528\n----------------\n.. code-block:: python\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": "The official LongMao SDK for Python.",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/nayuan/point-cloud-converter-python"
},
"split_keywords": [
"point-cloud",
"potree",
"pcd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b93d6bc2dbd771d068feb851b5caee5311a06aa7c95b181ba63e44ffc7b87a26",
"md5": "27e67e36131030263b4e1f34904cdec1",
"sha256": "b281cd1fb84485a87e3e3f5a693c984bf19784dada4f5751489f796e8d9befcf"
},
"downloads": -1,
"filename": "longmao-point-cloud-converter-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "27e67e36131030263b4e1f34904cdec1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13793,
"upload_time": "2023-09-25T07:06:05",
"upload_time_iso_8601": "2023-09-25T07:06:05.506268Z",
"url": "https://files.pythonhosted.org/packages/b9/3d/6bc2dbd771d068feb851b5caee5311a06aa7c95b181ba63e44ffc7b87a26/longmao-point-cloud-converter-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-25 07:06:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nayuan",
"github_project": "point-cloud-converter-python",
"github_not_found": true,
"lcname": "longmao-point-cloud-converter"
}