Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
In this demo, you will acquire color frame from the RealSense camera and display it using OpenCV. Before you start, make sure you have librealsense and OpenCV installed and working properly on your system. Using the editor of your choise create BGR_sample.cpp and copy-paste the following code-snippet:
Compile and run the application from terminal using the following command line:
Result:
Displaying Infrared and Depth data is not very different from Color data. Infrared frame is a single channel, 8 bits-per-pixel image. Copy the following code snippet into IR_sample.cpp:
Compile and run the program from the terminal, with the following command:
Result :