halcon 区域特征参数、展示想要的结果图、保存数据到txt
Region特征一览,单一参数获取用region_features (RegionTrans1, 'area', Value)
*获取信息
area_center (RegionTrans1, Area, Row, Column)
*展示结果
dev_clear_window ()
dev_display (image)
dev_set_draw ('margin')
dev_set_color ('blue')
dev_set_line_width (1)
dev_display (RegionTrans1)
gen_cross_contour_xld (Cross, Row, Column, 10, 0)
*保存数据到txt
open_file ('C:/Users/jv/Desktop/新建文本文档.txt', 'append', FileHandle)
* fnew_line (FileHandle)
fwrite_string (FileHandle, Row+' '+Column +'\n')