This code example is part of the C simple examples demonstrate how to easily use the SDK to include code snippets that access the camera into your applications using C API.
rs-depth streams depth and visualizes the frames over the terminal window
The sample demonstrates how to use C API to stream depth data and prints a simple text-based representation of the depth image, by breaking it into 10x5 pixel regions and approximating the coverage of pixels within one meter.
Please refer to rs-depth.c for the C code.
Updated about 3 years ago