kekeblom / StrayVisualizer

Visualize Data From Stray Scanner https://keke.dev/blog/2021/03/10/Stray-Scanner.html
MIT License
67 stars 11 forks source link

Get the depth value in meters #6

Closed kushalp28 closed 3 years ago

kushalp28 commented 3 years ago

Hi, I wanted to know how to get the depth value in meters in python of the recorded video?

kekeblom commented 3 years ago

Check the function load_depth(path, confidence=None, filter_level=0) in stray_visualize.py. The depth values are saved as millimeters encoded as a matrix of 16 bit unsigned integer values. To go from millimeters to meters you multiply by 1000.