《Halcon 100项目-7》Halcon检测螺丝

Halcon检测螺丝

read_image (Image20231227135653, 'D:/image/bilibili/photo/屏幕截图 2023-12-27 135653.png')
rgb1_to_gray (Image20231227135653, GrayImage)
draw_circle (200000, Row, Column, Radius)
gen_circle (Circle, Row, Column, Radius)
reduce_domain (GrayImage, Circle, ImageReduced)
* Matching 02: Create the shape model
create_shape_model (ImageReduced, 3, rad(0), rad(360), rad(8.1096), ['none','no_pregeneration'], 'use_polarity', [25,36,4], 4, ModelID)
* 
find_shape_model (GrayImage, ModelID, rad(0), rad(360), 0.83, 15, 0.5, 'least_squares', [3,1], 0.7, Row, Column, Angle, Score)

dev_display_shape_matching_results (ModelID, 'red', Row, Column, Angle, 1, 1, 0)

《Halcon 100项目-7》Halcon检测螺丝_第1张图片

《Halcon 100项目-7》Halcon检测螺丝_第2张图片

你可能感兴趣的:(【halcon】,Halcon)