Direction Property
Applies To
Vision Objects: ArcFinder, ArcInspector, BoxFinder, Contour, CornerFinder, OCR
Description
Specifies the direction of the Edge search. (for others)
Specifies the direction of the recognition target string. (for OCR)
Usage
VGet Sequence.Object.Direction, var
VSet Sequence.Object.Direction, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
- 1 - InsideOut
- Vision constant: VISION_DIRECTION_INSIDEOUT
- 2 - OutsideIn
- Vision constant: VISION_DIRECTION_OUTSIDEIN
Default: 1 - InsideOut
Remarks
The Direction property determines the edge detection direction for the ArcFinder , ArcInspector, BoxFinder, CornerFinder, and Contour (when ContourMode = Arc) objects.
When Direction is InsideOut, edges are searched in the direction indicated by the Direction Indicator. When Direction is OutsideIn, the Direction Indicator will be opposite to InsideOut and edges are searched.
OCR object is used to specify the direction of characters along an arc.
When the upper part of the character is facing the outside of the arc, set Direction to “OutsideIn” so that the character can be read. In the opposite case, set Direction to “InsideOut”.
For OCR object, this property is only available when SearchWinType = Arc.
See Also
ArcFinder Object, ArcInspector Object , BoxFinder Object, Contour Object, CornerFinder Object, OCR Object