Closed gongyeted closed 4 years ago
Hi @gongyeted There is an alternative bag to image extraction program for the 400 Series cameras called rs_bag2image that outputs monochrome depth images. It extracts depth frames as png, whilst it extracts rgb and infrared as jpg.
Hi @gongyeted There is an alternative bag to image extraction program for the 400 Series cameras called rs_bag2image that outputs monochrome depth images. It extracts depth frames as png, whilst it extracts rgb and infrared as jpg.
I realized an issue that I used frameset = align_to_color.process ( frameset )
to align depth to color , but this line only changes frameset, which I didn't save manually. I'm not sure whether the depth bag saved is aligned too. Will you be kind to help me ? Or is there any way to record aligned bag by realsense-viewer? I can't find any button in the UI to do this
Data saved to a bag file is not aligned. You can use scripting to extract the data from the bag and perform alignment on it. An example of this is Intel's Python tutorial distance_to_object:
https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb
The RealSense Viewer does not have an align function built into it though.
Data saved to a bag file is not aligned. You can use scripting to extract the data from the bag and perform alignment on it. An example of this is Intel's Python tutorial distance_to_object:
https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb
The RealSense Viewer does not have an align function built into it though.
Thank you for your reply. Another question: has the color image recorded by realsense viewer been rectified with the camera distortion parameters?
Most stream types accessible in the Viewer are rectified. The Y16 IR format is not rectified. This is because it is used primarily for camera calibration rather than general everyday use in applications. You can use Y16 IR but it only has a small number of supported resolutions and FPS speeds, up to a maximum of 25 FPS. Also, you cannot have the depth stream active when the Y16 IR mode is being used.
Y16 is also available on the RGB mode, though in a monochrome image.
Hi @gongyeted Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
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
<Describe your issue / question / feature request / etc..>
Hello everyone. I have a problem when saving depth and rgb images stream using D455. At first, I tried to save depth and rgb images in png format referring to the save-to-disk.cpp, but it turns out to be very slow with fps down to 5. Then I thought it maybe better using bag file. So I used cfg.enable_record_to_file("new.bag"); However, when using rs-convert to get images, the depth pngs are in 3 chennels with color, not 16UC1 which I want, but I didn't use colorize in my code. It seems that the rs-convert will enforce the depth to be colored. Can anyone help me solve this problem? Or is there anyway to directly save images without droping frames? My codes are shown below.
`int main(int argc, char * argv[]) try { // Declare RealSense pipeline, encapsulating the actual device and sensors rs2::pipeline pipe; rs2::config cfg; cfg.enable_record_to_file("new.bag");
}`