Direction属性

适用
视觉对象:ArcFinder, ArcInspector, BoxFinder, Contour, CornerFinder, OCR

说明
指定Edge搜索的方向。(OCR除外)

指定识别目标字符串的方向。(OCR)

用法

VGet Sequence.Object.Direction, var
VSet Sequence.Object.Direction, value
Sequence
序列名或表示序列名的字符串变量
Object
对象名或表示对象名的字符串变量对象必须存在于指定的序列中。
var
表示属性值的整数变量
value
表示新属性值的整数或表达式


  • 1 - InsideOut
    • 视觉常数:VISION_DIRECTION_INSIDEOUT
  • 2 - OutsideIn
    • 视觉常数:VISION_DIRECTION_OUTSIDEIN

默认:1 - InsideOut

详细说明
Direction属性决定ArcFinder、ArcInspector、BoxFinde、CornerFinder和Contour(ContourMode = Arc时)对象的Edge检测方向。

Direction为InsideOut时,将按方向指示器指示的方向搜索Edge。Direction为OutsideIn时,方向指示器与InsideOut相反搜索Edge。

OCR对象用于指定字符串沿着圆弧排列的方向。

如果字符串的上方朝向圆弧的外侧,则可以通过将Direction设置为 “OutsideIn”来识别字符串。反之则设置为“InsideOut”。

在OCR对象中,仅当SearchWinType = Arc时,可以使用此属性。

参照
ArcFinder对象、ArcInspector对象 , BoxFinder对象、Contour对象、CornerFinder对象、OCR对象