1.For a graph, perform multiple matches to find all values similar to the template graph
main idea:
Use Cv2.MatchTemplate and Cv2.Normalize to perform template matching and normalization processing on the image, and then select the best matching value to obtain the corresponding coordinates;
2. The code is as follows:


If there is something wrong, please correct me, thank you!
Let me first introduce the principle of template matching Original image: We expect to find an image that matches the template image Template image: The image to be compared with the template image Mo...
Halcon-template matching based on shape + based on correlation Shape-based template matching Relevance-based template matching Shape-based template matching Run code operation result Relevance-based t...
From:HALCON's shape-based matching template ...
I’m about to take over a halcon project. During this time, I learned halcon related routines at home. I also tried to put the code that runs successfully and share it with you. I hope you all co...
According to the routine mentioned in the previous article, let's implement an example Here is the original picture below Find all the grids 1. Select the area Two, create a template After creation, t...
Original image Create a template Identify in a noisy picture Code: ...
1. Matching process is: create template and matching template, where: Create template: Create ROI through BLOB analysis and processing image, or read ROI to get template image. Then create a template ...
Deformation-based template match First look at the results: The following is the Halcon code, which is generated with a matching assistant. Now it is the coordinates of 61 points on the template, as w...
Requirements: VS2017 or more VCPKG (install OpenCV using VCPKG, otherwise you need to adjust the corresponding content of CMAKELIST) CMAKE latest version opencv 4.3 Algorithm: https://github.com/meiqu...