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
ColorImageandDepthImagefor a givenSensor(using its resolution etc.):ColorIamge.allocate_for_sensor(sensor: Sensor) -> ColorImageDepthIamge.allocate_for_sensor(sensor: Sensor) -> DepthImage
- Save images to *.png files:
ColorImage.to_image(filename: str, compression: int = 3) -> NoneDepthImage.to_image(filename: str, compression: int = 3) -> None
Usage
Requirements:
- Installed locally the RecFusion SDK
Then:
pip install pyRecFusionSDK
Publish new version to PyPi
- Remove
dist/andbuild/ - Run
uv build --sdist - Run
uv publish - Type the token!
Examples
We provide several examples of using RecFusionSDK with Python:
- capture_playback.py - capture sequence of images as playback file (*.rfs)
- capture_png.py - capture single frame to image (*.png)
- machine_token.py - display machine token required for offline license
- reconstruct_from_playback.py - reconstruct mesh from playback file (*.rfs)
- reconstruct_sensor.py - reconstruct mesh directly from sensor data
- reconstruct_sensor_listener.py - (NOT WORKING) reconstruct mesh directly from sensor data using sensor listener
- show_sensor_info.py - show information about sensor (e.g. model, UUID, resolutions)
Project details
Release history Release notifications | RSS feed
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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad79032765df284f39f763eddefbb7ea3fcb58d63c59fc33c77198f2ca027f5
|
|
| MD5 |
4b6f759e33e8e5667d607b7609837028
|
|
| BLAKE2b-256 |
a7262eaba2dcf6fc264d2362c12f39c1ec1f6808bbb2531def272d499ca37461
|