halcon中flush_buffer刷新界面

read_image (Image, 'printer_chip/printer_chip_01')

threshold (Image, Region, 128, 255)
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
set_window_param (WindowHandle, 'flush', 'false')
dev_display (Image)
dev_display (Region)
disp_text (WindowHandle, 'Result of threshold', 'window', \
           12, 12, 'black', [], [])
* nothing is displayed until flush_buffer is called
flush_buffer (WindowHandle)
posted @ 2020-04-05 10:04  QuincyYi  阅读(1034)  评论(0编辑  收藏  举报