You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.7 KiB

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. Realsense over Ethernet - This example shows how to stream depth data from RealSense depth cameras over ethernet.
  9. 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