Detect Inscribed Circles
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
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. |