Items with no label
3338 Discusiones

How to apply visual presets in C++

DSolo2
Principiante
3.370 Vistas

Hello,

I am trying to change the visual preset on the D415 using the example code given in but it does not seem to be working. When I run the code, there is no effect on the stream. If I use the Realsense Viewer tool to change the presets, then it works. I am running Windows 10.

Is there a step that I am missing?

0 kudos
1 Solución
MartyG
Colaborador Distinguido III
1.454 Vistas

Are you trying to change the resolution and / or FPS at start-up, please? If so, these particular settings cannot currently be set with a json for reasons explained in the link below.

Ver la solución en mensaje original publicado

4 Respuestas
MartyG
Colaborador Distinguido III
1.455 Vistas

Are you trying to change the resolution and / or FPS at start-up, please? If so, these particular settings cannot currently be set with a json for reasons explained in the link below.

DSolo2
Principiante
1.454 Vistas

Yes, I am setting the FPS and resolution at start up. I will try your suggestion and report the result. Many thanks for your helpful response MartyG.

DSolo2
Principiante
1.454 Vistas

I was able to make the preset take effect by first saving it to JSON using realsense viewer and then loading the preset using the code in your link.

Thank you for your help.

MartyG
Colaborador Distinguido III
1.454 Vistas

Awesome, thanks for the tip about how you solved the problem in your project!

Responder