-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L515 Unstable Frame Rate #10733
Comments
Hi @FeiSong123 Could you test please whether performance improves if you unplug the micro-sized end of the USB cable from the base of the L515 camera, turn the connector around the other way and re-insert it into the base of the camera (USB Type-C cables are two way insertion at the micro-sized end). |
I repeated the operation several times and found that improved to 30ms-40ms for once only. |
Next, please try disabling the auto-exposure priority RGB option. When auto-exposure is enabled and auto-exposure priority is disabled, this should force the RealSense SDK to try to maintain depth and color FPS at the same rate instead of allowing it to vary. The C++ code below can be inserted in the line after the second tk.start instruction and queries the color sensor (which has index number '1', whilst the depth sensor is index number '0').
|
I added it to the initialization configuration, but it still unstable (30ms-60ms), sometimes under 10ms rs2::pipeline_profile selection = pipe.start(cfg); auto colorSensors = selection.get_device().query_sensors()[1]; |
If you have disabled auto-exposure and are setting a manual exposure value in a certain range then it can cause the FPS to lag. This effect is described at #1957 (comment) It may therefore be worth commenting out the auto-exposure disable and manual exposure = 650 lines in order to confirm whether or not the manual exposure is the cause of the FPS drop. The constant FPS rate provided by disabling auto-exposure priority will also not work if auto-exposure is disabled. |
I used auto exposure and turned off auto exposure priority as described at #1957 (comment) and FPS is now stable. |
That's great, @FeiSong123 - thanks very much for the update :) |
Hi, I want to know how to set RS2_OPTION_AUTO_EXPOSURE_MODE, but I couldn't find the corresponding usage in the repository. |
When I set up my camera as follows, I encountered a strange problem:
Below are four consecutive images taken by the camera, which appear to suddenly increase and then decrease in light intensity: Then I wondered if there was a problem with the auto exposure settings, so I went to check the auto exposure related settings. |
There are some options in the RealSense SDK that have never been used and so have no scripting references available for them. The best reference available for RS2_OPTION_AUTO_EXPOSURE_MODE is a Python one at #5602 (comment) that describes the values for this setting as: 0: Static A check of the L515's supported options using the RealSense SDK's rs-sensor-control tool showed that the option was not supported on L515. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
<Describe your issue / question / feature request / etc..>
L515 wait_for_frames() sometimes (52ms-60ms) sometimes under 10ms, cannot reach the preset 30 frames.
When run on same code with other camera D435/D455 (60FPS), it's fine.
here is the time cout by L515:
wait time:0.014355
update time:0.100019
time:0.340201
-------------------程序总时间:1.52427
wait time:61.1373
update time:61.2394
time:61.4984
-------------------程序总时间:63.3608
wait time:0.429982
update time:0.499923
time:0.700047
-------------------程序总时间:1.8975
wait time:61.1578
update time:61.258
time:61.5415
-------------------程序总时间:63.0588
wait time:2.03914
update time:2.14394
time:2.45241
-------------------程序总时间:4.00483
wait time:59.0686
update time:59.1937
time:59.4571
-------------------程序总时间:60.8233
wait time:3.79388
update time:3.87624
time:4.12769
-------------------程序总时间:5.37105
wait time:58.0602
update time:58.1426
time:58.3969
-------------------程序总时间:60.457
Here is my code:
The text was updated successfully, but these errors were encountered: