Actual combat | Inductive component positioning--Detailed explanation of Halcon and OpenCV implementation (with source code)

Guided reading

This article will share with you an example of inductive component positioning, with Halcon and OpenCV implementation steps and codes. (Public Number: OpenCV and AI Deep Learning)

Background introduction

    This example comes from the EmguCV student exchange group, and has agreed to use pictures for demonstration.

As shown in the figure above, the coil inductance component is designed to locate the center of the component and then grab it with a manipulator. The accuracy requirement is not very high, but due to the influence of the coil pattern, the matching effect is not very good. Here, the method of Blob analysis is used to locate. The final effect is as follows:

Implementation steps and demonstration

[1] Convert to grayscale image + binarization:

[2] Hole filling (refer to the following historical articles):

Guess you like

Origin blog.csdn.net/stq054188/article/details/123155399