AngleObject Property
Applies To
Vision Objects: ImageOp, Point
Description
Sets what object is used as a reference to determine the object angle.
Usage
VGet Sequence.Object.AngleObject, var
VSet Sequence.Object.AngleObject, 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
- String variable that will contain the value of the property.
- value
- String or string expression for the new value of the property.
Value
"Screen" or the name of the object in front of the object returning Angle results
Default: Screen (default setting when creating an object)
Remarks
For the ImageOp object, use AngleObject together with the Rotate setting of the Operation property to automatically rotate the image according to the Angle result for the object specified in AngleObject.
When specifying an object as the AngleObject, to compensate for the degree of rotation of the object, set the RotationDirection property to "2 - CW".
The resulting angle of the object set for the AngleObject property will be output as the resulting angle for the Point object. For example, if Blob is set as the AngleObject for a Point object, the resulting angle for the Point object will be the resulting angle for the Blob object. If objects set as the AngleObject contain multiple results, the result number to be used can be specified with the AngleObjectResult property.
The following objects can be specified:
Blob, Correlation, Geometric, Polar, Point, Line, CodeReader, Frame, LineFinder, DefectFinder, CornerFinder, BoxFinder, Coordinates
See Also
AngleObjectResult Property, Blob Object, BoxFinder Object, CodeReader Object, Contour Object, Correlation Object, DefectFinder Object, Frame Object, Geometric Object, ImageOp Object, Operation Property, Polar Object, Point Object, RotationAngle Property, RotationDirection Property, Line Object, LineFinder Object