View my account

Computing distance between two pixel location using depth information

Comments

1 comment

  • MartyG

    As far as I know there is not an official equivalent of the C++ "Measure" example for measuring between two points with Python.  A RealSense community member called Soarwing52 did convert "Measure" to Python though.  The most recent version of that code is in the link below.

    https://github.com/soarwing52/RealsensePython/blob/master/separate%20functions/measure_new.py 

    If there were a way to check the current preset, I would guess it would be to check the description value of RS2_OPTION_VISUAL_PRESET like in the example C++ line below.

    const char* preset_desc = rs2_get_option_value_description((const rs2_options*)sen, RS2_OPTION_VISUAL_PRESET, pres, &e);

    I recommend asking at the RealSense GitHub forum for a Python version of that, by visiting the link below and clicking the New Issue button to post a question.

    https://github.com/IntelRealSense/librealsense/issues 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.