How to copy stream from d4355, and use opencv draw lines and render the new stream.
Dear all:
I would like to render my stream, which original stream is depth frame. and after I get the depth stream, I would like to use opencv to analyze it and, put my analyze result information(text,line) on it. and render it out.
Best Regards
Fred.
-
The first step would be to install the RealSense SDK's OpenCV compatibility 'wrapper' if you have not done so already.
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv
Once the wrapper is set up, you can use the simple imshow sample program in the link below to render the depth stream.
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv/imshow
The OpenCV documentation page in the link below describes the basic instructions for drawing lines and text on an image.
https://docs.opencv.org/master/dc/da5/tutorial_py_drawing_functions.html
-
There is a RealSense sample program for OpenCV called rs-kinfu that makes use of GLFW as a dependency to generate a point cloud.
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv/kinfu
Please sign in to leave a comment.
Comments
6 comments