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

The video recorded by Intel RealSense Viewer has a different depth value than the bag file called by Python #13648

Closed
zhanyaoaaaaaa opened this issue Jan 2, 2025 · 6 comments
Labels

Comments

@zhanyaoaaaaaa
Copy link

zhanyaoaaaaaa commented Jan 2, 2025

Required Info
Camera Model { D455 }
Firmware Version (v2.55.1)
Operating System & Version {Win (8.1/10)
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
SDK Version { legacy / 2.. }
Language python
Segment others

Issue Description

When I used the Intel RealSense Viewer toolkit to record a bag file, I found that the depth value of a fixed pixel in the bag file that I called with Python code did not match the pixel displayed by the Viewer toolkit.
For example, I set the stereo module → post processing → temporary filter → filter smooth alpha to 0. When recording a bag file in Viewer, the depth value of a fixed pixel does not change over time. But when I called the bag file with Python code, I found that the depth value of the fixed pixel still changes over time, and the magnitude of this change is very large.
Excuse me, did the bag file not save the post processing result?
What should I do when using Python code to call a bag file? Never record directly in Python, it's inconvenient, just use Python code to call the bag file.

@zhanyaoaaaaaa
Copy link
Author

zhanyaoaaaaaa commented Jan 2, 2025

When I used Python code to call the bag file recorded by inter realsense vierwer, I found that all the parameters for post processing were fixed. In other words, although I changed the post-processing parameters during the recording of the inter realsense vierwer, the bag file did not save the parameters I changed. Is this a bug in the inter realsense vierwer?
The code is as follows.
option = rs.option.filter_smooth_alpha value = temporal_filter.get_option_value(option) print(f"The value of {option} is {value}")

@MartyG-RealSense
Copy link
Collaborator

The effects of post-processing filters are not saved to a bag file, just the raw stream data. Once the bag file has been loaded in, the filters have to be applied to the data in real-time.

@zhanyaoaaaaaa
Copy link
Author

Can you explain that when I apply temporal filtering to a deep frame, the attribute of this frame changes from "pyrealsense2. pyrealsense2. depthframe" to "pyrealsense2. pyrealsense2. frame", causing the function get-distance to fail and report an error: AttributeError: 'pyrealsense2.pyrealsense2.frame' object has no attribute 'get_distance'。

In this situation, even if I apply temporal filter, I cannot proceed with subsequent data processing??????

May I ask if there is a bug in the program?

@zhanyaoaaaaaa
Copy link
Author

Or alternatively, can I change the parameters of the temporal filter when recording files in Python, so that the depth value of the bag file recorded in Python changes? If not, why is post-processing necessary? Because I found that the default post-processing parameters do not match the actual results in processing depth values.

Please reply to me as soon as possible, as the setting of this post-processing parameter has been bothering me for a long time and urgently needs to be resolved now!

Looking forward to your reply,thanks!

@MartyG-RealSense
Copy link
Collaborator

Hi @zhanyaoaaaaaa Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants