IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

rs-convert not using preset #3694

Closed hueri closed 5 years ago

hueri commented 5 years ago
Required Info
Camera Model D435
Firmware Version 05.11.01.100
Operating System & Version Win 10
Platform PC
SDK Version v2.19.0 }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

Hi there,

I'm a semi-non-developer, trying to record some color and depth for video purposes. I've been able to tune the camera to the specs that i want, save a preset, and record a bag.

The issue I'm having is that when I load the recorded sequence into the Realsense Viewer, it matches the Preset's settings, but when i use rs-convert.exe, it uses the default settings. Not being a C++ / C# developer, i don't see an easy way to add a flag for a Preset.json file in rs-convert. Is there another way to do that, or could that feature be added?

Please and thanks!

.m

dorodnic commented 5 years ago

Hi @hueri Currently only settings affecting the hardware are saved into the JSON, and these will be reflected in recorded data. Software configuration, such as post-processing and depth visualization settings, are currently not being saved, but we are planning to add them in the future.

hueri commented 5 years ago

Thanks for responding!
If i'm understanding correctly, for example the only way to export png's with white to black value ranges is to modify and compile something like a version of rs-convertWB?

Thanks much!

dorodnic commented 5 years ago

You are correct. However, doing this in python will most likely be much faster. Check out read_bag_example.py to get started. To modify color scheme you need to set_option(rs.option.color_scheme, ...) on the colorizer object

P.S. pip install pyrealsense2 - to set up python development

hueri commented 5 years ago

Ah, cool - thanks!
Will definitely need to look into that. Cheers!