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 generate depth images with the same parameters as my camera Zed2i ? #1093

Open
joaoparaujo01 opened this issue May 7, 2024 · 2 comments
Labels
first answer provided question Question, not yet a bug ;)

Comments

@joaoparaujo01
Copy link

Describe the issue

I have this question because getting the grayscale by my camera and generating synthetic ones is different:
For my camera the nearest objects is with the pixel value of 255 and for the synthetic images is 0
The depth range i think it would be different because the grayscale is [0,255] and each value represent a diferent value of distance related to the depth range. So how could i define the depth range on blenderproc?
Another topic is that the grayscale of the depth image on the zed2i is 16 bit and for the synthetic depth images is 8 bit. How could i change that?
Thanks in advance!

Minimal code example

No response

Files required to run the code

No response

Expected behavior

...

BlenderProc version

v2.7.1

@joaoparaujo01 joaoparaujo01 added the question Question, not yet a bug ;) label May 7, 2024
@cornerfarmer
Copy link
Member

Hey @joaoparaujo01,

blenderproc outputs depth/distance values as float values in meters. So you should be able to transform them into any scale you like.

@joaoparaujo01
Copy link
Author

Thanks for the answer.
Can you give me a simple example on how i could do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants