Skip to main content

Python realsense align

Project description

realsense-align

pre-commit License: BSD 3-Clause-Clear PyPI - Version

Porting librealsense C++ align code to Python C++ extension. Align depth and color image from numpy array without librealsense SDK and rs:frame infrastructure.

Prerequisites

  • uv
  • OpenMP

Build

uv build

Install

Install from PyPI

python -m pip install realsense-align

How to use

See tests/test_align.py for detail.

Run the test code by pytest tests.

Example

mmwave-capture-std RGB+Depth Video Player

Set up the virtual environment using uv

uv sync
source .venv/bin/activate

Then, run the code to show the RGB+Depth video

python examples/play_depth_video.py path/to/capture_00001

[IPorting

  • struct Intrinsic
  • Depth to color align
  • Color to depth align

Trade-off

  1. Don't care distortion: See librealsense#1430 for more information.

  2. Don't care extrinsic: Assume the following:

Rotation: [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
Translation: [0, 0, 0]

See src/proc/align.cpp for original implementation, and rs2_extrinsicsStruct Reference for rs2_extrinsics structure.

Links

LICENSE

The Clear BSD License

Copyright (c) 2023 Louie Lu <louielu@cs.unc.edu>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
     this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

     * Neither the name of the copyright holder nor the names of its
     contributors may be used to endorse or promote products derived from this
     software without specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

realsense_align-0.1.2-cp312-cp312-win_amd64.whl (86.3 kB view details)

Uploaded CPython 3.12Windows x86-64

realsense_align-0.1.2-cp312-cp312-win32.whl (78.9 kB view details)

Uploaded CPython 3.12Windows x86

realsense_align-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (188.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

realsense_align-0.1.2-cp312-cp312-macosx_14_0_arm64.whl (364.9 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

realsense_align-0.1.2-cp311-cp311-win_amd64.whl (85.9 kB view details)

Uploaded CPython 3.11Windows x86-64

realsense_align-0.1.2-cp311-cp311-win32.whl (78.7 kB view details)

Uploaded CPython 3.11Windows x86

realsense_align-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (188.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

realsense_align-0.1.2-cp311-cp311-macosx_14_0_arm64.whl (365.7 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

realsense_align-0.1.2-cp310-cp310-win_amd64.whl (84.7 kB view details)

Uploaded CPython 3.10Windows x86-64

realsense_align-0.1.2-cp310-cp310-win32.whl (77.6 kB view details)

Uploaded CPython 3.10Windows x86

realsense_align-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (187.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

realsense_align-0.1.2-cp310-cp310-macosx_14_0_arm64.whl (364.5 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

realsense_align-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (186.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

realsense_align-0.1.2-cp38-cp38-macosx_14_0_arm64.whl (364.2 kB view details)

Uploaded CPython 3.8macOS 14.0+ ARM64

File details

Details for the file realsense_align-0.1.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 09465551d75b326dd88f8e7d379f6f8820b0df4e5edfc7760f859f013832a8b1
MD5 8129274406b1fbe2c35c456b08f2ef44
BLAKE2b-256 f450a5b911c84cec0d6904008339740d879737b9879bd5a25adf5c5f1315e35b

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp312-cp312-win_amd64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a3b1458f16aa4d28c9be0b8b57fcf6da3a135c6b5f84d234dca8977430b202aa
MD5 f15487b1119d49c7fcc9e2b9cc6e1f40
BLAKE2b-256 4a15e2939eafb41c6dfe4946c76676c1c0c73abf0048dd146ffa37285a848431

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp312-cp312-win32.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20662bdb4b3050cbf05ca3e1a96205505c62c5b63ed76f774ff2ca190aed7648
MD5 10c1dc16dd52b446c05b640ce31f6ec2
BLAKE2b-256 b6d6bd9ad73cb6171511f53f05254e6b050056f0629400720d38989865d07621

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1db8102a8548d47c7be56086e9109546b6dc562ecd1af80c988af916a39b3f25
MD5 749f10c29d06f055f1de2827dc5e09da
BLAKE2b-256 69ca8939766ad0b53336639739ec9acdea3a36bd1b21b5940f73f5774c986bb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 649f7d76e9edf833258d1771449c015abd45b3b378bdf0eff6b18f9444fce25f
MD5 4a9f366db028d24b66eb09809627d10c
BLAKE2b-256 1e1413b7afb2fc525f125ba0b883dbc099d6f69d6d463ad75ac49359ed7af5a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp311-cp311-win_amd64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f2b08ad0e8b6e145114d78ab384153f79c77911836df86b2a45b0e70453d04ef
MD5 c8a8d49c74b070530394513cea2cd664
BLAKE2b-256 56d66e4f05ccfa006b77f0cab6f31f6a277c512e08c5480647fbf02f46e6bdf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp311-cp311-win32.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a0593537f12b508573111c2ea23e0c2236b6ff8d2acbcd95b492740e6791a8bd
MD5 3a294bcd1458e3adb534875713bf8617
BLAKE2b-256 956e77d5c40f4e3b2e7d69dba18cf656dc12bb28d440b65bac99f04ba466e66c

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9b30b93ad56e8f99431eeba24ce64da126113734d02f1315d750ea0639bcb1ff
MD5 bf6c6c6710eadfb485a287f2de4cbf4b
BLAKE2b-256 48017ffb27d4dd0e4c383695e661ce8eb034021791bb3bd93240a872a5d201c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 48f0d16b2656628c315c02341121f60b903bee3694a0229c73632a932e636926
MD5 5f407d839643a794edf2147ea4c950e6
BLAKE2b-256 3532d7ed210725919dc5823b80e1cb87b4ee5b18eaa4a1b934a2fd67369d4d04

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp310-cp310-win_amd64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8cdc8b7974fa8c4912bfd69630b6afdc4c55976ee9c4e48b30b9cc0f9bbfbaa4
MD5 96011a84b3b150cedf034299ff3fc59a
BLAKE2b-256 fafed8043bfa0df89605341093706118c4fd2427e9b11094b18ce4b3c0f2ca04

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp310-cp310-win32.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23b3bf06e39b8514c0c95f0fe1f60ca46b9dd9dbbc4ca0f1da9668ebfea52129
MD5 6f82c9d2fccc9d081f934a484c3e037f
BLAKE2b-256 09a8af8115d9026442d71831aeb451b1bb409b52f6991f74e0855478ba4f8f11

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dbfc8d9b987bea70b7d94e65b87b515c4c0efdadef070115979b48d65d6e1c3b
MD5 cb6bacbeb825078560f25da434243098
BLAKE2b-256 d26a9ee206d199b16e7beeac8769bb9a0c0107bca16bd1efd39547725419d971

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38378a34933604297f3e5ecfce328388a3d2e9f25fdea244b1887dc12d015cdf
MD5 cea0d761774cc3caced312ad6a377688
BLAKE2b-256 28cad9b423a97945d4328abf3e3af40d41dcbf292d052c7f5f54f36f0c75b6b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_align-0.1.2-cp38-cp38-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for realsense_align-0.1.2-cp38-cp38-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ab10aaa17156deaf2d104baacbd956685552bf3969e617b6d4202b61277e5f98
MD5 ee38a46dea08921f3d988a6476f3cc1f
BLAKE2b-256 f5c3d8b971721d74479f8c687c3dea93b50df9b7bdc2778b10b248006fbfeacf

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_align-0.1.2-cp38-cp38-macosx_14_0_arm64.whl:

Publisher: ci.yml on mlouielu/realsense-align

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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