Skip to content

Latest commit

 

History

History
 
 

examples

Sample Code for Intel® RealSense™ cameras

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

List of Samples:

C++ Examples:

  1. Capture - Show how to syncronize and render multiple streams: left & right imagers, depth and RGB streams.
  2. Save To Disk - Demonstrate how to render and save video streams on headless systems without graphical user interface (GUI).
  3. Multicam - Present multiple cameras depth streams simultaneously, in separate windows.
  4. Pointcloud - Showcase Projection API while generating and rendering 3D pointcloud.
  5. Streams Alignment - Show a simple method for dynamic background removal from video.
  6. Sensor Control -- A tutorial for using the rs2::sensor API
  7. Measure - Lets the user measure the dimentions of 3D objects in a stream.
  8. Software Device - Shows how to create a custom rs2::device.
  9. Depth Post Processing - Demonstrating usage of post processing filters for depth images.

C Examples:

  1. Depth - Demonstrates how to stream depth data and prints a simple text-based representation of the depth image.
  2. Distance - Print the distance from the camera to the object in the center of the image.
  3. Color - Demonstrate how to stream color data and prints some frame information.

CV Examples:

See getting started with OpenCV and RealSense

  1. ImShow - Minimal OpenCV application for visualizing depth data
  2. GrabCuts - Simple background removal using the GrabCut algorithm
  3. Latency-Tool - Basic latency estimation using computer vision
  4. DNN - Intel RealSense camera used for real-time object-detection

Community Projects:

  1. OpenCV DNN object detection with RealSense camera
  2. minimal_realsense2 - Streaming and Presets in C
  3. ANDREASJAKL.COM - Capturing a 3D Point Cloud with Intel RealSense and Converting to a Mesh with MeshLab
  4. FluentRealSense - The First Steps to a Simpler RealSense