SearchWinTop属性
适用
视觉对象:Blob、BoxFinder、CodeReader、ColorMatch、Contour、CornerFinder、Correlation、DefectFinder、Geometric、ImageOp、LineFinder、OCR、Text
说明
定义对象搜索窗口左上角的Y坐标。
用法
VGet Sequence.Object.SearchWinTop, var
VSet Sequence.Object.SearchWinTop, value
- Sequence
- 序列名或表示序列名的字符串变量
- Object
- 对象名或表示对象名的字符串变量对象必须存在于指定的序列中。
- var
- 表示属性值的整数变量
- value
- 表示新属性值的整数或表达式
值
0至视频高度 - SearchWinHeight的像素单位整数值
详细说明
带矩形搜索窗口的对象可使用SearchWinTop属性,用于定义在其中进行搜索的区域。用户在GUI中拖动搜索窗口时,SearchWinTop属性自动设定。
在某些情况下用户可能需要动态定位搜索窗口,因此也可以从SPEL+语言设定SearchWinTop属性。
参照
Blob对象、CodeReader对象、Correlation对象、DefectFinder对象、Geometric对象、ImageOp对象、LineFinder对象、OCR对象、BoxFinder对象、Contour对象、CornerFinder对象、Text对象、SearchWinHeight属性、SearchWinLeft属性、SearchWinWidth属性、Window属性