librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

How to save the raw images from .bag files using python?

Open arake001 opened this issue 6 years ago • 2 comments

  • 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 :)


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..>

arake001 avatar May 11 '20 02:05 arake001

I hope that the Pyrealsense2 script in the link below for extracting the depth images from a bag and saving them to a directory will be helpful to you.

https://github.com/IntelRealSense/librealsense/issues/1887#issuecomment-397529590

The comments in the rest of the discussion below the script discuss its programming.

MartyG-RealSense avatar May 11 '20 05:05 MartyG-RealSense

Case closed due to no further comments received.

MartyG-RealSense avatar May 30 '20 07:05 MartyG-RealSense