Access color and depth frame with frame number
Hi I'm new to realsense. I have D455 camera. I'm using c++ in windows, visual studio 2009.
I have to access selected frame in .bag file using frame number. Let say 50th frame is my requirement, then my code go to 50th frame and convert it to opencv Mat file.
Please help me with c++ example
-
Hi Akmaldeen20 It may be best to break this programming goal into two sections. First, get conversion to cv::mat of all frames working. And then add a frame index seek mechanism for specific frames once conversion for all frames is working.
In regard to the first step, a C++ bag extraction script that uses CV::mat can be found in the link below.
https://github.com/IntelRealSense/librealsense/issues/1919#issuecomment-403777588
For the second step (navigating to a specific frame index) with C++, the link below should be helpful:
Please sign in to leave a comment.
Comments
1 comment