Python
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 | python-tutorial-1-depth |
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 | opencv_viewer_example |
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 | align-depth2color |
4 | Advanced Mode | Example of the advanced mode interface for controlling different options of the D400 ??? cameras | D400 | advanced-mode-example |
5 | Read Bag File | Example on how to read bag file and use colorizer to show recorded depth stream in jet colormap. | D400/L500 | read_bag_example |
6 | Export Point Cloud to PLY | This example shows how to export pointcloud to ply format file | D400/L515 | export_ply_example.py |
7 | Frame Queue management | This example shows How to manage frame queues to avoid frame drops when multi streaming | D400/L515 | frame_queue_example |
8 | Box measurement and multi-cameras Calibration | Simple demonstration for calculating the length, width and height of an object using multiple cameras. | D400 | box_dimensioner_multicam_demo
|
9 | Self Calibration: On Chip + Tare | This example Demonstrates how to run On Chip calibration and Tare | D400 | depth_auto_calibration_example |
10 | Pose (basic) | Demonstrates how to retrieve pose data from a T265 camera | T265 | T265_example |
11 | Coordinate system | This example shows how to change coordinate systems of a T265 pose | T265 | T265_rpy |
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 | T265_stereo |
13 | T265 Wheel Odometry | This example shows how to fuse wheel odometry measurements on the T265 tracking camera | T265 | 265_wheel_odometry |
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 | opencv_pointcloud_viewer |
16 | PointCloud with PyGlet | OpenGL Pointcloud viewer with http://pyglet.org | D400/L500 | pyglet_pointcloud_viewer |
17 | TensorFlow Machine Learning | Tutorial showing how TensorFlow-based machine learning can be applied with Intel RealSense Depth Cameras. | D400 | TensorFlow with Intel RealSense Cameras |
Interactive Examples
- 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
- Depth Filters - This notebook is intended to showcase effect of post processing filters. Please refer to Depth Filters for further information. Click to experience
Updated almost 2 years ago