-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access color and depth frame using frame number #8259
Comments
Hi @akmaldeen 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. For the second step (navigating to a specific frame index) with C++, the link below should be helpful: |
Hi @akmaldeen Do you require further assistance with this case, please? Thanks! |
I have used disable playback technique to poll frame one by one from bag file rs2::playback play_back = device.asrs2::playback(); after I can access the particular frame using frame number and basic loop techniques. Access frame number: Thanks for the links |
Great to hear that you developed a solution @akmaldeen - thanks very much for the update! |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Hi I'm new to realsense. I have D455 camera. I'm using c++ in windows, visual studio 2009.
I have to access a selected frame in .bag file using frame number. Let's say 50th frame is my requirement, then my code has to access 50th frame and convert it to opencv Mat file. Also I have to access the color frame depth frame separately.
Please help me with c++ example
The text was updated successfully, but these errors were encountered: