1 of 1 people found this helpful
'Deprojection' is used to convert 2D pixel coordinates to 3D world coordinates, using the instruction rs2_deproject_pixel_to_point
On the 400 Series cameras, you can get the field of view with the following script code. You may need to adjust it for Python.
rs2::pipeline_profile selection = pipe.start();
auto depth_stream = selection.get_stream(RS2_STREAM_DEPTH)
auto i = depth_stream.get_intrinsics();
float fov; // X, Y fov
The function 'get_intrinsics' doesn't exist in Python as a function of 'stream_profile'.
I have searched the web for examples and haven't found any (also regarding 'rs2_deproject_pixel_to_point').
There's a class called 'intrinsics' but I haven't figured out how to use it.
Could you please address me to some documentation or send a python code examples for using 'get_intrinsics' and 'rs2_deproject_pixel_to_point'?
The documentation for the Python wrapper is limited. I got asked for a deproject example last week by someone else and was unable to find one. The best I can do is refer you to the Python sample programs and hope you can find the reference about Python instructions that you need in those programs.
I do not work for Intel and so do not have any direct contact with developers. For extremely technical RealSense questions, you may get an answer if you go to the Librealsense forum, where a guy called Dorodnic posts. He is one of the Libreslsense development leaders and works with the deepest details of the cameras every day. Click the ''New Issue' button on the page below.
I opened an issue on github as you recommended and got answers to most of my questions, including how to use rs2_deproject_pixel_to_point.
Thanks for all your help!