Skip to content

3D Surface Defect

Operator Function

Detect convex and concave defects in the input point cloud image, and output specified type defect information to global variables.

3D Defect Effect

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80The IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Use Region Parameterstrue/falsefalseIf enabled, use Region as input; if not enabled, use Input Image as input
Region2D Window/BoxBoxManually select an appropriate ROI region
Can bind to select existing ROI regions
Defect TypeConcave/Convex/Concave+ConvexConcave+ConvexConcave: Point cloud regions below the reference plane
Convex: Point cloud regions above the reference plane
Concave+Convex: Point cloud regions both above and below the reference plane
Defect Length0.500Long side size of the largest defect in the current detection area. Unit: mm.
ROI Traversal Radius0.500ROI traversal radius during point cloud preprocessing in the current detection area. Unit: mm.
Height Detection Threshold0.500Defect point cloud regions greater than this threshold will be preserved; those less than this threshold will be discarded.
Maximum Detection Count10Set the maximum number of defects that can be output
Minimum Area0.000Lower limit of rectangular area formed by defect point cloud bounding box
Maximum Area9999.999Upper limit of rectangular area formed by defect point cloud bounding box
Minimum Height0.000Lower limit of minimum height in defect point cloud
Maximum Height9999.999Upper limit of maximum height in defect point cloud
Minimum Average Height0.000Lower limit of average height in defect point cloud
Maximum Average Height9999.999Upper limit of average height in defect point cloud
Minimum Bounding Box Long Side0.000Lower limit of the longest side of the rectangle formed by defect point cloud bounding box
Maximum Bounding Box Long Side9999.999Upper limit of the longest side of the rectangle formed by defect point cloud bounding box

Result Display

ParameterRangeDefault ValueDescriptionIllustration
Boxtrue/falsefalseTarget defect bounding rectangle; if enabled, displayed in the image
Sequence Numbertrue/falsefalseDefect sequence number; if enabled, displayed in the image
Point Settrue/falsefalseTarget point set; if enabled, displayed in the image
ROI Point Settrue/falsefalseOnly effective when Use Region Parameters is selected; the point set of the ROI selected region; if enabled, displayed in the image
Preprocessed Point Cloudtrue/falsefalseHeight difference point cloud after preprocessing; if enabled, displayed in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates there is a warning
false indicates there is none
MessagestringOutputs success, error, or warning information; if there is no error or warning, it is empty
TimefloatOperator execution time, unit: ms
defect_areafloat[]Defect area
defect_bbox_max_widthfloat[]Defect long side
defect_centroid_xfloat[]Defect centroid x coordinate
defect_centroid_yfloat[]Defect centroid y coordinate
defect_heightfloat[]Defect height
defect_height_avgfloat[]Defect average height
defect_idfloat[]Defect ID
defect_numintDefect count

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1The input value is {0}, invalid region typeRegion TypeOnly supports window2d, box, pointset
2Region crop failed1. Check if input point cloud is empty
2. Check if ROI region encloses any point cloud
3. Check if bound pointset is empty
3The input value is {0}, invalid defect area thresholdMinimum AreaOnly supports minimum defect area < maximum defect area
4The input value is {0}, invalid defect height thresholdMinimum HeightOnly supports minimum height < maximum height
5The input value is {0}, invalid defect average height thresholdMinimum Average HeightOnly supports minimum average height < maximum average height
6The input value is {0}, invalid minimum bounding box long side thresholdMinimum Bounding Box Long SideOnly supports minimum bounding box long side < maximum bounding box long side
7Failed to find {1} defects with width greater than {0}.Height Detection Threshold, Defect Type1. Check if height detection threshold is too large
2. Check if defect type is selected correctly
8Failed to find {0} defectsDefect TypeCheck if distance threshold in defect parameters is set too small
9Failed to find {0} defectsDefect TypeCheck if other constraints are set in advanced parameters

Example Introduction

Engineering Design

  1. Select the Load 3D Point Cloud tool to load the 3D point cloud image to be processed into IM0.

  2. Select the 3D Point Cloud Crop tool to copy IM0 to IM1 and IM2.

  3. Select the 3D Surface Defect tool, set different defect types.

Tool Usage

  1. Select the input image for operation; the image number must match the IM number where the image is located in the project.

  2. Select the region type as Box, move the box to the position to be measured, enclosing the point cloud to be measured.

Usage Tips

  1. Use the ROI controller on the image window to drag or scale the box;
  2. Directly modify the start or end coordinates of the box in the calculation parameters to adjust the box position and size;
  1. Set parameters

  2. Check the content you want to display in the result display section

  3. Click Test to check if the image window and parameters meet expectations

  4. If there are no issues, click Save, then run the operator in the run list to view the results in the corresponding IM

Local Image

AI-Vision, Making 3D Measurement Easier