halcon-SetWindowParam设置窗口特征 在QtCreator中 HObject ho_Image; ReadImage(&ho_Image, "D:/bb/tu/ma.jpg"); HTuple hv_WindowHandle; SetWindowAttr("background_color","black"); OpenWindow(0,700,500,300,0,"visible","",&hv_WindowHandle); HDevWindowStack::Push(hv_WindowHandle); DispObj...
(ho_Image, hv_WindowHandle);//显示ho_Image图像 SetWindowParam(hv_WindowHandle, "window_title", "liming"); //设置窗口特征 //参数1:应修改的属性的名称 // 'background_color' 背景颜色 // 'border_color' 边框颜色 // 'border_width' 边框宽度 // 'window_title' 窗口标题 //参数2:应设置的...
set_window_param (WindowHandle,'graphics_stack','false')***3、打开无形窗口,设置显示参数 open_window (0,0, Width*2, Height*2,0,'buffer','', WindowHandleBuffer) set_color (WindowHandleBuffer,'red') set_draw (WindowHandleBuffer,'margin') set_part (WindowHandleBuffer,0,0, Height -1, ...
set_window_param( : :WindowHandle,Param,Value: ) Description The operatorset_window_paramallows to set different parameters of an open window. General window parameters: 'flush' Enables or disables flushing the contents of the window after the display of every object. If'flush'is set to'false...
4.1 出现Error #5190: HALCON error #5190: Invalid window parameter错误 错误提示如下: 解决办法: SetWindowParam函数需要依赖动态库文件hcanvas.dll,把该库从C:\Program Files\MVTec\HALCON-19.11-Progress\bin\x64-win64拷贝到自己的项目路径lib目录下。
74、ab_timeout', 'image_height', 'image_width', 'port', 'start_column', 'start_row', 'volatile'注意:能够设置的参数不仅仅是上述建议的参数。也可以一次设定多个参数值。例如:set_framegrabber_param (AcqHandle, 'port', Port0)set_framegrabber_param (AcqHandle, 'image_width',' 75、image_heigh...
set_window_attr( : :AttributeName,AttributeValue: ) You may useset_window_attrto set specific characteristics of graphics windows. With it you may modify the following default parameters of a window: 'border_width' Width of the window border in pixels. Is not implemented under Windows. ...
can't be set to 3 if network is specified for number of channels 1 */ #define H_ERR_CNN_INVALID_BATCH_SIZE 7726 /* Device batch size larger than batch size. */ #define H_ERR_CNN_INVALID_PARAM_SPEC 7727 /* Invalid specification of a parameter. */ #define H_ERR_CNN_EXCEEDS...
set_framegrabber_param (AcqHandle, ['image_width','image_height'], [256, \256]) 对DaHengCams能设置的常用额外参数包括: 'adc_level' ---设置A/D转换的级别; 'color_space' ---设置颜色空间 'gain' ---设置相机增益 'grab_timeout' ---设置采集超时终止的时间 ...
大部分的 HALCON frame grabber interface 都可以设定一个逾时限制,可用 set_framegrabber_param 来设定,如果一个取像的动作逾时未完成,则会传回 H_ERR_FGTIMEOUT。 有件重要的事要注意,为了使外部讯号和取像时间一致,相机本身必须要能随时开始撷取新影像...