当前位置:网站首页>Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
2022-07-05 07:55:00 【BoomBiuBiu】
* Many molds are usually etched on the wafer . Before the single track, the mold can be picked up by the mold bonding machine and placed on the lead frame , They have to be cut from the wafer . The mirror mold is used to determine the parameters of the cutting process .
* ad locum , The position of the mirror mold is based on shape matching .
1、 Read the picture
dev_update_off ()
* close window
dev_close_window ()
* Read the picture
read_image (Image, 'wafer/wafer_mirror_dies_01')
* Open the adaptive picture window
dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle)
* Set display font
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
* Set the width of the line
dev_set_line_width (3)
* display picture
dev_display (Image)
disp_message (WindowHandle, 'Determine the position of mirror dies on the wafer', 'window', 12, 12, 'black', 'true')
disp_continue_message (WindowHandle, 'black', 'true')
stop ()
2、 Create a template
* Cutout
gen_rectangle1 (Rectangle, 362, 212, 414, 262)
reduce_domain (Image, Rectangle, ImageReduced)
* Create a template
create_shape_model (ImageReduced, 'auto', rad(0), rad(1), 'auto', 'auto', 'use_polarity', 'auto', 'auto', ModelID)
* Get the outline
get_shape_model_contours (ModelContours, ModelID, 1)

3、 Start matching
* Read the picture and deal with it
* To begin for loop
for Index := 1 to 4 by 1
read_image (Image, 'wafer/wafer_mirror_dies_' + Index$'02')
* Determine the position of the rearview mirror mold , And calculate the running time required to find the location
count_seconds (S1)
* Begin to match
find_shape_model (Image, ModelID, rad(0), rad(1), 0.5, 0, 0.0, 'least_squares', 2, 0.5, Row, Column, Angle, Score)
count_seconds (S2)
Runtime := (S2 - S1) * 1000
* Show results
gen_cross_contour_xld (Cross, Row, Column, 6, rad(45))
dev_display (Image)
dev_display_shape_matching_results (ModelID, 'lime green', Row, Column, Angle, 1, 1, 0)
dev_set_color ('orange')
dev_display (Cross)
disp_message (WindowHandle, |Score| + ' mirror dies located in ' + Runtime$'.1f' + ' ms', 'window', 12, 12, 'black', 'true')
if (Index != 4)
disp_continue_message (WindowHandle, 'black', 'true')
stop ()
endif
endfor

notes : Here is a special operator , Make the results more visible
* Generate a cross shape for each input point XLD outline .
gen_cross_contour_xld (Cross, Row, Column, 6, rad(45))

边栏推荐
- About yolov3, conduct map test directly
- Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
- About the problem that MySQL connector net cannot be cleared in MySQL
- 生产中影响滑环质量的因素
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
- QT's excellent articles
- Embedded AI intelligent technology liquid particle counter
- Global and Chinese market of plastic recycling machines 2022-2028: Research Report on technology, participants, trends, market size and share
- 研究發現,跨境電商客服系統都有這五點功能!
- Altium Designer 19.1.18 - 隐藏某一个网络的飞线
猜你喜欢

MySQL - storage engine

Record the visual shock of the Winter Olympics and the introduction of the screen 2

Package ‘*****‘ has no installation candidate

Embedded AI intelligent technology liquid particle counter

Network port usage

From then on, I understand convolutional neural network (CNN)

Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)

Extended application of single chip microcomputer-06 independent key

High end electronic chips help upgrade traditional oil particle monitoring

Numpy——1.数组的创建
随机推荐
Altium designer 19.1.18 - clear information generated by measuring distance
[popular science] some interesting things that I don't know whether they are useful or not
Record the visual shock of the Winter Olympics and the introduction of the screen 2
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
生产中影响滑环质量的因素
The browser cannot access Baidu
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
RF ride side door processing of prompt box
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
Numpy——1.数组的创建
Numpy——1. Creation of array
The research found that the cross-border e-commerce customer service system has these five functions!
Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
Opendrive arc drawing script
UEFI development learning 4 - getting to know variable services
万字详解八大排序 必读(代码+动图演示)
STM32 learning method
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)