-
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
Reducing fps for depth frames and timestamp questions #9480
Comments
Hi @czy10383 An easier way to set a custom frame rate that is not normally supported is to only use every 'nth' frame (e.g every 5th frame out of 30 when using 30 FPS to simulate 6 FPS). So in the case of a target of 3 FPS, every 10th frame could be looked at. A Python script that demonstrates this technique is in the link below. In regard to what the timestamp is relative to: this is a complex subject, but the information in the link below provides useful introductory information. |
Thank you @MartyG-RealSense ! After reading #3169 , I have changed my program to use frame_number instead, where I will process every 10th frame This is a side question: I observed the following when I tested this on a Raspberry Pi:
I suspect the frame_number resets to 0 because the sensor temperature became too hot (> 70 degrees celsius), but I'm not sure if my hunch is correct? May I ask what other reasons could lead to the frame_number being reset to 0? thank you
|
Reasons why a reset of the frame counter to zero can be triggered are described in the link below. The frame counter can also be reset in multi-camera hardware sync configurations if there is an electrostatic discharge (ESD) event in hardware sync cabling that does not have ESD protection components. This would not apply in your single-camera application though. The recommended temperature guidelines for the L515 camera are shown in the table below, quoted from page 17 of the current edition of the data sheet document for the L515. They recommend that the camera be operated in a maximum ambient environmental air temperature of 30 degrees C and be exposed to a maximum camera housing temperature of 50 degrees C. https://dev.intelrealsense.com/docs/lidar-camera-l515-datasheet |
thank you @MartyG-RealSense ! I will proceed to close this issue : ) |
You are very welcome, @czy10383 - thanks very much for the update! |
Issue Description
The framerate of the depth sensor in L515 is fixed at 30
However, I wish to process the depth frames at a lower fps e.g. 3 fps, it's to reduce computational load on the cpu when I transfer the program onto a raspberry pi later.
I tried the following first:
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 3)
but this results in an error
My current approach is to use the timestamp for every depth frame
May I ask the following:
Thank you
The text was updated successfully, but these errors were encountered: