SearchWinWidth属性
适用
视觉对象:Blob、BoxFinder、CodeReader、ColorMatch、Correlation、Contour、CornerFinder、DefectFinder、Geometric、ImageOp、LineFinder、OCR、Text
说明
定义对象搜索窗口的宽度。
用法
VGet Sequence.Object.SearchWinWidth, var
VSet Sequence.Object.SearchWinWidth, value
- Sequence
- 序列名或表示序列名的字符串变量
- Object
- 对象名或表示对象名的字符串变量对象必须存在于指定的序列中。
- var
- 表示属性值的整数变量
- value
- 表示新属性值的整数或表达式
值
10至视频宽度 - SearchWinLeft的像素单位整数
默认:100
详细说明
带矩形搜索窗口的对象可使用SearchWinWidth属性,用于定义在其中进行搜索的区域。用户在GUI中调整搜索窗口的宽度时,SearchWinWidth属性自动设定。
在某些情况下用户可能需要动态扩大或定位搜索窗口,因此也可以从SPEL+语言设定SearchWinWidth属性。
请勿将SearchWinWidth值设定过大。如果值过大,检测时间将变长,并可能造成错误检测。而且,在Correlation对象及Geometric对象中,无法设定大于4096的值。
参照
Blob对象、CodeReader对象、Correlation对象、DefectFinder对象、Geometric对象、ImageOp对象、LineFinder对象、OCR对象、BoxFinder对象、Contour对象、CornerFinder对象、Text对象、SearchWinHeight属性、SearchWinLeft属性、SearchWinTop属性、Window属性