ModelWinType Property

Applies To
Vision Object: Correlation, Geometric, OCR

Description
Sets / returns the model window type.

Usage

VGet  Sequence.Object.ModelWinType, var
VSet  Sequence.Object.ModelWinType, value
Sequence
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 expression for the new value of the property.

Values
Following integer values representing the model window type

  • 1 - Rectangle
    • Vision constant: VISION_WINTYPE_RECTANGLE
  • 2 - RotatedRectangle
    • Vision constant: VISION_WINTYPE_ROTATEDRECT
  • 3 - Circle
    • Vision constant: VISION_WINTYPE_CIRCLE

Remarks
Sets and returns the model window type. Available values are as follows:

  • 1 - Rectangle: Rectangular model window (angle designation invalid)
  • 2 - RotatedRectangle: Rectangular model window (angle designation valid)
  • 3 - Circle: Circular model window

“3 - Circle” is not available for OCR object.

See Also
ModelWinAngle Property, ModelWinCenterX Property, ModelWinCenterY Property, SearchWinCenterX Property, SearchWinCenterY Property, SearchWinHeight Property, SearchWinWidth Property