Replies: 2 comments 1 reply
-
Hi @anewworl I have not seen an example of a RealSense ply file being imported directly into an OpenCV script. My research indicates that imported ply data is typically converted into an OpenCV mat, like in the discussion at the link below. https://stackoverflow.com/questions/29435273/pointcloud-data-to-mat-data |
Beta Was this translation helpful? Give feedback.
-
On the RealSense Viewer depth image, the background is likely missing because the Viewer has the threshold post-processing filter enabled by default, which restricts the maximum distance of the depth that can be displayed to 4 meters from the camera. Going to Stereo Module > Post-Processing, expanding open the list of post-processing filters and disabling the Threshold filter will enable depth up to 10 meters away to be included on the depth image. The amount of detail on the depth image may also increase and the number of holes / gaps decrease if you maximize the value of the Laser Power setting to '360'. This setting can be found under Stereo Module > Controls. Calculating roll, pitch and yaw with pyrealsense2 code by accessing the camera's IMU component is discussed at #4391 |
Beta Was this translation helpful? Give feedback.
-
So i have try to export the point cloud from the RealSense camera (I am using model D435i). I base on this link and try to replicate it by using point cloud from D435i https://docs.opencv.org/4.x/d9/d25/group__surface__matching.html and this is the reference i get from the opencv-contrib python here is the link to the document https://github.com/opencv/opencv_contrib/blob/4.x/modules/surface_matching/samples/ppf_load_match.py
but i stuck at the step where i try to load the
.ply
data file export from the RealSense is not in correct format (https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/export_ply_example.py). Had anyone do this before can you have me with this problem pls.Beta Was this translation helpful? Give feedback.
All reactions