Skip to content

Files

Latest commit

Nov 9, 2021
d66a6a2 · Nov 9, 2021

History

History
This branch is 3704 commits behind IntelRealSense/librealsense:master.

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 13, 2021
Jul 23, 2019
Oct 15, 2019
May 10, 2021
Nov 28, 2019
Nov 9, 2021
Sep 23, 2019
Feb 11, 2021
Jul 6, 2021
May 10, 2021
May 10, 2021
Dec 1, 2018
May 10, 2021
Feb 11, 2021
Feb 11, 2021
Apr 8, 2021
Nov 9, 2021
Mar 5, 2019
Nov 26, 2019
May 15, 2019

Sample Code for Intel® RealSense™ Python Wrapper

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

List of Examples:

  1. Tutorial 1 - Demonstrates how to start streaming depth frames from the camera and display the image in the console as an ASCII art.
  2. NumPy and OpenCV - Example of rendering depth and color images using the help of OpenCV and Numpy
  3. Stream Alignment - Demonstrate a way of performing background removal by aligning depth images to color images and performing simple calculation to strip the background.
  4. RS400 Advanced Mode - Example of the advanced mode interface for controlling different options of the D400 cameras
  5. Realsense Backend - Example of controlling devices using the backend interface
  6. Read bag file - Example on how to read bag file and use colorizer to show recorded depth stream in jet colormap.
  7. Box Dimensioner Multicam - Simple demonstration for calculating the length, width and height of an object using multiple cameras.
  8. T265 Basic - Demonstrates how to retrieve pose data from a T265
  9. T265 Coordinates - This example shows how to change coordinate systems of a T265 pose
  10. T265 Stereo - This example shows how to use T265 intrinsics and extrinsics in OpenCV to asynchronously compute depth maps from T265 fisheye images on the host.
  11. Realsense over Ethernet - This example shows how to stream depth data from RealSense depth cameras over ethernet.
  12. Realsense Network Device Viewer - Shows how to connect to rs-server over network.
  13. D400 self-calibration demo - Provides a reference implementation for D400 Self-Calibration Routines flow. The scripts performs On-Chip Calibration, followed by Focal-Length calibration and finally, the Tare Calibration sub-routines. Follow the White Paper Link for in-depth description of the provided calibration methods.

Pointcloud Visualization

  1. OpenCV software renderer
  2. PyGlet pointcloud renderer - requires pip install pyglet

Interactive Examples:

  1. Distance to Object Binder
  2. Depth Filters Binder