Measure distance python
Hello,
I would like to make applications for measuring distances between objects using python.
I found a c ++ tutorial https://dev.intelrealsense.com/docs/rs-distance but i can't find an equivalent in Python.
Has anyone made a similar application?
-
Hi P Woronow If you are aiming to measure the distance between the camera and an observed object, Intel have a Python tutorial in Jupyter Notebook format called distance_to_object in the link below.
https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb
A more conventional Python example where (like with distance_to_object) the distance is obtained by aligning depth and color can be found here:
https://github.com/IntelRealSense/librealsense/issues/6749#issuecomment-654185205
If you need to instead measure between two points then a Python conversion by a RealSense user of the SDK's C++ rs-measure example is here:
https://github.com/soarwing52/RealsensePython/blob/master/separate%20functions/measure_new.py
Please sign in to leave a comment.
Comments
2 comments