日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

模拟查找晶元的位置

發(fā)布時間:2023/12/10 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 模拟查找晶元的位置 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

通過模板匹配找到所有模板位置,并且當單擊某個模板時,選中某個模板

read_image (Image, 'C:/Users/22967/Desktop/晶圓找位置/0.bmp') dev_close_window () dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle) dev_display (Image)* draw_circle (3600, Row, Column, Radius) * gen_circle (Circle, Row, Column, Radius) gen_circle (Circle, 317.5, 423.5, 31.241) reduce_domain (Image, Circle, ImageReduced) create_ncc_model (ImageReduced, 'auto', rad(-45), rad(90), 'auto', 'use_polarity', ModelID) find_ncc_model (Image, ModelID, rad(-45), rad(90), 0.8, 0, 0.5, 'true', 0, Row1, Column1, Angle, Score) disp_circle (WindowHandle, Row1, Column1, Score*25) * Image Acquisition 01: Code generated by Image Acquisition 01 list_files ('C:/Users/22967/Desktop/晶圓找位置', ['files','follow_links'], ImageFiles) tuple_regexp_select (ImageFiles, ['\\.(tif|tiff|gif|bmp|jpg|jpeg|jp2|png|pcx|pgm|ppm|pbm|xwd|ima|hobj)$','ignore_case'], ImageFiles) for Index := 0 to |ImageFiles| - 1 by 1read_image (Image, ImageFiles[Index])find_ncc_model (Image, ModelID, rad(-45), rad(90), 0.8, 0, 0.5, 'true', 0, Row1, Column1, Angle, Score)gen_circle (Circle1, Row1, Column1, Score*25)while (1)dev_display (Image)draw_point (WindowHandle, Row2, Column2)gen_region_points (Region, Row2, Column2)select_shape_proto (Circle1, Region, SelectedRegions, 'overlaps_abs', 1, 5)count_obj (SelectedRegions, Number)if(Number>0)dev_display (Image)dev_display (SelectedRegions)endifwait_seconds (1)endwhilestop ()endfor


運行結(jié)果

總結(jié)

以上是生活随笔為你收集整理的模拟查找晶元的位置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。