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

Normalizing depth image for inference #24

Closed
AmanuelErgogo opened this issue Jul 13, 2022 · 1 comment
Closed

Normalizing depth image for inference #24

AmanuelErgogo opened this issue Jul 13, 2022 · 1 comment

Comments

@AmanuelErgogo
Copy link

Hi, @MartinSmeyer

I wanted to test the inference.py on real-time data from realsense depth camera. and I realized depth image from the provided test data is normalized while the depth image from realsense camera is uint16 format.
I tried to normalize using this formula but i am not certain about the range.
depth_normalized = (depth - min_depth) / (max_depth - min_depth)
so, could you provide the range used to normalize or any other ways to preprocess depth image?

Thanks,
Amanuel

@MartinSmeyer
Copy link
Contributor

Hi @AmanuelErgogo,

You don't need to normalize the depth, in fact it should be just in meters. If you know your workspace, it is beneficial to pass a suitable --z_range=[0.2,1.1] which cuts off foreground/background measurements.

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

2 participants