View my account

D457 Autoexposure leading to overexposed frames

Comments

1 comment

  • MartyX Grover

    Hi Suyash Nigam  The first several frames captured can have incorrect exposure when auto-exposure is enabled because the auto-exposure requires time during those initial frames to settle down.

     

    If you cannot use manual exposure then a way to avoid 'bad' frames at start-up is to skip the first several frames by wrapping the wait_for_frames() instruction within a 'for int' instruction so that the first frame is a frame with good exposure.  The links below have examples of implementing this frame skip in C++ and Python.

     

    C++

    for (int i = 0; i < 5; i++)
    {

    rs2::frameset frames = wait_for_frames();


    }    

     

    Python

    for _ in range(5):
    pipe.wait_for_frames()

    for i in range(num_frames - 5):
    print(i)
    frameset = pipe.wait_for_frames()
    0
    Comment actions Permalink

Please sign in to leave a comment.