Have you ever used HALCON to inspect a bead of dispensed epoxy or a weld seam? If so, you may have done this using HALCON’s XLD contours. With the release of HALCON 12, MVTec offers you new a tool to solve this task more easily.
HALCON 12’s new bead inspection tool works under the basic idea that you define a reference contour (for example the path along which some adhesive needs to be dispensed) as well as a tolerance for the position and thickness of the dispensed adhesive. This is done by calling:
create_bead_inspection_model (ReferenceContour, TargetWidth, WidthTolerance, PositionTolerance, ‘dark’, [], [], BeadInspectionModel).
The reference contour, which you can import from a CAD file for example, is passed as an XLD. To perform the actual inspection, simply pass the image to the operator:
apply_bead_inspection_model (Image, LeftContour, RightContour, ErrorSegment, BeadInspectionModel, ErrorType)
The operator returns the actual edge of the bead on both sides as well as a separate contour array for segments that do not conform to your spec. In addition, the error classification is returned (bead “too thick/too thin”, “bead missing”, “incorrect position”).