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

Depth image seems to be bad #3704

Closed
SamConti opened this issue Apr 8, 2019 · 8 comments
Closed

Depth image seems to be bad #3704

SamConti opened this issue Apr 8, 2019 · 8 comments

Comments

@SamConti
Copy link

SamConti commented Apr 8, 2019

  • 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 :)


Required Info
Camera Model D435
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.4.38
Platform Raspberry Pi
Language python

Issue Description

Hello,

I try to retrieve image from D435 camera in python but I think my depth image is not good and I don't know why.

Here the image :

Image_Color

And the depth image :

Depath_Depth

My code is

import pyrealsense2 as rs
pipeline = rs.pipeline()
config=rs.config
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16,6)
config.enable_stream(rs.stream.color, 1280, 720, rs.format.rgb8,6)
config.enable_record_to_file("bagfiletest.bag")
pipeline.start()
pipeline.wait_for_frames()
pipeline.stop()

@dorodnic
Copy link
Contributor

dorodnic commented Apr 8, 2019

Yes, the depth frame is bad.
Did you try skipping couple first frames? Auto-expose needs some time to stabilize.
If this persists, it is possible there is a problem with camera calibration

@SamConti
Copy link
Author

SamConti commented Apr 8, 2019

Okay, it seems it needs some time to stabilize, but it's a problem.
My final using is to have a bag file each 5mn with one image inside and I send it on a ftp server, if I have to wait for 5s before stopping, bag file is too big (>20Mo) and I have several images into the bag file.
Is there a possibility to take one clean image ?

@dorodnic
Copy link
Contributor

You could try save_single_frameset defined in rs_export.hpp to manually save one specific frame-set.

@SamConti
Copy link
Author

Hello,

Thanks for the trail, but is here any documentation for python, all I found is for C++....

@RealSenseCustomerSupport
Copy link
Collaborator


@SamConti Could you please shed more details about what kind of python document you need? For python, we have some examples in https://github.com/IntelRealSense/librealsense/tree/v2.21.0/wrappers/python/examples Maybe you can find more information there. Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@SamConti Any other questions for this ticket? Looking forward to your update. Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@SamConti If no other questions, will close this ticket accordingly. Please feel free to create new ticket if have other questions. Thanks!

@soarwing52
Copy link

soarwing52 commented May 23, 2019

@dorodnic @RealSenseCustomerSupport
I tried the save_single_frameset as you mentioned, I can get proper visualized depth image
but when I want to get the depth data, the deproject, there's always only 0.00
#4020 this is my issue

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

No branches or pull requests

4 participants