Skip to main content

Python wrapper around the RecFusionSDK library

Project description

pyRecFusionSDK

Easy multi-sensor mesh reconstruction with Python bindings to RecFusion SDK (C++).

Changes to original API

This project slightly modifies or adds new functionalites to the original RecFusion SDK API:

  • RecFusionSDK version string: version() -> str
  • Open all available sensors: SensorManager.open_all() -> list[Sensor]
  • Open any available sensor: SensorManager.open_any() -> Sensor | None
  • Obtain list of sensor color and depth formats:
    • Sensor.color_formats: list[SensorFormat]
    • Sensor.depth_formats: list[SensorFormat]
  • Initialize playback recorder using sensor options: RFSRecorder.init_from_sensor(sensor: Sensor) -> None
  • Initialize empty ColorImage and DepthImage for a given Sensor (using its resolution etc.):
    • ColorIamge.allocate_for_sensor(sensor: Sensor) -> ColorImage
    • DepthIamge.allocate_for_sensor(sensor: Sensor) -> DepthImage
  • Save images to *.png files:
    • ColorImage.to_image(filename: str, compression: int = 3) -> None
    • DepthImage.to_image(filename: str, compression: int = 3) -> None

Usage

Requirements:

Then:

pip install pyRecFusionSDK

Publish new version to PyPi

  1. Remove dist/ and build/
  2. Run uv build --sdist
  3. Run uv publish
  4. Type the token!

Examples

We provide several examples of using RecFusionSDK with Python:

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

pyrecfusionsdk-0.1.2rc2.tar.gz (25.4 kB view details)

Uploaded Source

File details

Details for the file pyrecfusionsdk-0.1.2rc2.tar.gz.

File metadata

  • Download URL: pyrecfusionsdk-0.1.2rc2.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for pyrecfusionsdk-0.1.2rc2.tar.gz
Algorithm Hash digest
SHA256 3ad79032765df284f39f763eddefbb7ea3fcb58d63c59fc33c77198f2ca027f5
MD5 4b6f759e33e8e5667d607b7609837028
BLAKE2b-256 a7262eaba2dcf6fc264d2362c12f39c1ec1f6808bbb2531def272d499ca37461

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