Set Multiple Visual Preset
I am interested to use Visual Preset Remove IR Pattern, but at the same time, I need to set Visual Preset High Accuracy.
I tried this, but I got invalid value error.
depth_sensor.set_option(rs2_option::RS2_OPTION_VISUAL_PRESET, rs2_rs400_visual_preset::RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN | rs2_rs400_visual_preset::RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY);
Any proper way?
Thanks.
-
Only one Visual Preset can be used at a time. The Remove IR Pattern preset also only works with the D415 model.
If you need the properties of more than one Visual Preset, I would recommend defining your own custom preset that balances the configuration in the way that you want it. There are likely to be areas where you have to compromise and not get exactly the setting that you want (like with the range of different pre-made Visual Presets, it may be hard to get one condition without negatively affecting another). But it is probably better than only being able to use one of the presets that you want.
An easy way to create a custom preset is to define the settings in the RealSense Viewer and then export the settings as a 'json' preset file.
If you want to use the High Accuracy preset without compromises but also want to remove the IR pattern, you could achieve this by turning the IR Emitter off or by reducing the Laser Power setting (the lower the Laser Power, the less visible the IR dot pattern becomes).
The IR Emitter and Laser Power can be adjusted in the options side-panel of the RealSense Viewer, under the 'Controls' section. Or you can make the changes with scripting using the example code in the link below. For the 400 Series cameras, use the section of code headed 'Librealsense2'.
https://github.com/IntelRealSense/librealsense/wiki/API-How-To#controlling-the-laser
Please sign in to leave a comment.
Comments
1 comment