Halcon查找图像中的圆并确定圆心坐标部分代码dev_update_window ('off') dev_close_window () *打开一个原点(左上角)在(0,0)的,宽:高:,黑色背景的图形窗口dev_open_window (0, 512, 'black', WindowID) read_image (Image, 'C:/Users/PC/Desktop/20210918211500906.png') dev_display (Image) set_display_font (WindowID, 22, 'mono', 'true', 'false') disp_continue_message (WindowID, 'black', 'true') stop () threshold (Image, Bright, 90, 255) *画出最小外接矩形shape_trans (Bright, rigontran, 'rectangle2') dev_set_color ('green')