具体使用和图像方法参考:https://www.51halcon.com/thread-731-1-1.html
- read_image (Image11, 'C:/Users/Administrator/Desktop/11.bmp')
- draw_rectangle2 (3600, Row, Column, Phi, Length1, Length2)
- gen_rectangle2 (Rectangle, Row, Column, Phi, Length1, Length2)
- peak (Image11, Row, Column, Phi, Length1, Length2, 1, 1, 20, 'all', 'max', EdgeRows, EdgeColumns, ResultRow, ResultColumn)
- gen_cross_contour_xld (Cross, ResultRow, ResultColumn, 6, 0)
复制代码
|