<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Realsense Python API for transforming pixel to world coordinates in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578848#M10643</link>
    <description>&lt;P&gt;I have already read all the scripts in the link you sent and unfortunately none of them was related to my questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone else you can ask? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could connect me to the person that created the python wrapper? &lt;/P&gt;</description>
    <pubDate>Sun, 17 Jun 2018 19:53:11 GMT</pubDate>
    <dc:creator>YLitv</dc:creator>
    <dc:date>2018-06-17T19:53:11Z</dc:date>
    <item>
      <title>Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578843#M10638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As part of my research, I am using the D415 Realsense camera to capture depth images of an object randomly placed on a table (I am using only depth images). I used image detection to find the exact pixel in the depth image representing the center of the object, and I would like to know &lt;B&gt;how to transform from that pixel position (row, column) in the depth image to the real &lt;/B&gt;&lt;B&gt;Cartesian&lt;/B&gt;&lt;B&gt; position (x,y) in the world&lt;/B&gt;, where the real depth and z are known (the images are always being taken from a certain known position above the table). I work with &lt;B&gt;Python &lt;/B&gt;on Ubuntu 16.04. I looked at &lt;A href="https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0"&gt;https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0&lt;/A&gt; Projection in RealSense SDK 2.0 but couldn't find my answer.&lt;A href="https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0"&gt;https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, how can I get the &lt;B&gt;exact field-of-view of my specific camera&lt;/B&gt;?&lt;/P&gt;&lt;P&gt;In the specs documents there is a tolerance of +/-3 degrees and I need the accuracy of 0.01 degree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuval&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 06:51:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578843#M10638</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-06T06:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578844#M10639</link>
      <description>&lt;P&gt;'Deprojection' is used to convert 2D pixel coordinates to 3D world coordinates, using the instruction  rs2_deproject_pixel_to_point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::pipeline pipe;&lt;/P&gt;&lt;P&gt;rs2::pipeline_profile selection = pipe.start();&lt;/P&gt;&lt;P&gt;auto depth_stream = selection.get_stream(RS2_STREAM_DEPTH)&lt;/P&gt;&lt;P&gt;                             .as();&lt;/P&gt;&lt;P&gt;auto i = depth_stream.get_intrinsics();&lt;/P&gt;&lt;P&gt;float fov[2]; // X, Y fov&lt;/P&gt;&lt;P&gt;rs2_fov(&amp;amp;i, fov);&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:45:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578844#M10639</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-06T07:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578845#M10640</link>
      <description>&lt;P&gt;Hi MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try it out and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuval&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578845#M10640</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-06T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578846#M10641</link>
      <description>&lt;P&gt;Hi MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function 'get_intrinsics' doesn't exist in Python as a function of 'stream_profile'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched the web for examples and haven't found any (also regarding 'rs2_deproject_pixel_to_point').&lt;/P&gt;&lt;P&gt;There's a class called 'intrinsics' but I haven't figured out how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please address me to some documentation or send a python code examples for using 'get_intrinsics' and 'rs2_deproject_pixel_to_point'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:30:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578846#M10641</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-17T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578847#M10642</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples"&gt;https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples&lt;/A&gt; librealsense/wrappers/python/examples at master · IntelRealSense/librealsense · GitHub &lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:46:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578847#M10642</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-17T19:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578848#M10643</link>
      <description>&lt;P&gt;I have already read all the scripts in the link you sent and unfortunately none of them was related to my questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone else you can ask? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could connect me to the person that created the python wrapper? &lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:53:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578848#M10643</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-17T19:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578849#M10644</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/issues/"&gt;https://github.com/IntelRealSense/librealsense/issues/&lt;/A&gt; &lt;A href="https://github.com/IntelRealSense/librealsense/issues/"&gt;https://github.com/IntelRealSense/librealsense/issues/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 20:08:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578849#M10644</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-17T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578850#M10645</link>
      <description>&lt;P&gt; I'll do as you've suggested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 20:12:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578850#M10645</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-17T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578851#M10646</link>
      <description>&lt;P&gt;Hi MartyG, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have a look - &lt;A href="https://github.com/IntelRealSense/librealsense/issues/1904"&gt;https://github.com/IntelRealSense/librealsense/issues/1904&lt;/A&gt; Transforming pixel from a depth image to world coordinates · Issue # 1904 · IntelRealSense/librealsense · GitHub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2018 17:32:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578851#M10646</guid>
      <dc:creator>YLitv</dc:creator>
      <dc:date>2018-06-24T17:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense Python API for transforming pixel to world coordinates</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578852#M10647</link>
      <description>&lt;P&gt;Awesome, thanks for letting us know!  I'm really glad they were able to help.   Thanks so much for sharing the link so that others can benefit from it.  &lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2018 18:03:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-Python-API-for-transforming-pixel-to-world-coordinates/m-p/578852#M10647</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-24T18:03:35Z</dc:date>
    </item>
  </channel>
</rss>

