Skip to content

2D Glue Detection

Operator Function

Determine whether the glue path is qualified based on the given point set in the image.

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Trajectory Options--Trajectory calculation related parameter settings
Smoothing Factor0.0-1.00.0Smoothness when fitting the trajectory
Point Set X CoordinateAny float0.0Horizontal coordinate value of the point
Point Set Y CoordinateAny float0.0Vertical coordinate value of the point
ROI Width1-9992Width of ROI
ROI Length1-99920Length of ROI
Center Spacing0-9992Spacing between ROI centers
Detection Length1-99910Length interval used for calculation
Grayscale Threshold0-25530Grayscale threshold for detecting edge strength
Point 1 ModeBlack to White / White to BlackBlack to WhiteGrayscale change direction for Point 1
Point 1 OptionFirst / Last / BestLastSelection method for Point 1
Point 2 ModeBlack to White / White to BlackBlack to WhiteGrayscale change direction for Point 2
Point 2 OptionFirst / Last / BestLastSelection method for Point 2
Margin DetectionEnable/DisablefalseWhether to perform auxiliary detection of left and right margins
Grayscale Threshold (Margin)0-25530Grayscale threshold for margin detection
Point 3 ModeBlack to White / White to BlackBlack to WhiteGrayscale change direction for Point 3
Point 3 OptionFirst / Last / BestLastSelection method for Point 3
Point 4 ModeBlack to White / White to BlackBlack to WhiteGrayscale change direction for Point 4
Point 4 OptionFirst / Last / BestLastSelection method for Point 4
Width Result JudgmentEnable/DisablefalseWhether to enable width compliance judgment
Minimum Width0.001-1000.05.0Lower width limit
Maximum Width0.001-1000.05.0Upper width limit
Left Margin Result JudgmentEnable/DisablefalseWhether to enable left margin compliance judgment
Minimum Left Margin0.001-1000.05.0Lower left margin width limit
Maximum Left Margin0.001-1000.05.0Upper left margin width limit
Right Margin Result JudgmentEnable/DisablefalseWhether to enable right margin compliance judgment
Minimum Right Margin0.001-1000.05.0Lower right margin width limit
Maximum Right Margin0.001-1000.05.0Upper right margin width limit

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates no warning
MessagestringOutput success, error, or warning messages. Empty if no error or warning.
TimefloatOperator execution time, unit: ms
Glue WidthfloatGlue width
LeftmarginfloatLeft margin
RightmarginfloatRight margin
Error Glue TypestringGlue path error type
DetectionResultgroupGlue detection result

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1Input image is emptyCheck if the IM image is a 2D image or empty
2Insufficient glue path pointsPoint setNumber of glue path points must be greater than 2

Example Introduction

Engineering Design

  1. Select the Load Image tool to load the required 2D image to IM0.

  2. Select the 2D Glue Detection tool.

Tool Usage

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

  2. Move the points to the position to be measured, add judgment points on the glue path.

Result_img

  1. Set the parameters of the glue detection tool.

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

  3. If there are no issues, click Save. Run the operator in the run list, and then view the running results in the corresponding IM.

Result_img

AI-Vision, Making 3D Measurement Easier