librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

what is the right way of setting depth camera parameters such as "high accuracy mode"?

Open ywjia opened this issue 8 years ago • 6 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 D435
Firmware Version 5.10.3.0
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.15
Platform PC
SDK Version 2.16.0
Language C++
Segment VR

Issue Description

I know that we can use set_option to set parameters for the depth sensor, as below

depth_sensor.set_option(RS2_OPTION_DEPTH_UNITS, 0.0001);

what is the right way of setting the mode of the depth camera, such as "high accuracy" or "high density" mode?

Thanks.

ywjia avatar Sep 20 '18 19:09 ywjia

The discussion linked to below may help you with setting Visual Presets with C++ code.

https://communities.intel.com/message/540135#540135

MartyG-RealSense avatar Sep 20 '18 19:09 MartyG-RealSense

thanks

ywjia avatar Oct 02 '18 03:10 ywjia

Hi, I have been trying to do this using the pyrealsense2 wrapper, but so far failed. Would appreciate any lead. Can't find any documentation for python

dibya-pati avatar Oct 22 '18 23:10 dibya-pati

The only example of a Visual Preset script for Python I could find was one provided by Dorodnic in November 2017.

https://github.com/IntelRealSense/librealsense/issues/856#issuecomment-347828788

MartyG-RealSense avatar Oct 23 '18 07:10 MartyG-RealSense

The discussion linked to below may help you with setting Visual Presets with C++ code.

https://communities.intel.com/message/540135#540135

Hi,

The link doesn't seem to work. Is there any source that you can give about this topic?

Thanks

fbagci avatar Oct 07 '19 13:10 fbagci

Some of the links on the Intel Support forum got broken when they moved to a new forum system. The new link to that discussion is below. It doesn't seem to be helpful to your needs to load a json with C++ though - I just include it here so others can find it.

https://forums.intel.com/s/question/0D50P0000490SEVSA2/how-to-apply-visual-presets-in-c

This link here is likely to be more useful for loading a json with C++:

https://github.com/IntelRealSense/librealsense/issues/3037#issuecomment-452732168

MartyG-RealSense avatar Oct 07 '19 13:10 MartyG-RealSense