在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
《zw版·Halcon-delphi系列原创教程》航母舰载机·视觉定位标志的识别代码 航母舰载机机身上的黄黑圆圈的标志是什么意思,辐射?核动力?战术核弹?
其实opencv版本的也不难,无论是模板匹配(cvMatchTemplate),还是轮廓相似度hu矩匹配( cvMatchShapes),都可以实现 不过,opencv版的代码应该不低于200行,由此可见Halcon的彪悍
1 * This example program shows how to use saddle_points_sub_pix. 2 * 3 read_image (Image, 'landmarks') 4 get_image_size (Image, Width, Height) 5 dev_close_window () 6 dev_open_window (0, 0, Width, Height, 'black', WindowHandle) 7 * 8 * saddle_points_sub_pix works only on single channel images. Thus we have 9 * to convert the input image into a gray value image before using the operator. 10 * 11 rgb1_to_gray (Image, GrayImage) 12 * 13 Sigma := 1.5 14 Threshold := 12 15 saddle_points_sub_pix (GrayImage, 'facet', Sigma, Threshold, Row, Col) 16 gen_cross_contour_xld (Crosses, Row, Col, 12, 0.785398) 17 * 18 dev_display (GrayImage) 19 dev_set_color ('red') 20 dev_display (Crosses)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论