pyrealsense2
Python Wrapper for Realsense SDK 2.0.
What it is and what it does
pyrealsense2 is the official Python binding for Intel RealSense SDK 2.0, a cross-platform library for working with RealSense depth cameras. It exposes a high-level API for streaming depth and color frames, querying camera intrinsics and extrinsics, and extracting per-pixel depth values. The package wraps the native C++ SDK and is distributed as precompiled wheels for Python 3.9–3.14 on Windows, Linux (x86_64 and aarch64), and other platforms.
The library is designed for robotics, 3D scanning, skeletal tracking, facial authentication, and other computer vision tasks that require synchronized depth and color data. It has no Python runtime dependencies, relying instead on the underlying compiled RealSense library. The project is actively maintained, recently migrated to the RealSenseAI GitHub organization, and supports a range of stereo depth cameras with varying baseline lengths and depth ranges.
Use it for:
- Robotics applications requiring real-time depth sensing for obstacle avoidance, grasping, or navigation.
- 3D scanning and reconstruction workflows that need synchronized RGB and depth frame capture.
- Skeletal tracking and human pose estimation using depth data from supported RealSense cameras.
- Close-range computer vision tasks (sub-millimeter accuracy) using short-range depth cameras like the D405.
- Long-range depth sensing (up to 10 m) for outdoor or industrial monitoring with cameras like the D455.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python wrapper for Intel RealSense SDK 2.0 that enables depth and color streaming from RealSense depth cameras, with access to calibration data and frame intrinsics.
Yes. The package is actively maintained, has no Python dependencies, supports modern Python versions (3.9–3.14), carries no known vulnerabilities, and is the standard way to use RealSense cameras from Python. Install friction is moderate due to compiled wheels, but prebuilt binaries are available for common platforms. Suitable for production use in robotics, computer vision, and 3D imaging projects.
Install
pyrealsense2 on PyPI
pip
pip install pyrealsense2uv
uv add pyrealsense2poetry
poetry add pyrealsense2Installing pyrealsense2
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms (cp39–cp314, manylinux, Windows, aarch64), but no runtime dependencies. Active maintenance with a release 26 days ago and ongoing repository activity.
License in practice
Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
Quickstart
pip install pyrealsense2
import pyrealsense2 as rs
pipeline = rs.pipeline()
pipeline.start()
frames = pipeline.wait_for_frames()
depth_frame = frames.get_depth_frame()
dist = depth_frame.get_distance(depth_frame.get_width() // 2, depth_frame.get_height() // 2)
pipeline.stop()
Requires a connected RealSense depth camera (D405, D435if, D455, D457, D555, or compatible model) and appropriate USB or PoE connectivity.
Verify before relying
- Whether all supported RealSense camera models are documented or discoverable from the package alone.
- Real-world latency and frame-rate performance characteristics for different camera models and streaming configurations.
- Compatibility with non-standard or third-party stereo cameras beyond the official RealSense product line.
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 26 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 209,168/month — #9,518 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyrealsense2-2.58.3.10794-cp310-cp310-manylinux1_x86_64.whl; pyrealsense2-2.58.3.10794-cp310-cp310-manylinux2014_aarch64.whl; pyrealsense2-2.58.3.10794-cp310-cp310-win_amd64.whl; pyrealsense2-2.58.3.10794-cp311-cp311-manylinux1_x86_64.whl; pyrealsense2-2.58.3.10794-cp311-cp311-win_amd64.whl; pyrealsense2-2.58.3.10794-cp312-cp312-manylinux1_x86_64.whl; pyrealsense2-2.58.3.10794-cp312-cp312-manylinux2014_aarch64.whl; pyrealsense2-2.58.3.10794-cp312-cp312-win_amd64.whl; pyrealsense2-2.58.3.10794-cp313-cp313-manylinux1_x86_64.whl; pyrealsense2-2.58.3.10794-cp313-cp313-win_amd64.whl; pyrealsense2-2.58.3.10794-cp314-cp314-manylinux1_x86_64.whl; pyrealsense2-2.58.3.10794-cp314-cp314-win_amd64.whl; pyrealsense2-2.58.3.10794-cp39-cp39-manylinux2014_aarch64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
depthaiPython bindings for the DepthAI C++ library,…
permissive · top 15,000 on PyPI
pyrenderPyrender renders 3D scenes to images and…
permissive · top 5,000 on PyPI
streamlit-camera-input-liveProvides a Streamlit component that captures…
unclear · top 15,000 on PyPI
streamlit-webrtcAdds real-time video and audio streaming over…
permissive · top 15,000 on PyPI
dxcamDXcam captures screen frames on Windows at high…
permissive · top 15,000 on PyPI
pygrabberCapture photos and video from Windows cameras…
permissive · top 15,000 on PyPI
gtsamGTSAM is a Python wrapper around a C++ library…
permissive · top 15,000 on PyPI
rawpyrawpy wraps LibRaw to load, decode, and…
permissive · top 15,000 on PyPI
norfairNorfair adds real-time multi-object tracking to…
permissive · top 15,000 on PyPI
pycolmapPyCOLMAP exposes Python bindings to COLMAP's…
permissive · top 15,000 on PyPI