Detect and Measure Hole on Surface

Description

This Step is used to detect the hole on a surface and output the location and radius of the detected hole.

Usage Scenario

Quality inspection, equipment calibration, object recognition, and positioning can be performed by locating and measuring holes on the surface of the workpiece.

Workflow

The process of configuring this Step is shown below.

detect n measure hole on surface
  1. Configure the input. Connect the ports manually or select the input(s) under Input in the parameter configuration panel.

  2. Set Nominal Radius and Radius Tolerance under Parameters.

  3. Configure the feature region and reference plane (optional).

  4. Select the desired output(s) under Output. For an expandable output item, click ▶ and configure the Min and Max values of the acceptable range.

  5. Run the Step and view output.

Parameter Description

Parameter Description

Nominal Radius

The expected radius of the hole, i.e. the standard radius of the hole.

Radius Tolerance

The allowable maximum variation of measured radius from the nominal radius (+ / - from the nominal radius).

Use Local Detection

The center of the hole to be detected must be within the feature region. For Use Local Detection to be selected, this condition must be met, otherwise no measurement can be performed effectively.

  • Unselected (default): The hole to be detected is completely within the feature region.

  • Selected: Only part of the hole is within the feature region.

Use Depth Limit

Once this option is selected, set Depth Threshold for data points. Points with depth values (relative to the measurement plane or reference plane) above the set threshold will be removed from hole calculation.

Tilt Correction

The plane where the detected hole is located may be tilted compared to the actual plane, which can corrected in one of the following ways:

  • Autoset: The tilt of the hole relative to the measurement plane or reference plane is automatically detected and corrected.

  • Custom: Set X Angle and Y Angle manually to correct the tilt of the hole.

Feature Region

Configure the feature region to ensure that the hole to be detected is within the feature region. For more information on how to set and adjust the feature region, see Feature Region.

The data in the feature region can be used to fit a measurement plane as a reference. Once set, the reference plane will be used as reference.

Use Reference Plane

The surface near the hole may be uneven. Then you can set a reference region to fit the reference plane so that the detected circular hole is on the reference plane.

  • Unselected: All data points in the feature region will be used to fit a measurement plane.

  • Selected: Once the option is selected, you can set One or Two reference region(s) to fit a reference plane aligned with the hole to be detected.

Output Description

Select the output item(s) to add the output port(s) to the Step, and the corresponding data will be output after the Step is run. You can select the output according to the actual measurement requirements.

If you select an expandable output item, you must expand it by clicking ▶, and then set the Min and Max values to determine the acceptable range. If the output value falls within the qualified range, the measurement is judged as passing (OK), or else it is judged as failing (NG).

Output Item Description

Hole Center X

The X value of the hole center.

Hole Center Y

The Y value of the hole center.

Hole Center Z

The Z value of the hole center.

Radius

The radius of the hole.

Hole Center

The center point of the hole.

Troubleshooting

  • For common errors, see Error Code List.

  • If the error code is inconsistent with the error message, please contact Technical Support for help.

CV-W3201

Error: Data points defined by the feature region are insufficient.

Solution: Adjust the feature region to ensure that there are enough points.

CV-W3202

Error: Data points defined by the reference region(s) are insufficient.

Solution: Reset the reference region to ensure that there are enough points.

CV-W3203

Error: The set “Nominal Radius” value is unreasonable.

Possible cause: The set nominal radius is too large or too small.

Solution: Reset Nominal Radius appropriately.

CV-W3204

Error: The difference between measured radius and “Nominal Radius” value is too huge.

Solution: Reset Nominal Radius, Radius Tolerance, or adjust the feature region.

CV-W3205

Error: The set “Radius Tolerance” value is unreasonable.

Possible cause: The set radius tolerance is too large or too small.

Solution: Reset Radius Tolerance appropriately.

CV-W3206

Error: No corner detected.

Possible causes:

  • The hole is not included in the feature region.

  • Tilt Correction is not set properly.

Solution:

  • Adjust the feature region so that the hole is included.

  • Reset Tilt Correction.

CV-W3207

Error: Cannot perform reprojection.

Possible causes:

  • The feature region is not set properly.

  • Tilt Correction is not set properly.

Solution:

  • Adjust the feature region.

  • Reset Tilt Correction.

CV-W3208

Error: Data points defined by feature region(s) are insufficient.

Possible causes:

  • The set depth threshold is too low.

  • The reference plane is not set properly, i.e., the hole to be measured is not coplanar with the reference plane.

Solution:

  • Increase the value of Depth Threshold appropriately.

  • Reset the parameters related to the reference plane.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.