<?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 Analyze Depth images in Unity in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602833#M12285</link>
    <description>&lt;P&gt;I just installed the relasense SDK 2.0 on unity. I'm using 2 depth cameras (Intel d415 and Intel d435).&lt;/P&gt;&lt;P&gt;Now, I've the colored depth image as in the examples. How can I analyze this images? I need to find the nearest object and draw a square around it.&lt;/P&gt;&lt;P&gt;Is there something similar to Opencv in Unity? I can't find anything but a plugin with very bad rates...&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jul 2018 07:55:32 GMT</pubDate>
    <dc:creator>MTont</dc:creator>
    <dc:date>2018-07-03T07:55:32Z</dc:date>
    <item>
      <title>Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602833#M12285</link>
      <description>&lt;P&gt;I just installed the relasense SDK 2.0 on unity. I'm using 2 depth cameras (Intel d415 and Intel d435).&lt;/P&gt;&lt;P&gt;Now, I've the colored depth image as in the examples. How can I analyze this images? I need to find the nearest object and draw a square around it.&lt;/P&gt;&lt;P&gt;Is there something similar to Opencv in Unity? I can't find anything but a plugin with very bad rates...&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:55:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602833#M12285</guid>
      <dc:creator>MTont</dc:creator>
      <dc:date>2018-07-03T07:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602834#M12286</link>
      <description>&lt;P&gt;Was the plugin that you saw the OpenCV For Unity one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088"&gt;https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088&lt;/A&gt; OpenCV for Unity - Asset Store&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were able to use OpenCV within Unity then you may be able to draw a box simply by accessing the Rectangle function of OpenCV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:03:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602834#M12286</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-07-03T08:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602835#M12287</link>
      <description>&lt;P&gt;Yes, I see now that the ratings are not so low...but price is a little to high. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to see if there is something else and then I will try that add-on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:18:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602835#M12287</guid>
      <dc:creator>MTont</dc:creator>
      <dc:date>2018-07-03T08:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602836#M12288</link>
      <description>&lt;P&gt;Unity has an inbuilt function called GUI.Box that can draw a box on the screen.  The problem would be programming an event to trigger this function, such as when the camera reads the depth of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.unity3d.com/ScriptReference/GUI.Box.html"&gt;https://docs.unity3d.com/ScriptReference/GUI.Box.html&lt;/A&gt; Unity - Scripting API: GUI.Box &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:43:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602836#M12288</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-07-03T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602837#M12289</link>
      <description>&lt;P&gt;Good! this is interesting, but the main problem remains how to analyze the depth image. I think that the add-on with opencv is the only method...&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:50:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602837#M12289</guid>
      <dc:creator>MTont</dc:creator>
      <dc:date>2018-07-03T08:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602838#M12290</link>
      <description>&lt;P&gt;As the Unity wrapper is based on C#  (the language that Unity uses), if I were writing your program then I would attempt to integrate the basic 'Hello World' C#  example for analyzing depth into a Unity script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pipe = new Pipeline();&lt;/P&gt;&lt;P&gt;pipe.Start();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (true)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    using (var frames = pipe.WaitForFrames())&lt;/P&gt;&lt;P&gt;    using (var depth = frames.First(x =&amp;gt; x.Profile.Stream == Stream.Depth) as DepthFrame)&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;        Console.WriteLine("The camera is pointing at an object " +&lt;/P&gt;&lt;P&gt;            depth.GetDistance(depth.Width / 2, depth.Height / 2) + " meters away\t");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Console.SetCursorPosition(0, 0);&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:02:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602838#M12290</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-07-03T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602839#M12291</link>
      <description>&lt;P&gt;I tried to modify the "RealsenseDevice" script adding the depth.GetDistance method and it works. I just analyze one pixel every 50 and I misure the distance. the problem is that it isn't very precise. Should I calibrate the camera or something similar?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 07:13:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602839#M12291</guid>
      <dc:creator>MTont</dc:creator>
      <dc:date>2018-07-05T07:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Depth images in Unity</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602840#M12292</link>
      <description>&lt;P&gt;RealSense cameras are usually well calibrated and only need re-calibrating if something unusual happens to them or they take a hard knock / drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accuracy may be influenced by how near the camera is to what you are measuring.  At very close range, the accuracy of the 400 Series can reduce because of how its pixel scaling is set up to enable it to see a distance of around 65 meters (though depth scanning is limited to 10 meters maximum by default).  If you are doing close-range scanning, you can change the camera's depth scale to improve accuracy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A less complex method of reducing the camera's minimum distance is to reduce the resolution to a low one, less than 848x400. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 07:20:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Analyze-Depth-images-in-Unity/m-p/602840#M12292</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-07-05T07:20:32Z</dc:date>
    </item>
  </channel>
</rss>

