Skip to main content

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

Project description

cumo

ビルド

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/cumo/__main__.pyは3面図を撮る例です。

$ poetry run python -m cumo 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 cumo 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

cumo-0.26.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cumo-0.26.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file cumo-0.26.0.tar.gz.

File metadata

  • Download URL: cumo-0.26.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.7 Linux/5.15.79.1-microsoft-standard-WSL2

File hashes

Hashes for cumo-0.26.0.tar.gz
Algorithm Hash digest
SHA256 e8feaddeeaeb8e448f9a577201eb4a1019d1b9c579e5106c47a1a206cb99837e
MD5 e4a39dada87b41adc9763f1eef241500
BLAKE2b-256 785d24ecf69ad86b64b537b55acadc55faeb39096308f4849dd50e548a1f3a95

See more details on using hashes here.

File details

Details for the file cumo-0.26.0-py3-none-any.whl.

File metadata

  • Download URL: cumo-0.26.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.7 Linux/5.15.79.1-microsoft-standard-WSL2

File hashes

Hashes for cumo-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7339dce68d0fd9f5e42e2eb4048c8de6edc5dfb1ec0d2a215c1abc57e835f320
MD5 fcc5703b7eaacf66a5a22c051cbd20cb
BLAKE2b-256 31614b222790a88d24ca83fa436f5fc0b37d656b449193f8bce0e5dc46eb14be

See more details on using hashes here.

Supported by

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