Detect Inscribed Circles

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Function

This Step extracts contours from the input 2D image and detects inscribed circles in the extracted contours. The inspection results can be used for subsequent processing such as target object positioning, counting, and dimensional measurement.

Usage Scenario

This Step is suitable for scenarios where circular structures in images need to be recognized, such as detecting or measuring circular holes, gaskets, and other structures on machined parts. It is a general 2D feature extraction Step and has no fixed usage scenarios.

Input and Output

Input

Input port Data type Description

Masks

Image []

This port inputs the mask region of the inscribed circle to be detected.

Original Image for Visualization

Image -

This port is used to display the raw image to be detected.

Output

Output port Data type Description

Masks of Detected Circles

Image []

This port outputs the detected inscribed circle masks for subsequent analysis or processing.

Result Image for Visualization

Image -

This port outputs visualized images with inscribed circle labels.

Parameter Description

Parameter Description

Max Number of Inscribed Circles

Description: This parameter is used to set the maximum number of inscribed circles that can be detected in the entire image.

Default value: 100

Tuning recommendation: Please set the number according to the actual workpiece structure and inspection requirements to avoid having too many invalid circles detected.

Expand Ratio of Circle Radius (0–1.0)

Description: When there are multiple inscribed circles in a contour, each detected inscribed circle region needs to be removed from the mask. Therefore, to avoid the influence of edge residue on subsequent circle detection, you can appropriately enlarge the radius of the detected circle and then remove it.

Default value: 0.2000

Tuning recommendation: Please adjust according to the actual measurement result. A small proportion may affect the subsequent detection of circles affected by the residue of the previous inscribed circle; while a large proportion may leave out some circles.

Ratio of First Circle Radius

Description: This parameter is used to filter out circles other than the largest circle when there are multiple inscribed circles in a profile.

Default value: 0.6000

Tuning recommendation: If the radius ratio of an inscribed circle to the largest inscribed circle in the same contour is greater than this value, this parameter will be retained; if it is less than this value, this parameter will be eliminated.

Min Inscribed Circle Radius

Description: This parameter is used to set the minimum detectable inscribed circle radius.

Default value: 10 px

Tuning recommendation: Please set the value according to the minimum circular feature size of the target object. If noises or false detections of small circles occur in the detection results, you can appropriately increase this value.

Is this page helpful?

You can give a feedback in any of the following ways:

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.