Skip to main content

Webブラウザ上に点群を描画する python ライブラリ

Project description

pointcloud-viewer

ビルド

yarn、protoc、poetryが必要です(.devcontainer/Dockerfile参照)。 以下のようにするとlib/distにtar.gzとwhlファイルが生成されます。 クライアントのHTML等はライブラリに埋め込まれています。

$ ./build.sh

インストール

$ pip install pointcloud-viewer

ドキュメント

sphinxでドキュメントの生成が可能です。

$ cd lib
$ poetry install
$ poetry run sphinx-apidoc --append-syspath -F -o ./docs .

使用例

lib/kci/pointcloudviewer/__main__.pyは3面図を撮る例です。

$ poetry run python -m kci.pointcloudviewer pcl_logo.pcd
open: http://127.0.0.1:8082
setup...
resize window and press custom control button "start"
saved: screenshot_x.png
saved: screenshot_y.png
saved: screenshot_z.png

REPLでの使用も可能です。

$ poetry run python
Python 3.8.7 (default, Apr  9 2022, 21:34:33)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from kci.pointcloudviewer import PointCloudViewer
>>> viewer = PointCloudViewer()
>>> viewer.start()
>>> # open localhost:8082 on your browser
>>> with open(filename, "rb") as f:
>>>     b = f.read()
>>>     viewer.send_pointcloud_pcd(b)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kci.pointcloudviewer-0.19.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

kci.pointcloudviewer-0.19.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file kci.pointcloudviewer-0.19.1.tar.gz.

File metadata

  • Download URL: kci.pointcloudviewer-0.19.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for kci.pointcloudviewer-0.19.1.tar.gz
Algorithm Hash digest
SHA256 aaef5e4e91fad791524aea06d7b0d6cac948a836a305b30ef4913ed6459b1833
MD5 6d12392f3cff130df5fc79f66f611344
BLAKE2b-256 328c2a7067f5a675836ba6d85a7a50dd948231997941c616cbcd14965ff16446

See more details on using hashes here.

File details

Details for the file kci.pointcloudviewer-0.19.1-py3-none-any.whl.

File metadata

  • Download URL: kci.pointcloudviewer-0.19.1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for kci.pointcloudviewer-0.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b55c25775fdf3461a05eca51bc68eebc5900990be280aad3e6e8b8eaac1c6ff7
MD5 eccfcbff3c9d6fdb2826fbe0efb05c9f
BLAKE2b-256 55d8329a3a72fa4a74adf49934ceb4c4d412d31870bea088fbb77835e0fb564d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page