Skip to content

Software

librealsense

By RealSenseAI, from github.com/realsenseai/librealsense (opens in a new tab)

  • Perception
  • Driver or SDK
  • Apache-2.0

A cross-platform SDK for Intel RealSense depth cameras, providing depth and colour streaming plus intrinsic and extrinsic calibration data.

Facts

GitHub stars
9,115read on 28 Nov 2026
Last update
15 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
Runs on Ubuntu, Windows, macOS High Sierra, Jetson, and Raspberry Pi, with a RealSense depth camera connected; GPU acceleration needs an AMD GPU with ROCm/HIP.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 50d06ec (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Streams depth and colour frames from RealSense depth cameras through a high-level pipeline API.
  • Supplies intrinsic and extrinsic calibration information for the cameras.
  • Includes the RealSense Viewer for viewing streams, tuning settings, and recording and playback.
  • Includes a Depth Quality Tool for measuring accuracy and fill rate.
  • Offers wrappers for Python, ROS 2, C#, Unity and a REST API.
  • Can be installed as a precompiled SDK or built from source with CMake, with optional AMD GPU acceleration via HIP/ROCm.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by Fast-Drone-250 and REAL Drone 400.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
git clone https://github.com/realsenseai/librealsense.gitEvery step
Maintenance
Active, last commit on 15 Nov 2026.

Works with

2 robots on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

Copied word for word from the creator's own documentation; each block links to the lines it comes from.

Build from Source (step 1 of 3)

   git clone https://github.com/realsenseai/librealsense.git
   cd librealsense
   mkdir build && cd build

From readme.md at c84fe64, lines 104–106 (opens in a new tab)

Build from Source (step 2 of 3)

    cmake ..

From readme.md at c84fe64, line 110 (opens in a new tab)

Build from Source (step 3 of 3)

    cmake --build .

From readme.md at c84fe64, line 114 (opens in a new tab)

Install

pip install pyrealsense2 # Stable
pip install pyrealsense2-beta # Beta

From readme.md at c84fe64, lines 159–160 (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 50d06ec

Robotheca read the repository at two versions: the summary and the install commands at c84fe64 (read on 6 Nov 2026) and the facts and the README at 50d06ec (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: readme.md by RealSenseAI, at commit 50d06ec, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Logo for light mode

Logo for dark mode

RealSense SDK 2.0 is a cross-platform library for RealSense depth cameras. The SDK allows depth and color streaming, and provides intrinsic and extrinsic calibration information.

Important Notice

We are happy to announce that the RealSense GitHub repositories have been successfully migrated to the RealSenseAI organization. Please make sure to update your links to the new RealSenseAI organization for both cloning the repositories and accessing specific files within them.

https://github.com/IntelRealSense/librealsense (opens in a new tab) --> https://github.com/realsenseai/librealsense (opens in a new tab)

Note 1: A redirection from the previous name IntelRealSense is currently in place, but we cannot guarantee how long it will remain active. We recommend that all users update their references to point to the new GitHub location.

Note 2: Users who install the SDK via APT are required to update the APT key as explained in the following guide (opens in a new tab)

Note 3: New closed-source libraries are available on our Perception Studio (opens in a new tab) page. Recent drop includes close-range performance (min-z).

Branch Policy

We have updated our branch policy: From now on, we will also push beta releases to the master branch, so users can access up-to-date code and features. In the near future, beta binaries will also be pushed to public distribution servers (e.g., APT). The last validated official release can be found on our Releases page on GitHub.

Use Cases

Below are some of the many real-world applications powered by RealSense technology:

RoboticsDepth Sensing3D Scanning
Image (opens in a new tab) (opens in a new tab)Image (opens in a new tab) (opens in a new tab)Image (opens in a new tab) (opens in a new tab)
DronesSkeletal and People TrackingFacial Authentication
Image (opens in a new tab) (opens in a new tab)Image (opens in a new tab) (opens in a new tab)Image (opens in a new tab) (opens in a new tab)
Why RealSense?
  • High-resolution color and depth at close and long ranges
  • Open source SDK with rich examples and wrappers (Python, ROS, C#, Unity and more... (opens in a new tab))
  • Active developer community and defacto-standard 3D stereo camera for robotics
  • Cross-platform support: Windows, Linux, macOS, Android, and Docker
Product Line

RealSense stereo depth products use stereo vision to calculate depth, providing high-quality performance in various lighting and environmental conditions.

Here are some examples of the supported models:

ProductImageDescription
D555 PoE (opens in a new tab)Image (opens in a new tab)The RealSense™ Depth Camera D555 introduces Power over Ethernet (PoE) interface on chip, expanding our portfolio of USB and GMSL/FAKRA products.
D457 GMSL/FAKRA (opens in a new tab)Image (opens in a new tab)The RealSense™ Depth Camera D457 is our first GMSL/FAKRA high bandwidth stereo camera. The D457 has an IP65 grade enclosure protecting it from dust ingress and projected water.
D455 (opens in a new tab)Image (opens in a new tab)The RealSense D455 is a long-range stereo depth camera with a 95 mm baseline, global-shutter depth sensors, an RGB sensor, and a built-in IMU, delivering accurate depth at distances up to 10 m..
D435if (opens in a new tab)Image (opens in a new tab)The D435if is one of RealSense™ Depth Camera with IR pass filter family (opens in a new tab) expanding our portfolio targeting the growing robotic market. The D400f family utilizes an IR pass filter to enhance depth quality and performance range in many robotic environments.
D405 (opens in a new tab)Image (opens in a new tab)The RealSense™ Depth Camera D405 is a short-range stereo camera providing sub-millimeter accuracy for your close-range computer vision needs.

🛍️ Explore more stereo products (opens in a new tab)

Getting Started

Start developing with RealSense in minutes using either method below.

1️. Precompiled SDK

This is the best option if you want to plug in your camera and get started right away.

  1. Download the latest SDK bundle from the Releases page (opens in a new tab).
  2. Connect your RealSense camera.
  3. Run the included tools:
Setup Guides - precompiled SDK

(opens in a new tab) Image: Windows Guide (opens in a new tab) (opens in a new tab)

Note: For minor releases, we publish Debian packages as release artifacts that you can download and install directly.

2️. Build from Source

For a more custom installation, follow these steps to build the SDK from source.

  1. Clone the repository and create a build directory:
    git clone https://github.com/realsenseai/librealsense.git
    cd librealsense
    mkdir build && cd build
    
  2. Run CMake to configure the build:
    cmake ..
    
  3. Build the project:
    cmake --build .
    
Setup Guides - build from source

(opens in a new tab) (opens in a new tab) Image: Windows Guide (opens in a new tab) (opens in a new tab) (opens in a new tab)

AMD GPU Acceleration (HIP/ROCm)

librealsense also supports GPU-accelerated processing on AMD GPUs via ROCm/HIP (opens in a new tab). Supported on both Linux (ROCm) and Windows (HIP SDK 7.1+).

Linux:

cmake .. -DBUILD_WITH_HIP=ON
cmake --build . -j$(nproc)

Windows (requires HIP SDK for Windows (opens in a new tab)):

cmake .. -G Ninja -DBUILD_WITH_HIP=ON
cmake --build .

By default, this targets multiple AMD architectures (gfx90a, gfx942, gfx1100, gfx1101 -- covering MI200, MI300, and RDNA3 GPUs). To build for a specific GPU:

cmake .. -DBUILD_WITH_HIP=ON -DCMAKE_HIP_ARCHITECTURES=gfx1100

Note: BUILD_WITH_CUDA and BUILD_WITH_HIP are mutually exclusive. See doc/amd-hip-support.md (opens in a new tab) for details.

Python Packages

(opens in a new tab) (opens in a new tab)

Which should I use?

  • Stable: pyrealsense2 — validated releases aligned with SDK tags (Recommended for most users).
  • Beta: pyrealsense2-beta — fresher builds for early access and testing. Expect faster updates.
Install
pip install pyrealsense2 # Stable
pip install pyrealsense2-beta # Beta

Both packages import as pyrealsense2. Install only one at a time.

Ready to Hack!

Our library offers a high level API for using RealSense depth cameras (in addition to lower level ones). The following snippets show how to start streaming frames and extracting the depth value of a pixel:

C++

#include <librealsense2/rs.hpp>
#include <iostream>

int main() {
    rs2::pipeline p;                 // Top-level API for streaming & processing frames
    p.start();                       // Configure and start the pipeline

    while (true) {
        rs2::frameset frames = p.wait_for_frames();        // Block until frames arrive
        rs2::depth_frame depth = frames.get_depth_frame(); // Get depth frame
        if (!depth) continue;

        int w = depth.get_width(), h = depth.get_height();
        float dist = depth.get_distance(w/2, h/2);         // Distance to center pixel
        std::cout << "The camera is facing an object " << dist << " meters away\r";
    }
}

Python

import pyrealsense2 as rs

pipeline = rs.pipeline() # Create a pipeline
pipeline.start() # Start streaming

try:
    while True:
        frames = pipeline.wait_for_frames()
        depth_frame = frames.get_depth_frame()
        if not depth_frame:
            continue

        width, height = depth_frame.get_width(), depth_frame.get_height()
        dist = depth_frame.get_distance(width // 2, height // 2)
        print(f"The camera is facing an object {dist:.3f} meters away", end="\r")

finally:
    pipeline.stop() # Stop streaming

For more information on the library, please follow our examples (opens in a new tab) or tools (opens in a new tab), and read the documentation (opens in a new tab) to learn more.

Supported Platforms
Operating Systems and Platforms
UbuntuWindowsmacOS High SierraJetsonRaspberry Pi

|

|

|

Image (opens in a new tab) (opens in a new tab)

|

Image (opens in a new tab) (opens in a new tab)

Programming Languages and Wrappers
C++CC#PythonROS 2Rest API

Image (opens in a new tab) (opens in a new tab)

|

Image (opens in a new tab) (opens in a new tab)

|

Image (opens in a new tab) (opens in a new tab)

|

Image (opens in a new tab) (opens in a new tab)

|

|

|

For more platforms and wrappers look over here (opens in a new tab).

Full feature support varies by platform – refer to the release notes (opens in a new tab) for details.

Community & Support

🔎 Looking for legacy devices (F200, R200, LR200, ZR300)? Visit the legacy release (opens in a new tab).


You can find us at

Image: GitHub (opens in a new tab) (opens in a new tab)     Image: X (Twitter) (opens in a new tab) (opens in a new tab)     Image: YouTube (opens in a new tab) (opens in a new tab)     Image: LinkedIn (opens in a new tab) (opens in a new tab)     Image: Community (opens in a new tab) (opens in a new tab)

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.