机器视觉-简单入门小例子

*读入图像
read_image (Image, 'fabrik')
*获取图像大小
get_image_size (Image, Width, Height)
*设置窗口大小
dev_open_window (0, 0, Width, Width, 'black', WindowID)
*设置颜色
dev_set_color ('yellow')
*设置字体
set_display_font (WindowID, 16, 'mono', 'true', 'false')
*设置窗口中图像大小
dev_set_part (0, 0, Width, Height)
*显示图像
dev_display (Image)
*设置字体位置
set_tposition (WindowID, Width/2, Height/2)
*显示字体内容
write_string (WindowID, 'HelloWorld')

猜你喜欢

转载自blog.csdn.net/qq_33392383/article/details/111180407