View my account

Changing camera configuration during runtime on D405 depth camera

Comments

4 comments

  • MartyG

    Hi Luke Bowersox

    The stream configuration cannot be changed whilst the stream is enabled, but you do not need to perform a hardware reset to change it.  You can instead stop() the pipeline, set a new cfg configuration on the line after the stop() instruction and then start() the pipeline again to apply the new stream configuration.

     

    If you would prefer not to stop the pipeline, workarounds for adjustment during runtime could include using the Decimation post-processing filter to reduce image resolution and setting a custom FPS by only using every 'x' number of frames (for example, getting 5 FPS by setting 30 FPS but only using every 6th frame, and changing the 'x' value to achieve different rates).

    0
    Comment actions Permalink
  • MartyG

    The link below has a Python example of a script for using every 'nth' frame.

    https://github.com/IntelRealSense/librealsense/issues/3169

    0
    Comment actions Permalink
  • Luke Bowersox

    Marty!!!

    This works. The key thing here was that I was not declaring a NEW config.

    Thanks again!

     

    0
    Comment actions Permalink
  • MartyG

    Great to hear, Luke, thanks again for the updates!

    0
    Comment actions Permalink

Please sign in to leave a comment.