View my account

How to Stabilize Frame Rate for D-435 in C#

Comments

4 comments

  • MartyG

    C# for loading a json file can be found here:

    https://github.com/IntelRealSense/librealsense/issues/2854#issuecomment-444803962 

    In the case of this example, the filename '1.json' refers to the "Default" visual preset json.   Substitute in your own json file-name.

    The easiest way to create your own json file is to define settings in the RealSense Viewer and then export them as a json using an icon on the toolbar at the top of the Viewer's options side-panel.

    I was unable to locate a means to alter auto exposure priority in C#, unfortunately.

    0
    Comment actions Permalink
  • Brent

    Thank you Marty. I also don't see an entry in the json file, or any differing values after disabling 'Auto-Exposure Priority' in the RS Viewer.

    I understand that I am at a disadvantage, working with the C# wrapper instead of C++, but isn't it a fairly common requirement to fix the framerate? We are comparing datasets directly in AI with Deep Learning so a (nearly) constant framerate is critical across varying lighting circumstances..

    0
    Comment actions Permalink
  • MartyG

    I checked the Viewer's json export button.   Its highlight tooltip text says that it only exports settings from the Stereo module, whilst the auto-exposure priority on-off control is in the RGB module. 

    I cannot think of another way to achieve a constant FPS other than the methods already discussed, aside from one possibility.  It is apparently possible to sync a stream from a RealSense camera with a stream from a non-RealSense external camera by using metadata to align their separate recordings.  An external camera separated from how RealSense handles its exposure may give finer control over stream FPS.

    Details of a case where somebody attempts to align a RealSense with a Stereolabs ZED depth camera are in the link below.

    https://github.com/IntelRealSense/librealsense/issues/2186#issue-347002434 

    0
    Comment actions Permalink
  • Brent

    Thanks Marty. Your suggestions have been helpful, I have a direction to pursue - disabling Auto Exposure Priority.

    Per your earlier suggestion, I'll try GitHub too, thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.