首页 > 技术文章 > halcon中flush_buffer刷新界面

QuincyYi 2020-04-05 10:04 原文

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)

推荐阅读