Skip to content

Slow point cloud creation with D435 #13652

Closed
@nbubis

Description

@nbubis
Required Info
Camera Model D435
Operating System & Version Ubuntu 22.04
Kernel Version (Linux Only) 5.15.148-tegra
Platform Jetson Orin
SDK Version v2.54.2
Language python

Issue Description

Creation of a point cloud from the depth image seems to take quite a long time on the D435. Following the code in the examples:

for pipeline_idx, pipeline in enumerate(self.pipelines):
    frame = pipeline.wait_for_frames()
    frame_list.append(frame)

for pipeline_idx, frame in enumerate(frame_list):
    depth_frame = frame.get_depth_frame()
    t0 = time.time()
    pointcloud = rs.pointcloud().calculate(depth_frame).get_vertices()
    pointcloud = np.asanyarray(pointcloud).view(np.float32).reshape(-1, 3)
    print("Pointcloud calculation time: ", time.time() - t0)

On the L515, the time printed (to calculate the pointcloud) is less than 2 msec. However, using the D435, the time is roughly 50(!) msec for creating the pointcloud. I'm using only the depth camera (color is turned off), with a 640p resolution.

How can I speed up the pointcloud processing time?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions