save frameset to file for post-processing
-
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
- Consider checking out SDK examples.
- Have you looked in our documentations?
- Is you question a frequently asked one?
- Try searching our GitHub Issues (open and closed) for a similar issue.
-
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 :)
| Required Info | |
|---|---|
| Camera Model | { R200 / F200 / SR300 / ZR300 / D400 } |
| Firmware Version | (Open RealSense Viewer --> Click info) |
| Operating System & Version | {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS |
| Kernel Version (Linux Only) | (e.g. 4.14.13) |
| Platform | PC/Raspberry Pi/ NVIDIA Jetson / etc.. |
| SDK Version | { legacy / 2.>.> } |
| Language | {C/C#/labview/nodejs/opencv/pcl/python/unity } |
| Segment | {Robot/Smartphone/VR/AR/others } |
Issue Description
<Describe your issue / question / feature request / etc..>
Camera Model: D435 Firmware Version: 5.10..3.0 Operating System: Windows 10 Platform: PC SDK Version: 2.16.0 Language: C++ Segment: others
I have a question about saving data to file.
Is it possible to save frameset as whole object, as below:
rs2::frameset frameset_w = pipe.wait_for_frames();
save_frameset("frameset_0000.bin", frameset_w);
...
then, in a separate post-processing step (even without camera connected), we can simply do the following to retrieve all the data
rs2::frameset frameset_r = read_frameset("frameset_0000.bin"); rs2::video_frame color = frameset_r.get_color_frame(); rs2::depth_frame depth = frameset_r.get_depth_frame(); ...
Furthermore, is it possible to get all other data, such as intrinsic and depth_scale, from frameset_r?
Note that this is not recording the data continuously, since here the user can choose which framesets to save.
Thanks.
Let me elaborate a bit more.
In some use case, I want to take a number of shots of a scene and save all the relevant data (color, depth, intrinsic, depth_scale, et al) into files, and then later I select some shots for post-processing. In the capturing step, I want to capture individual shots, rather than recording the whole scene continuously. In the post-processing step, I still want to be able to access all the rs2 libraries,
What is the best way of doing this?