Extract Point Cloud from 2D Detection Results

Description

This operator is a key node connecting 2D vision detection and 3D point cloud processing. It precisely extracts the 3D point cloud of the region where each detection target is located from a corresponding organized point cloud, based on the input 2D detection results (such as masks or bounding boxes output by the "Object Detection" operator).

Overview

Projects color-image detections onto an XYZ point cloud to extract points.

Scenarios

After completing target detection on a 2D image, use this operator to quickly segment the 3D point cloud corresponding to each target for subsequent 3D analysis. For example, by extracting the point cloud of a specific object, background and irrelevant object interference can be effectively removed, providing a target point cloud for robot grasping.

Inputs and Outputs

Inputs

Detection Results: 2D detection results: a list containing classification, score, polygon contour, and angle information.

Color Image: Image used to produce detections.

Point Cloud: Organized XYZ point cloud.

Camera parameters: Dictionary containing 2D calibration.

Outputs

Point Cloud: A list of point clouds, where each point cloud element in the list corresponds to a detection instance in the input.

Parameters

Bounding Box Scale Ratio

Description

Only for Bounding box detection, multiplies the width and height of each detection instance’s minimum-area rectangle by this ratio.

Tuning Instructions

Use a value below 1 to shrink the extraction region or above 1 to expand it; Segmentation mask detection does not use this parameter.

Parameter Range

[0.01, 10.0], Default: 1.0

Parameter Range

Values/Range: [0.01, 10.0]

Default: 1.0

Reverse Extraction

Description

When disabled, extracts points inside each detection region and outputs them by instance; when enabled, extracts points outside all detection regions as one point cloud.

Tuning Instructions

Disable it for target-region point clouds; enable it for the background remaining after all detection regions are excluded.

Parameter Range

Default: False

Detection Type

Description

Uses either each detection instance’s minimum-area rectangle or polygon contour to define the projected extraction region.

Tuning Instructions

Select Bounding box for detection-box regions; select Segmentation mask to extract the filled segmentation-contour region.

Parameter Range

Options: Bounding box, Segmentation mask, Default: Bounding box

Parameter Range

Values/Range:

  • Bounding box

  • Segmentation mask

Default: Bounding box

Image Source

Description

Selects texture-camera or main-camera calibration when resolving the projection model. Auto resolves the source from image dimensions and camera parameters and can fall back to valid main-camera calibration when placeholder texture calibration is unsuitable.

Tuning Instructions

Select Auto when the input identifies its source; select Texture camera for a known texture-camera image or Depth camera for a known main-camera image.

Parameter Range

Options: Auto, Texture camera, depth camera, Default: Auto

Parameter Range

Values/Range:

  • Auto

  • Texture Camera

  • Depth Camera

Default: Auto