Intel® RealSense™ Developer Documentation

Installation Guidelines

Please refer to installation guideline at Python Installation

Building from Source

Please refer to the instructions at Building from Source

List of Examples

These Examples demonstrate how to use the python wrapper of the SDK.

Sample code source code is available on GitHub
For full Python library documentation please refer to module-pyrealsense2

#
Example
Description
Camera/SKU
Link to GitHub

1

Streaming Depth

This example demonstrates how to start streaming depth frames from the camera and display the image in the console as an ASCII art.

D400/L500

2

Rendering depth and color with OpenCV and Numpy

This example demonstrates how to render depth and color images using the help of OpenCV and Numpy

D400/L500

3

Align & Background Removal

Demonstrate a way of performing background removal by aligning depth images to color images and performing simple calculation to strip the background.

D400/L500

4

Advanced Mode

Example of the advanced mode interface for controlling different options of the D400 ??? cameras

D400

5

Read Bag File

Example on how to read bag file and use colorizer to show recorded depth stream in jet colormap.

D400/L500

6

Export Point Cloud to PLY

This example shows how to export pointcloud to ply format file

D400/L515

7

Frame Queue management

This example shows How to manage frame queues to avoid frame drops when multi streaming

D400/L515

8

Box measurement and multi-cameras Calibration

Simple demonstration for calculating the length, width and height of an object using multiple cameras.

D400

9

Self Calibration: On Chip + Tare

This example Demonstrates how to run On Chip calibration and Tare

D400

10

Pose (basic)

Demonstrates how to retrieve pose data from a T265 camera

T265

11

Coordinate system

This example shows how to change coordinate systems of a T265 pose

T265

12

Sparse Stereo Depth (FishEye Passive)

This example shows how to use T265 intrinsics and extrinsics in OpenCV to asynchronously compute depth maps from T265 fisheye images on the host.

T265

13

T265 Wheel Odometry

This example shows how to fuse wheel odometry measurements on the T265 tracking camera

T265

14

Stream over Ethernet

This example shows how to stream depth data from RealSense depth cameras over ethernet.
It includes Ethernet client and server using python's Asyncore.

D400

15

PointCloud with OpenCV

This sample is mostly for demonstration and educational purposes.
It really doesn't offer the quality or performance that can be
achieved with hardware acceleration.

D400/L500

16

PointCloud with PyGlet

OpenGL Pointcloud viewer with http://pyglet.org

D400/L500

17

TensorFlow Machine Learning

Tutorial showing how TensorFlow-based machine learning can be applied with Intel RealSense Depth Cameras.

D400

Interactive Examples

  1. Distance to Object - This notebook offers a quick hands-on introduction to Intel RealSense Depth-Sensing technology. Please refer to Distance to Object for further information. Click to experience Binder
  2. Depth Filters - This notebook is intended to showcase effect of post processing filters. Please refer to Depth Filters for further information. Click to experience Binder

Updated 2 months ago

Python


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.