apply_bead_inspection_model — Inspect beads in an image, as defined by the bead inspection model.
The operator apply_bead_inspection_model applies the bead inspection model BeadInspectionModel to the input Image. The output parameter ErrorSegment indicates the positions of detected errors. The parameter ErrorType indicates the type of the detected errors. For more details on the possible errors, refer to the parameters' description and figures in create_bead_inspection_model. The value of 'ErrorType' can be:
No bead could be detected at this position.
The center of the bead found at this position is further away from the contour than allowed by PositionTolerance.
The bead is thinner than allowed by TargetThickness and ThicknessTolerance.
The bead is thicker than allowed by TargetThickness and ThicknessTolerance.
Values of the generic parameters set through create_bead_inspection_model or set_bead_inspection_param highly affect the inspection results of the same model. For more details on those parameters, please refer to create_bead_inspection_model.
This operator modifies the state of the following input parameter:
Image to apply bead inspection on.
The detected left contour of the beads.
The detected right contour of the beads.
Detected error segments
Handle of the bead inspection model to be used.
Types of detected errors.
The operator apply_bead_inspection_model returns the value 2 (H_MSG_TRUE) if the given parameters are valid and within acceptable range. Otherwise, an exception will be raised.
get_bead_inspection_param, create_bead_inspection_model, set_bead_inspection_param