ContourMode Property
Applies To
Vision Object: Contour
Description
Defines the edge detection method for Contour objects.
Usage
VGet Sequence.Object.ContourMode, var
VSet Sequence.Object.ContourMode, 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 - Blob
- Vision constant: VISION_CONTOURMODE_BLOB
- Use Blob mode.
- 2 - Line
- Vision constant: VISION_CONTOURMODE_LINE
- Use Line mode.
- 3 - Arc
- Vision constant: VISION_CONTOURMODE_ARC
- Use Arc mode.
Default: 1
Remarks
Defines the edge detection method for Contour objects.
- Blob mode
- Detects workpieces in a search window as a blob and outputs its contour. This can be used to retrieve the contour from complex-shaped workpieces.
- Line mode
- Detects edges with multiple edge search lines positioned side by side, and sets these edges as contour points. This can be used to retrieve contours with minimal unevenness along parts of a workpiece.
- Arc mode
- Detects edges with multiple edge search lines positioned radially, and sets these edges as contour points. This can be used to retrieve contours on circular arcs on a workpiece with minimal unevenness.
See Also
Contour Object