Skip to content
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

How to Detect Frame Drops #9533

Closed
tarekmuallim opened this issue Jul 30, 2021 · 5 comments
Closed

How to Detect Frame Drops #9533

tarekmuallim opened this issue Jul 30, 2021 · 5 comments

Comments

@tarekmuallim
Copy link


Required Info
Camera Model D400
Firmware Version 05.12.14.50
Operating System & Version Ubuntu 18
Kernel Version (Linux Only)
Platform PC
SDK Version 2.40.0
Language c++
Segment

When trying to get a new frame, how to detect if frames drops happen?

Applying something like:
rs2::frameset frames = pipeline.wait_for_frames();
I need to detect if frames drops happen during this.

@MartyG-RealSense
Copy link
Collaborator

Hi @tarekmuallim Information on how the RealSense SDK calculates frame drops is provided in the link below.

#7488 (comment)

@tarekmuallim
Copy link
Author

@MartyG-RealSense thank you for the information.

That source code help me.

I am wondering, is there any way to get information about if incomplete frame is received?

@MartyG-RealSense
Copy link
Collaborator

There is an SDK instruction called RS2_NOTIFICATION_CATEGORY_FRAME_CORRUPTED.

https://intelrealsense.github.io/librealsense/doxygen/rs__types_8h.html#a5b8efd94f1165be36acea964bf3bdd8dab6d76d2e2b73f5157afbd9a60dcfe1e8

Example scripting for accessing this instruction to detect incomplete frames is suggested here:

#3189 (comment)

@tarekmuallim
Copy link
Author

Hi @MartyG-RealSense thanks for the information.
It helped me.

@MartyG-RealSense
Copy link
Collaborator

I'm pleased that the information was useful to you - thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants