<?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: how to generate pointclouds and draw it in python in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583733#M10909</link>
    <description>&lt;P&gt;I saw that a member of the Intel support team gave a reply earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need another suggestion, I recommend this Python tutorial:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dorodnic/binder_test/blob/master/pointcloud.ipynb"&gt;https://github.com/dorodnic/binder_test/blob/master/pointcloud.ipynb&lt;/A&gt; binder_test/pointcloud.ipynb at master · dorodnic/binder_test · GitHub &lt;/P&gt;</description>
    <pubDate>Mon, 13 Aug 2018 21:10:50 GMT</pubDate>
    <dc:creator>MartyG</dc:creator>
    <dc:date>2018-08-13T21:10:50Z</dc:date>
    <item>
      <title>how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583731#M10907</link>
      <description>&lt;P&gt;# encoding:utf-8import numpy as np&lt;/P&gt;&lt;P&gt;import cv2&lt;/P&gt;&lt;P&gt;import pyrealsense2 as rs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pipeline = rs.pipeline()&lt;/P&gt;&lt;P&gt;config = rs.config()&lt;/P&gt;&lt;P&gt;config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)&lt;/P&gt;&lt;P&gt;config.enable_stream(rs.stream.depth,640, 480, rs.format.z16, 30)&lt;/P&gt;&lt;P&gt;# 深度存储为每像素一个无符号 16 位整数，在摄像机特定单位中线性映射到深度pipeline.start(config)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while True:  frames = pipeline.wait_for_frames()&lt;/P&gt;&lt;P&gt;  color = frames.get_color_frame()&lt;/P&gt;&lt;P&gt;  depth  = frames.get_depth_frame()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if (not depth) or (not color):   print("Color or Depth not available!")&lt;/P&gt;&lt;P&gt;   break&lt;/P&gt;&lt;P&gt;  # color  color_img = np.asanyarray(color.get_data())&lt;/P&gt;&lt;P&gt;  color_img = cv2.cvtColor(color_img, cv2.COLOR_BGR2RGB)&lt;/P&gt;&lt;P&gt;  # depth&lt;/P&gt;&lt;P&gt;  c = rs.colorizer()&lt;/P&gt;&lt;P&gt;  colorized_depth = np.asanyarray(c.colorize(depth).get_data())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  # pointclouds  &lt;B&gt;I HAVE PROBLEMS HERE??????&lt;/B&gt;&lt;/P&gt;&lt;P&gt;  pc = rs.pointcloud()&lt;/P&gt;&lt;P&gt;  points = pc.calculate(depth)&lt;/P&gt;&lt;P&gt;  pc.map_to(color)&lt;/P&gt;&lt;P&gt;&lt;I&gt;  app_state.tex.upload(color)  ?&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;  draw_pointcloud(app, app_state, points)&lt;/I&gt;  &lt;B&gt;H&lt;/B&gt;&lt;B&gt;ow to show the pointcloud?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cv2.imshow("color",color_img)&lt;/P&gt;&lt;P&gt;  cv2.imshow(&amp;lt;span style="font-weight: inherit; font-style: i...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:03:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583731#M10907</guid>
      <dc:creator>tguan</dc:creator>
      <dc:date>2018-08-08T08:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583732#M10908</link>
      <description>&lt;P&gt;Hi guantong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at your code and I think I was able to find what you needed to add to export and show the point cloud. We do have examples included in the SDK relating to point clouds that might be useful to you! Here are the links to those:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pointclouds in C++ &lt;A href="https://github.com/IntelRealSense/librealsense/tree/master/examples/pointcloud"&gt;https://github.com/IntelRealSense/librealsense/tree/master/examples/pointcloud&lt;/A&gt; librealsense/examples/pointcloud at master · IntelRealSense/librealsense · GitHub&lt;/P&gt;&lt;P&gt;Pointclouds in Python &lt;A href="https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/export_ply_example.py"&gt;https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/export_ply_example.py&lt;/A&gt; librealsense/export_ply_example.py at master · IntelRealSense/librealsense · GitHub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines I have added to your code are in red below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this worked for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;________________________________________________________________________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;# encoding:utf-8import numpy as np&lt;/P&gt;&lt;P&gt;import cv2&lt;/P&gt;&lt;P&gt;import pyrealsense2 as rs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pipeline = rs.pipeline()&lt;/P&gt;&lt;P&gt;config = rs.config()&lt;/P&gt;&lt;P&gt;config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)&lt;/P&gt;&lt;P&gt;config.enable_stream(rs.stream.depth,640, 480, rs.format.z16, 30)&lt;/P&gt;&lt;P&gt;# 深度存储为每像素一个无符号 16 位整数，在摄像机特定单位中线性映射到深度pipeline.start(config)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while True:&lt;/P&gt;&lt;P&gt;     frames = pipeline.wait_for_frames()&lt;/P&gt;&lt;P&gt;     color = frames.get_color_frame()&lt;/P&gt;&lt;P&gt;     depth  = frames.get_depth_frame()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if (not depth) or (not color):&lt;/P&gt;&lt;P&gt;          print("Color or Depth not &lt;/P&gt;&lt;P&gt;          break&lt;/P&gt;&lt;P&gt;     # color     color_img = np.asanyarray(color.get_data())&lt;/P&gt;&lt;P&gt;     color_img = cv2.cvtColor(color_img, cv2.COLOR_BGR2RGB)&lt;/P&gt;&amp;lt;p style="font-family: intel-clear, arial, helvetica, 'helvetica neue', ve...</description>
      <pubDate>Mon, 13 Aug 2018 18:43:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583732#M10908</guid>
      <dc:creator>Sahira_Intel</dc:creator>
      <dc:date>2018-08-13T18:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583733#M10909</link>
      <description>&lt;P&gt;I saw that a member of the Intel support team gave a reply earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need another suggestion, I recommend this Python tutorial:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dorodnic/binder_test/blob/master/pointcloud.ipynb"&gt;https://github.com/dorodnic/binder_test/blob/master/pointcloud.ipynb&lt;/A&gt; binder_test/pointcloud.ipynb at master · dorodnic/binder_test · GitHub &lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:10:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583733#M10909</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-08-13T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583734#M10910</link>
      <description>&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 06:39:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583734#M10910</guid>
      <dc:creator>tguan</dc:creator>
      <dc:date>2018-08-15T06:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583735#M10911</link>
      <description>&lt;P&gt;So nice you are.&lt;/P&gt;&lt;P&gt;I read the tutorial you send me &lt;/P&gt;&lt;P&gt;i have a question about it :&lt;/P&gt;&lt;P&gt; from pyntcloud.pyntcloud import PyntCloud #  open source library for 3D pointcloud visualisation&lt;/P&gt;&lt;P&gt;ModuleNotFoundError: No module named 'pyntcloud'&lt;/P&gt;&lt;P&gt;how was the module'pyntcloud' in python3?&lt;/P&gt;&lt;P&gt;i install it by pip but failed.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 07:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583735#M10911</guid>
      <dc:creator>tguan</dc:creator>
      <dc:date>2018-08-15T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583736#M10912</link>
      <description>&lt;P&gt;The installation instructions for Pyntcloud are here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pyntcloud.readthedocs.io/en/latest/installation.html"&gt;http://pyntcloud.readthedocs.io/en/latest/installation.html&lt;/A&gt; Installation — pyntcloud 0.0.1 documentation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;STEP ONE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you have these requirements installed on your computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python 3&lt;/P&gt;&lt;P&gt;numpy&lt;/P&gt;&lt;P&gt;numba&lt;/P&gt;&lt;P&gt;scipy&lt;/P&gt;&lt;P&gt;pandas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;STEP TWO&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When these requirements are installed, run them with these instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conda env create -n pyntcloud python=3 numpy numba scipy pandas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source activate pyntcloud&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;STEP THREE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, install Pyntcloud with this instruction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip install git+ &lt;A href="https://github.com/daavoo/pyntcloud"&gt;https://github.com/daavoo/pyntcloud&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 07:12:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583736#M10912</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-08-15T07:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583737#M10913</link>
      <description>&lt;P&gt;sorry,iI failed in running these instructions in step2 and 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:17:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583737#M10913</guid>
      <dc:creator>tguan</dc:creator>
      <dc:date>2018-08-15T08:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583738#M10914</link>
      <description>&lt;P&gt;Ok, I read the instructions again.  I believe you only need to use the instructions that you had problems with if you are installing the requirements using a program called miniconda.  If you have installed the list of programs yourself, then skip to the final instruction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip install git+ &lt;A href="https://github.com/daavoo/pyntcloud"&gt;https://github.com/daavoo/pyntcloud&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/583738#M10914</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-08-15T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate pointclouds and draw it in python</title>
      <link>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/1363365#M17751</link>
      <description>&lt;P&gt;Hi Sahira_Intel,&lt;/P&gt;
&lt;P&gt;I'm trying to read your answer to tguan, but for some reason the code appears to be incomplete. Is there a way to see the entire code?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 14:20:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/how-to-generate-pointclouds-and-draw-it-in-python/m-p/1363365#M17751</guid>
      <dc:creator>miself</dc:creator>
      <dc:date>2022-02-24T14:20:45Z</dc:date>
    </item>
  </channel>
</rss>

