Code Examples to start prototyping quickly: These simple examples demonstrate how to easily use the SDK to include code snippets that access the camera into your applications.
For mode advanced usages please review the list of Tools we provide.
For a detailed explanations and API documentation see our Documentation section
- Capture - Show how to syncronize and render multiple streams: left & right imagers, depth and RGB streams.
- Save To Disk - Demonstrate how to render and save video streams on headless systems without graphical user interface (GUI).
- Multicam - Present multiple cameras depth streams simultaneously, in separate windows.
- Pointcloud - Showcase Projection API while generating and rendering 3D pointcloud.
- Streams Alignment - Show a simple method for dynamic background removal from video.
- Depth Post Processing - Demonstrating usage of post processing filters for depth images.
- Record and Playback - Demonstrating usage of the recorder and playback devices.
-
Software Device - Shows how to create a custom
rs2::device
. -
Sensor Control -- A tutorial for using the
rs2::sensor
API -
Measure - Lets the user measure the dimentions of 3D objects in a stream.
- Depth - Demonstrates how to stream depth data and prints a simple text-based representation of the depth image.
- Distance - Print the distance from the camera to the object in the center of the image.
- Color - Demonstrate how to stream color data and prints some frame information.
- ImShow - Minimal OpenCV application for visualizing depth data
- GrabCuts - Simple background removal using the GrabCut algorithm
- Latency-Tool - Basic latency estimation using computer vision
- DNN - Intel RealSense camera used for real-time object-detection
- OpenCV DNN object detection with RealSense camera
- minimal_realsense2 - Streaming and Presets in C
- ANDREASJAKL.COM - Capturing a 3D Point Cloud with Intel RealSense and Converting to a Mesh with MeshLab
- FluentRealSense - The First Steps to a Simpler RealSense
- RealSense ROS-bag parser - code sample for parsing ROS-bag files by @marcovs