EN
Epson logo
Official user manual

Epson 5

216 pages·2.6 MB·Printer·PDF·ENDEFRITNLJA
Epson 5
Table of Contents 227 sections EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ver.5.3 Properties and Results Reference Rev.1 · PREFACE · FOREWORD · WARRANTY · … ShowHide
EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ver.5.3 Properties and Results Reference Rev.1p.1PREFACEp.3FOREWORDp.4WARRANTYp.4TRADEMARKSp.5TRADEMARK NOTIFICATION IN THIS MANUALp.5NOTICEp.5INQUIRIESp.5SERVICE CENTERp.5MANUFACTURER & SUPPLIERp.6SUPPLIERSp.6SAFETY PRECAUTIONSp.7TABLE OF CONTENTSp.9Vision Properties and Results Reference 1p.9Overview 1p.9Vision Properties and Results Format Description 1p.9Vision Properties and Results Referencep.15Overviewp.15Vision Properties and Results Format Descriptionp.15Ap.16AbortSeqOnFail Propertyp.16Accept Propertyp.17AcquireState Resultp.18AllFound Resultp.19Angle Resultp.20AngleAccuracy Propertyp.21AngleEnable Propertyp.22AngleMaxIncrement Propertyp.23AngleObject Propertyp.24AngleOffset Propertyp.25AngleRange Propertyp.26AngleStart Propertyp.27Area Resultp.28Bp.29BackColor Propertyp.29Cp.30CalComplete Resultp.30Calibration Propertyp.31Camera Propertyp.32CameraGain Propertyp.33CameraOffset Propertyp.34CameraOrientation Propertyp.35CameraX Resultp.36CameraX1 Resultp.37CameraX2 Resultp.38CameraXYU Resultp.39CameraY Resultp.40CameraY1 Resultp.41CameraY2 Resultp.42Caption Propertyp.43CenterPntObjResult Propertyp.44CenterPntOffsetX Propertyp.45CenterPntOffsetY Propertyp.46CenterPointObject Propertyp.47CenterX Propertyp.48CenterY Propertyp.49Compactness Resultp.50Confusion Propertyp.51Contrast Resultp.52ContrastTarget Propertyp.53ContrastVariation Propertyp.54CurrentResult Propertyp.55Dp.57DetailLevel Propertyp.57Ep.58EdgeThreshold Propertyp.58EdgeType Propertyp.59EndPntObjResult Propertyp.60EndPointObject Propertyp.61EndPointType Propertyp.62ExposureTime Propertyp.64Extrema Resultp.65Fp.66Found Resultp.66FoundColor Propertyp.67FoundOnEdge Resultp.68Frame Propertyp.69Gp.70Graphics Propertyp.70Hp.71Holes Resultp.71Ip.72ImageFile Propertyp.72ImageSource Propertyp.73Iterations Propertyp.74Lp.75Lamp Propertyp.75LampDelay Propertyp.76Length Resultp.77LineObject1 Propertyp.78LineObject2 Propertyp.79Mp.80MaxArea Propertyp.80MaxLength Propertyp.81MaxPixelLength Propertyp.82MaxX Resultp.83MaxY Resultp.84MinArea Propertyp.85MinLength Propertyp.86MinMaxArea Propertyp.87MinPixelLength Propertyp.88MinX Resultp.89MinY Resultp.90ModelObject Propertyp.91ModelOK Propertyp.92ModelOrgAutoCenter Propertyp.93ModelOrgX Propertyp.94ModelOrgY Propertyp.95ModelWin Propertyp.96ModelWinHeight Propertyp.97ModelWinLeft Propertyp.98ModelWinTop Propertyp.99ModelWinWidth Propertyp.100Np.102Name Propertyp.102NumberFound Resultp.103NumberToFind Propertyp.105Op.107Operation Propertyp.107OriginAngleEnabled Propertyp.109OriginPntObjResult Propertyp.110OriginPoint Propertyp.111Pp.113Perimeter Resultp.113PixelLength Resultp.114PixelLine Resultp.115PixelX Resultp.116PixelX1 Resultp.117PixelX2 Resultp.118PixelXYU Resultp.119PixelY Resultp.120PixelY1 Resultp.121PixelY2 Resultp.122PointsTaught Propertyp.123PointType Propertyp.124Polarity Propertyp.126Rp.127Radius Propertyp.127RejectOnEdge Propertyp.128ReferenceType Propertyp.129RobotAccel Propertyp.130RobotArm Propertyp.131RobotLocal Propertyp.132RobotSpeed Propertyp.133RobotTool Propertyp.134RobotU Resultp.135RobotX Resultp.136RobotX1 Resultp.137RobotX2 Resultp.138RobotXYU Resultp.139RobotY Resultp.140RobotY1 Resultp.141RobotY2 Resultp.142RotationAngle Propertyp.143Roughness Resultp.144RuntimeAcquire Propertyp.145RuntimeFreeze Propertyp.147Sp.148SaveImage Propertyp.148Scale Resultp.149ScaleEnable Propertyp.150ScaleFactorMax Propertyp.151ScaleFactorMin Propertyp.152ScaleTarget Propertyp.153Score Resultp.154ScoreWeightContrast Propertyp.155ScoreWeightStrength Propertyp.156SearchWidth Propertyp.157SearchWin Propertyp.158SearchWinHeight Propertyp.159SearchWinLeft Propertyp.160SearchWinTop Propertyp.161SearchWinWidth Propertyp.162SeparationAngle Propertyp.163SeparationMinX Propertyp.164SeparationMinY Propertyp.165SeparationScale Propertyp.166SharedEdges Propertyp.167ShowAllResults Resultp.168ShowExtensions Propertyp.169ShowModel Propertyp.170ShowProcessing Propertyp.172SizeToFind Propertyp.173Smoothness Propertyp.174Sort Propertyp.175StartPntObjResult Propertyp.176StartPointObject Propertyp.177StartPointType Propertyp.178Strength Resultp.180StrengthTarget Propertyp.181StrengthVariation Propertyp.182Tp.183TargetSequence Propertyp.183Thickness Propertyp.184ThresholdColor Propertyp.185ThresholdHigh Propertyp.186ThresholdLow Propertyp.187Time Resultp.188Timeout Propertyp.189TotalArea Resultp.190TriggerMode Propertyp.191TwoRefPoints Propertyp.192Up.193UpwardLamp Propertyp.193UpwardSequence Propertyp.194Vp.195VGet Statementp.195VRun Statementp.197VSet Statementp.198Xp.200X Propertyp.200X1 Propertyp.201X2 Propertyp.202XAvgError Resultp.203XMaxError Resultp.204XmmPerPixel Resultp.205XTilt Resultp.206Yp.207Y Propertyp.207Y1 Propertyp.208Y2 Propertyp.209YAxisPntObjResult Propertyp.210YAxisPoint Propertyp.211YAvgError Resultp.213YMaxError Resultp.214YmmPerPixel Resultp.215YTilt Resultp.216
Page 1 of the Epson 5 user manual — Properties and Results Reference
Page 1 · click to enlarge
Page 1
Epson 5 — EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ver.5.3 Properties and Results Reference Rev.1 diagram (page 1)
Fig. 1 · EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ve…

EPSON RC+ 5.0 Option

Ver.5.3

Vision Guide 5.0

Properties and Results Reference

Rev.1 EM08ZR1778F

Page 2 of the Epson 5 user manual — EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ver.5.3 Properties and Results Reference Rev.1
Page 2 · click to enlarge
Page 2

EPSON RC+ 5.0 Option (Ver.5.3) Vision Guide 5.0 Properties and Results Reference Rev.1

Page 3 of the Epson 5 user manual — PREFACE
Page 3 · click to enlarge
Page 3

EPSON RC+ 5.0 Option (Ver.5.3) Vision Guide 5.0 Properties and Results Reference Rev.1

Copyright © 2007-2008 SEIKO EPSON CORPORATION. All rights reserved.

Vision Guide 5.0 Reference (Ver.5.3) Rev.1 i

Page 4 of the Epson 5 user manual — FOREWORD
Page 4 · click to enlarge
Page 4

FOREWORD

Thank you for purchasing our robot products. This manual contains the information necessary for the correct use of the EPSON RC+ software. Please carefully read this manual and other related manuals when using this software. Keep this manual in a handy location for easy access at all times. WARRANTY

The robot and its optional parts are shipped to our customers only after being subjected to the strictest quality controls, tests and inspections to certify its compliance with our high performance standards. Product malfunctions resulting from normal handling or operation will be repaired free of charge during the normal warranty period. (Please ask your Regional Sales Office for warranty period information.) However, customers will be charged for repairs in the following cases (even if they occur during the warranty period):

1. Damage or malfunction caused by improper use which is not described in the manual, or careless use. 2. Malfunctions caused by customers’ unauthorized disassembly. 3. Damage due to improper adjustments or unauthorized repair attempts. 4. Damage caused by natural disasters such as earthquake, flood, etc.
1. If the robot or associated equipment is used outside of the usage conditions and product specifications described in the manuals, this warranty is void. 2. If you do not follow the WARNINGS and CAUTIONS in this manual, we cannot be responsible for any malfunction or accident, even if the result is injury or death. 3. We cannot foresee all possible dangers and consequences. Therefore, this manual cannot warn the user of all possible hazards.

ii Vision Guide 5.0 Reference (Ver.5.3) Rev.1

Page 5 of the Epson 5 user manual — SERVICE CENTER
Page 5 · click to enlarge
Page 5

TRADEMARKS

Microsoft, Windows, Windows logo, Visual Basic, and Visual C++ are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other brand and product names are trademarks or registered trademarks of the respective holders. TRADEMARK NOTIFICATION IN THIS MANUAL

Microsoft® Windows® XP Operating system Microsoft® Windows® Vista Operating system Throughout this manual, Windows XP, and Windows Vista refer to above respective operating systems. In some cases, Windows refers generically to Windows XP, and Windows Vista. NOTICE

No part of this manual may be copied or reproduced without authorization. The contents of this manual are subject to change without notice. Please notify us if you should find any errors in this manual or if you have any comments regarding its contents. INQUIRIES

Contact the following service center for robot repairs, inspections or adjustments. If service center information is not indicated below, please contact the supplier office for your region. Please prepare the following items before you contact us.

- Your controller model and its serial number

- Your manipulator model and its serial number

- Software and its version in your robot system

- A description of the problem

SERVICE CENTER

Vision Guide 5.0 Reference (Ver.5.3) Rev.1 iii

Page 6 of the Epson 5 user manual — SEIKO EPSON CORPORATION
Page 6 · click to enlarge
Page 6

MANUFACTURER & SUPPLIER

SEIKO EPSON CORPORATION

Suwa Minami Plant Factory Automation Systems Dept. 1010 Fujimi, Fujimi-machi, Suwa-gun, Nagano, 399-0295 JAPAN TEL : +81-(0)266-61-1802 FAX : +81-(0)266-61-1846 SUPPLIERS

North & South America EPSON AMERICA, INC. Factory Automation/Robotics 18300 Central Avenue Carson, CA 90746 USA TEL : +1-562-290-5900 FAX : +1-562-290-5999 E-MAIL : info@robots.epson.com Europe EPSON DEUTSCHLAND GmbH Factory Automation Division Otto-Hahn-Str.4 D-40670 Meerbusch Germany TEL : +49-(0)-2159-538-1391 FAX : +49-(0)-2159-538-3170 E-MAIL : robot.info[email protected]

iv Vision Guide 5.0 Reference (Ver.5.3) Rev.1

Japan & Others

Page 7 of the Epson 5 user manual — SAFETY PRECAUTIONS
Page 7 · click to enlarge
Page 7

SAFETY PRECAUTIONS

Installation of robots and robotic equipment should only be performed by qualified personnel in accordance with national and local codes. Please carefully read this manual and other related manuals when using this software. Keep this manual in a handy location for easy access at all times.

WARNING„ This symbol indicates that a danger of possible serious injury or death exists if the associated instructions are not followed properly. CAUTION„ This symbol indicates that a danger of possible harm to people or physical damage to equipment and facilities exists if the associated instructions are not followed properly. NOTE )„ The “NOTE” sections describe important information to be followed for operating the Robot system.

Vision Guide 5.0 Reference (Ver.5.3) Rev.1 v

Page 8 of the Epson 5 user manual — SAFETY PRECAUTIONS
Page 8 · click to enlarge
Page 8

vi Vision Guide 5.0 Reference (Ver.5.3) Rev.1

Page 9 of the Epson 5 user manual — Table of Contents
Page 9 · Contents
Contents

Contents

EM08ZR1778F EPSON RC+ 5.0 Option Vision Guide 5.0 Ver.5.3 Properties and Results Reference Rev.1p.1PREFACEp.3FOREWORDp.4WARRANTYp.4TRADEMARKSp.5TRADEMARK NOTIFICATION IN THIS MANUALp.5NOTICEp.5INQUIRIESp.5SERVICE CENTERp.5MANUFACTURER & SUPPLIERp.6SUPPLIERSp.6SAFETY PRECAUTIONSp.7TABLE OF CONTENTSp.9Vision Properties and Results Reference 1p.9Overview 1p.9Vision Properties and Results Format Description 1p.9Vision Properties and Results Referencep.15Overviewp.15Vision Properties and Results Format Descriptionp.15Ap.16AbortSeqOnFail Propertyp.16Accept Propertyp.17AcquireState Resultp.18AllFound Resultp.19Angle Resultp.20AngleAccuracy Propertyp.21AngleEnable Propertyp.22AngleMaxIncrement Propertyp.23AngleObject Propertyp.24AngleOffset Propertyp.25AngleRange Propertyp.26AngleStart Propertyp.27Area Resultp.28Bp.29BackColor Propertyp.29Cp.30CalComplete Resultp.30Calibration Propertyp.31Camera Propertyp.32CameraGain Propertyp.33CameraOffset Propertyp.34CameraOrientation Propertyp.35CameraX Resultp.36CameraX1 Resultp.37CameraX2 Resultp.38CameraXYU Resultp.39CameraY Resultp.40CameraY1 Resultp.41CameraY2 Resultp.42Caption Propertyp.43CenterPntObjResult Propertyp.44CenterPntOffsetX Propertyp.45CenterPntOffsetY Propertyp.46CenterPointObject Propertyp.47CenterX Propertyp.48CenterY Propertyp.49Compactness Resultp.50Confusion Propertyp.51Contrast Resultp.52ContrastTarget Propertyp.53ContrastVariation Propertyp.54CurrentResult Propertyp.55Dp.57DetailLevel Propertyp.57Ep.58EdgeThreshold Propertyp.58EdgeType Propertyp.59EndPntObjResult Propertyp.60EndPointObject Propertyp.61EndPointType Propertyp.62ExposureTime Propertyp.64Extrema Resultp.65Fp.66Found Resultp.66FoundColor Propertyp.67FoundOnEdge Resultp.68Frame Propertyp.69Gp.70Graphics Propertyp.70Hp.71Holes Resultp.71Ip.72ImageFile Propertyp.72ImageSource Propertyp.73Iterations Propertyp.74Lp.75Lamp Propertyp.75LampDelay Propertyp.76Length Resultp.77LineObject1 Propertyp.78LineObject2 Propertyp.79Mp.80MaxArea Propertyp.80MaxLength Propertyp.81MaxPixelLength Propertyp.82MaxX Resultp.83MaxY Resultp.84MinArea Propertyp.85MinLength Propertyp.86MinMaxArea Propertyp.87MinPixelLength Propertyp.88MinX Resultp.89MinY Resultp.90ModelObject Propertyp.91ModelOK Propertyp.92ModelOrgAutoCenter Propertyp.93ModelOrgX Propertyp.94ModelOrgY Propertyp.95ModelWin Propertyp.96ModelWinHeight Propertyp.97ModelWinLeft Propertyp.98ModelWinTop Propertyp.99ModelWinWidth Propertyp.100Np.102Name Propertyp.102NumberFound Resultp.103NumberToFind Propertyp.105Op.107Operation Propertyp.107OriginAngleEnabled Propertyp.109OriginPntObjResult Propertyp.110OriginPoint Propertyp.111Pp.113Perimeter Resultp.113PixelLength Resultp.114PixelLine Resultp.115PixelX Resultp.116PixelX1 Resultp.117PixelX2 Resultp.118PixelXYU Resultp.119PixelY Resultp.120PixelY1 Resultp.121PixelY2 Resultp.122PointsTaught Propertyp.123PointType Propertyp.124Polarity Propertyp.126Rp.127Radius Propertyp.127RejectOnEdge Propertyp.128ReferenceType Propertyp.129RobotAccel Propertyp.130RobotArm Propertyp.131RobotLocal Propertyp.132RobotSpeed Propertyp.133RobotTool Propertyp.134RobotU Resultp.135RobotX Resultp.136RobotX1 Resultp.137RobotX2 Resultp.138RobotXYU Resultp.139RobotY Resultp.140RobotY1 Resultp.141RobotY2 Resultp.142RotationAngle Propertyp.143Roughness Resultp.144RuntimeAcquire Propertyp.145RuntimeFreeze Propertyp.147Sp.148SaveImage Propertyp.148Scale Resultp.149ScaleEnable Propertyp.150ScaleFactorMax Propertyp.151ScaleFactorMin Propertyp.152ScaleTarget Propertyp.153Score Resultp.154ScoreWeightContrast Propertyp.155ScoreWeightStrength Propertyp.156SearchWidth Propertyp.157SearchWin Propertyp.158SearchWinHeight Propertyp.159SearchWinLeft Propertyp.160SearchWinTop Propertyp.161SearchWinWidth Propertyp.162SeparationAngle Propertyp.163SeparationMinX Propertyp.164SeparationMinY Propertyp.165SeparationScale Propertyp.166SharedEdges Propertyp.167ShowAllResults Resultp.168ShowExtensions Propertyp.169ShowModel Propertyp.170ShowProcessing Propertyp.172SizeToFind Propertyp.173Smoothness Propertyp.174Sort Propertyp.175StartPntObjResult Propertyp.176StartPointObject Propertyp.177StartPointType Propertyp.178Strength Resultp.180StrengthTarget Propertyp.181StrengthVariation Propertyp.182Tp.183TargetSequence Propertyp.183Thickness Propertyp.184ThresholdColor Propertyp.185ThresholdHigh Propertyp.186ThresholdLow Propertyp.187Time Resultp.188Timeout Propertyp.189TotalArea Resultp.190TriggerMode Propertyp.191TwoRefPoints Propertyp.192Up.193UpwardLamp Propertyp.193UpwardSequence Propertyp.194Vp.195VGet Statementp.195VRun Statementp.197VSet Statementp.198Xp.200X Propertyp.200X1 Propertyp.201X2 Propertyp.202XAvgError Resultp.203XMaxError Resultp.204XmmPerPixel Resultp.205XTilt Resultp.206Yp.207Y Propertyp.207Y1 Propertyp.208Y2 Propertyp.209YAxisPntObjResult Propertyp.210YAxisPoint Propertyp.211YAvgError Resultp.213YMaxError Resultp.214YmmPerPixel Resultp.215YTilt Resultp.216
Page 15 of the Epson 5 user manual — Vision Properties and Results Format Description
Page 15 · click to enlarge
Page 15

Vision Properties and Results Reference

Overview

This reference manual explains all Vision Guide sequence, object, and calibration properties and results, and all Vision Guide SPEL+ commands. For more information on how to use Vision Guide, refer to the Vision Guide manual.

Vision Properties and Results Format Description

All Vision Guide properties and results are listed in the pages that follow. An explanation of the headings for the property and result reference pages is given below:

Applies To If the property or result is used with vision objects, then this section simply lists the vision objects for which this property applies. (Ex. Blob, Correlation, Polar...)

If the property or result is used with vision sequences then the words Vision Sequence will appear in this section.

If the property or result is used with vision calibration then the words Vision Calibration will appear in this section.

Description A simple description is given for each property or result. This section is normally very short for simplicity.

Usage The Usage Section describes how to access the property or result from the SPEL+ Language.

Values Describes the range of acceptable values which the property can be set to or which the result will return. A default value is also shown for those properties that have a default.

Remarks Explains more details than the Description Section. This section is normally used to describe any caveats or special information that may apply to the specific property or result. (It is highly recommended to read the Remarks Section for each property prior to its usage.)

See Also Gives a list of related properties, results, vision objects and other topics that may prove useful to review.

Runtime only This is displayed under the property or result name when it applies. Runtime

only properties and results cannot be accessed from the Vision Guide GUI. They can only be accessed from the SPEL+ language or from VB Guide.

Page 16 of the Epson 5 user manual — AbortSeqOnFail Property
Page 16 · click to enlarge
Page 16

AbortSeqOnFail Property

Vision ObjectsBlob, Geometric, Correlation, Edge, Freame, Line, Point, Polar

Allows the user to specify that if an object fails (i.e. is not found), then the entire sequence is aborted at that point and no further objects are processed.

VGet Sequence.Object.AbortSeqOnFail, var

VSet Sequence.Object.AbortSeqOnFail, 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 Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Does not cause the sequence to abort when the object is not found.

True Causes the sequence to abort when the object is not found.

DefaultFalse

Use AbortSeqOnFail when you no longer want a sequence to continue if an object is not found.

Blob Object, Correlation Object, Edge Object, Frame Object, Geometric Object, Line Object, Point Object, Polar Object, Object Tab

AbortSeqOnFail Property

Page 17 of the Epson 5 user manual — Accept Property
Page 17 · click to enlarge
Page 17

Accept Property

Vision ObjectsCorrelation, Edge, Geometric, Polar

The Accept property specifies the score that a feature must equal or exceed to be considered found.

VGet Sequence.Object.Accept, var

VSet Sequence.Object.Accept, 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.

Integer number from 1 - 999

Default700 - Correlation, Geometric, Polar
100. Edge

The Accept property can also affect the searching speed by providing a hint as to when to pursue the search in a given area of the Region of Interest. When the Accept property is high, features must be very similar to the model, so many regions can be ruled out by a cursory examination and not pursued further. However, if the Accept property is low, features that are only slightly similar to the model may exceed the Accept property, so that a detailed examination of more regions in the scene is needed. Thus, raising the Accept property tends to reduce the time required for searches.

If the specified value is small, it may result in false detection.

Confusion Property, Correlation Object, Edge Object, Geometric Object, Object Tab, Polar Object, Score Result

Accept Property

Page 18 of the Epson 5 user manual — AcquireState Result
Page 18 · click to enlarge
Page 18

AcquireState Result

The AcquireState result is used determine if a picture has been taken for a sequence whose RuntimeAcquire property has been set to Strobed.

VGet Sequence.AcquireState, var

Sequence Name of a sequence or string variable containing a sequence name.

var Integer variable that will contain the value of the result.

0 Picture has not been taken, strobe has not yet fired.

3 Picture has been taken.

After calling VRun for a strobed sequence, the SPEL+ program must wait for the AcquireState to become 3 before further vision processing can continue.

Object Tab, RunTimeAcquire Property

AcquireState Result · Runtime only · Vision Sequence

Page 19 of the Epson 5 user manual — AllFound Result
Page 19 · click to enlarge
Page 19

AllFound Result

The AllFound result returns whether or not all objects within the specified sequence were found.

VGet Sequence.AllFound, var

Sequence Name of a sequence or string variable containing a sequence name.

var Boolean variable that will contain the value of the result.

False One of the objects within the sequence was not found.

True All objects within the sequence were found.

The AllFound result is useful to determine that all objects within a specified sequence are found. This result applies to sequences only and will not be found in object results.

Found Result, Sequence Tab, Time Result, Vision Sequences

AllFound Result · Vision Sequence

Page 20 of the Epson 5 user manual — Angle Result
Page 20 · click to enlarge
Page 20

Angle Result

Vision ObjectsBlob, Correlation, Frame, Geometric, Line, Polar

Returns the angle of the found object.

VGet Sequence.Object.Angle[(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in degrees

Blob− 90 to 90 degree Others : 0 to 360 degree

The Angle result returns the found part's angle in the image coordinate system. In some cases, you may want to use a Polar object to determine angle because it can be faster and more accurate.

For the Angle result, the following statistics are available. AngleMax, AngleMean, AngleMin, AngleRange, AngleStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

AngleEnable Property, AngleMaxIncrement Property, AngleOffset Property, AngleTolerance Property, Blob Object, Correlation Object, Geometric Object, Line Object, Object Tab, Polar Object, RobotU Result

Angle Result · Statistics

Page 21 of the Epson 5 user manual — NOTE
Page 21 · click to enlarge
Page 21

AngleAccuracy Property

Vision ObjectsCorrelation

Specifies the accuracy of a correlation search with rotation.

VGet Sequence.Object.AngleAccuracy, var

VSet Sequence.Object.AngleAccuracy, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number in degrees from 0.1 - 10

Default1

The AngleAccuracy property is used at model training time and not at run-time. This value specifies the desired accuracy for angle search.

The Correlation model must be taught after a new value for the AngleAccuracy property is set in order for the new setting to take affect. If you teach a Correlation Model, then later set the AngleAccuracy property to a new value, and then try to run that Correlation object, it will not search with the new angle accuracy. You must re-teach the Correlation Model with the AngleEnable property set to True, and with the new value for the AngleAccuracy property in order for Correlation search with angle to use the new AngleAccuracy property value. )

NOTE

AngleMaxIncrement Property, AngleRange Property, Angle Result, Correlation Object, Object Tab

AngleAccuracy Property

Page 22 of the Epson 5 user manual — NOTE
Page 22 · click to enlarge
Page 22

AngleEnable Property

Vision ObjectsCorrelation, Geometric

Specifies whether or not a correlation or geometric object will search for rotation of a feature.

VGet Sequence.Object.AngleEnable, var

VSet Sequence.Object.AngleEnable, 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 Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Do not search for rotation.

True Search for rotation.

DefaultFalse

The AngleRange and AngleMaxIncrement properties will not be used with the correlation or geometric search object if the AngleEnable property is set to False.

It should be noted that while correlation with angle is normally able to find rotated parts, the correlation search time usually increase significantly. This is why correlation with angle is most useful for finding parts which rotate only slightly. The Polar object however, is normally very fast and can be used in conjunction with the Correlation object for a powerful and fast combination. (See the sections on Correlation or Polar Searching for more information.)

The Correlation Model must be taught after the AngleEnable property is set to True. If you teach a Correlation Model, then set the AngleEnable property to True, and then try to run that Correlation object, it will not search with angle. You must re-teach the Correlation Model with the AngleEnable property set to True in order for Correlation search with angle to work properly. You must also have the proper settings for the AngleMaxIncrement and AngleRange Properties prior to teaching the new Model as well. )

NOTE

AngleMaxIncrement Property, AngleRange Property, Angle Result, Correlation Object, Geometric Object, Object Tab

AngleEnable Property

Page 23 of the Epson 5 user manual — NOTE
Page 23 · click to enlarge
Page 23

AngleMaxIncrement Property

Vision ObjectsCorrelation

The AngleMaxIncrement property specifies the maximum angle increment amount for teaching a correlation model for searching with angle. The model training function selects an angular increment automatically and then uses the smaller of the automatically selected increment and the maximum angle increment defined by the AngleMaxIncrement property.

VGet Sequence.Object.AngleMaxIncrement, var

VSet Sequence.Object.AngleMaxIncrement, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number in degrees from 1 - 45

Default1

Before reading anything else about the AngleMaxIncrement property it should be noted that the Correlation Model must be taught after a new value for the AngleMaxIncrement property is set in order for those settings to take affect. If you teach a Correlation Model, then later set the AngleMaxIncrement property to a new value, and then try to run that Correlation object, it will not search with the new angle increment. You must re-teach the Correlation Model with the AngleEnable property set to True, and with the new value for the AngleMaxIncrement property in order for Correlation search with angle to use the new AngleMaxIncrement property value. You must also have the proper settings for the AngleRange property prior to teaching the new Model as well.

NOTE

)

If you wish to measure angle precisely, you should provide a maximum angle increment corresponding to the degree of precision you desire. You should keep in mind, however, that the smaller the angle increment, the more storage will be required for the model and the slower the search time will be.

It should be noted that while correlation with angle is normally able to find rotated parts, the correlation search time usually increase significantly. This is why correlation with angle is most useful for finding parts which rotate only slightly. The Polar object however, is normally very fast and can be used in conjunction with a Correlation object for a powerful and fast combination. (See the sections on Correlation or Polar Searching for more information.)

Angle Result, AngleEnable Property, AngleRange Property, Correlation Object, Object Tab

AngleMaxIncrement Property

Page 24 of the Epson 5 user manual — AngleObject Property
Page 24 · click to enlarge
Page 24

AngleObject Property

Vision ObjectsImageOp

Sets / returns the object to be used to determine the angle of rotation for the ImageOp object Rotate operation.

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 expression for the new value of the property.

Screen, or the name of an object whose step number is prior to the step number of the ImageOp object and returns an Angle result.

DefaultScreen

Use AngleObject together with the Rotate setting of the Operation property to automatically rotate the image according to the Angle result of the AngleObject.

The following objects can be used:

Blob, Correlation, Geometric, Polar, Frame

ImageOp Object, Operation Property, RotationAngle Property

AngleObject Property

Page 25 of the Epson 5 user manual — AngleOffset Property
Page 25 · click to enlarge
Page 25

AngleOffset Property

Vision ObjectsPolar

An angle value which is used as an offset to line up the Polar Search direction indicator (graphic line on the image display) with the part since it is virtually impossible and normally impractical to teach a polar object with the proper rotation of a part so that the direction lines up with the part.

VGet Sequence.Object.AngleOffset, var

VSet Sequence.Object.AngleOffset, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number in degrees from 0 - 360

Default0

The AngleOffset is provided to allow the Polar object's graphic direction indicator to line up with a specific area on a part. The graphic direction indicator is normally set at the default position for the polar object which is 0 degrees (at 3 O'clock). The rotation for the AngleOffset property is then defined in a counter clockwise direction.

Object Tab, Polar Object

AngleOffset Property

Page 26 of the Epson 5 user manual — )
Page 26 · click to enlarge
Page 26

AngleRange Property

Vision ObjectsCorrelation, Geometric

Specifies the range within which to train a series of rotated models.

VGet Sequence.Object.AngleRange, var

VSet Sequence.Object.AngleRange, 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.

Integer number in degrees from 0 - 180

Default180

NOTE

Before reading anything else about the AngleRange property it should be noted that the Correlation Model must be taught after a new value for the AngleRange property is set in order for those settings to take affect. If you teach a Correlation Model, then later set the AngleRange property to a new value, and then try to run that Correlation object, it will not search with the new angle range. You must re-teach the Correlation Model with the AngleEnable property set to True, and with the new value for the AngleRange property in order for Correlation search with angle to use the new AngleRange property value. You must also have the proper settings for the AngleMaxIncrement property prior to teaching the new Model as well.

)

The AngleRange property is must be set before teaching the model. This value specifies the range within which to train a series of rotated models. For example, if the AngleRange property is set to 5, then when the model is trained, a set of models is actually trained within +/- 5 degrees of the current model position. These models are then used when a correlation search with angle is specified.

It should be noted that using correlation with angle will generally cause the correlation time to increase significantly. This is why correlation with angle is normally used for small angle increments only. The Polar object however, is normally very fast and can be used in conjunction with the Correlation object for a powerful and fast combination. (See the sections on Correlation or Polar Searching in the Vision Guide Manual for more information.)

Specify a small value for the setting. If the value is large, the detection time gets longer and may result in false detection.

Angle Result, AngleEnable Property, AngleMaxIncrement Property, Correlation Object, Geometric Object, Object Tab

AngleRange Property

Page 27 of the Epson 5 user manual — AngleStart Property
Page 27 · click to enlarge
Page 27

AngleStart Property

Vision ObjectsCorrelation, Geometric

Sets / returns the starting search angle.

VGet Sequence.Object.AngleStart, var

VSet Sequence.Object.AngleStart, 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.

Integer number in degrees from 0 - 360

Default0

Use AngleStart to set the starting search angle. This property is only valid when AngleEnable is set to True. The system will search for the model starting with AngleStart using the AngleRange property. For example, if AngleStart is 45 degrees and AngleRange is 10 degrees, then the system will search from 35 to 55 degrees.

Angle Result, AngleEnable Property, AngleMaxIncrement Property, AngleRange Property, Correlation Object, Geometric Object, Object Tab

AngleStart Property

Page 28 of the Epson 5 user manual — Area Result
Page 28 · click to enlarge
Page 28

Area Result

Vision ObjectsBlob

Returns the area of a blob.

VGet Sequence.Object.Area[(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult.

Real number in pixels from 1 to searchWinWidth x searchWinHeight

The Area result is the total area of the blob (in pixels). The area measurement may have a fractional component.

For the Area result, the following statistics are available. AreaMax, AreaMean, AreaMin, AreaStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Blob Object, MaxArea Property, MinArea Property, MinMaxArea Property, Object Tab

Area Result · Statistics

Page 29 of the Epson 5 user manual — BackColor Property
Page 29 · click to enlarge
Page 29

BackColor Property

Vision ObjectsAll

Sets the background color for an object's label.

VGet Sequence.Object.BackColor, var

VSet Sequence.Object.BackColor, 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.

0. None
1. Black
2. White

With some images, it is difficult to read the label because of the video background. Use BackColor to make the label easier to read.

BackColor Property · FoundColor Property

Page 30 of the Epson 5 user manual — CalComplete Result
Page 30 · click to enlarge
Page 30

CalComplete Result

Returns the completion status of a calibration.

VGet Calibration.CalComplete, var

Calibration Name of a calibration or string variable containing a calibration name.

var Boolean variable that will contain the value of the result.

False Calibration has not been completed.

True Calibration has been completed.

Use CalComplete to determine if a calibration has been completed successfully.

CalComplete Result · Vision Calibration · PointsTaught Property

Page 31 of the Epson 5 user manual — Calibration Property
Page 31 · click to enlarge
Page 31

Calibration Property

Sets / returns the calibration used with the specified sequence.

VGet Sequence.Calibration, var

VSet Sequence.Calibration, value

Sequence Name of a sequence or string variable containing a sequence name.

var String variable that will contain the value of the property.

value Name of a calibration or string expression containing a calibration name.

String value of up to 16 characters containing the name of the calibration

Calibration is required for most vision applications to calculate the proper results for the robot coordinate system and camera coordinate system. The Calibration property associates a previously defined calibration with the specified vision sequence. All calibrations which have been completed previously will appear in the Sequence Tab Calibration property which allows the user to select which calibration to use for this sequence.

It should be noted that each vision sequence may have only 1 calibration defined at a time. However, if you want to run a sequence with different calibrations, you can set the Calibration property for the sequence at runtime prior to initiating the sequence. For example, you can run the sequence test with calibration calib1 and then later run the sequence test with calibration calib2 as follows:

VSet test.Calibration, calib1 VRUN test VSet test.Calibration, calib2 VRUN test

Calibration Details, Sequence Tab, Vision Sequences

Calibration Property · Vision Sequence

Page 32 of the Epson 5 user manual — Camera Property
Page 32 · click to enlarge
Page 32

Camera Property

Specifies which camera to use for a vision sequence or calibration.

VGet {Sequence | Calibration}.Camera, var

VSet {Sequence | Calibration}.Camera, value

Sequence Name of a sequence or string variable containing a sequence name.

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 1-8.

Default1

One camera may be associated with a vision sequence or calibration at a time.

For sequences, the camera number must be selected before executing VRun.

For calibrations, the camera number must match the camera number of the calibration target sequence.

The following example shows how to use different cameras with the same vision sequence. We will set the Camera property prior to executing the vision sequence called FINDMARK.

Function test #define CAMERA1 1 #define CAMERA2 2 VSet findmark.Camera, CAMERA1 VRun findmark 'Get any info req'd from 1st sequence here (i.e. VGet findmark.xxx.xxx) VSet findmark.Camera, CAMERA2 VRun findmark 'Get any info req'd from 2nd sequence here (i.e. VGet findmark.xxx.xxx) Fend

CameraGain Property, CameraOffset Property, Sequence Tab, Vision Sequences

Show 4 more labels / short text on this page
Camera Property · Vision Sequence · Vision Calibration · Example
Page 33 of the Epson 5 user manual — CameraGain Property
Page 33 · click to enlarge
Page 33

CameraGain Property

Specifies the gain settings for the camera used in the current sequence. The gain determines the dynamic range of the digital values that will be assigned to the video signal in the A/D converter on the camera. (Also known as Contrast.)

VGet Sequence.CameraGain, var

VSet Sequence.CameraGain, value

Sequence Name of a sequence or string variable containing a sequence name.

var Integer variable that will contain the value of the property.

Integer value from 0 - 255

Default80

Adjust the value of the CameraGain property when you want to change the contrast of an acquisition. The CameraGain property can have values in the range of 0-255, with lower values representing higher gain in the analog section.

The CameraGain property is normally left at a value of 80. Setting too high or low CameraGain property value may cause improper vision processing.

Camera Property, CameraOffset Property, Sequence Tab, Vision Sequences

CameraGain Property · Vision Sequence

Page 34 of the Epson 5 user manual — CameraOffset Property
Page 34 · click to enlarge
Page 34

CameraOffset Property

Specifies the offset for the camera used in the current sequence. The offset is the lower limit of the digital values that will be assigned to the video signal in the A/D converter. (Also known as Brightness.)

VGet Sequence.CameraOffset, var

VSet Sequence.CameraOffset, value

Sequence Name of a sequence or string variable containing a sequence name.

var Integer variable that will contain the value of the property.

Integer value from 0 - 255

Default0

The CameraOffset property is normally left at a value of 0.

Change the CameraOffset property when you want to change the brightness of an acquisition. Adjusting the CameraOffset property allows you to select the lower and upper limits (saturation points) at which differentiation of assigned digital values begins and ends. Due to variations in camera components, the lowest digital values that can be converted may not be precisely 0, but will be close to 0. All signal voltages that exceed the upper limit of the dynamic range are assigned the highest digital value possible.

Camera Property, CameraGain Property, Sequence Tab, Vision Sequences

CameraOffset Property · Vision Sequence

Page 35 of the Epson 5 user manual — CameraOrientation Property
Page 35 · click to enlarge
Page 35

CameraOrientation Property

Sets / returns the CameraOrientation type for the specified calibration.

VGet Calibration.CameraOrientation, var

VSet Calibration.CameraOrientation, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

1. Standalone
2. Fixed Downward
3. Fixed Upward
4. Mobile on J2
5. Mobile on J4
6. Mobile on J5
7. Mobile on J6
Default1

The CameraOrientation property must be set before teaching calibration points.

Camera Property, CameraGain Property, Sequence Tab, Vision Sequences

CameraOrientation Property · Vision Calibration

Page 36 of the Epson 5 user manual — CameraX Result
Page 36 · click to enlarge
Page 36

CameraX Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the X position coordinate of the found part's position in the camera coordinate frame.

VGet Sequence.Object.CameraX [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in millimeters.

The CameraX result is always in millimeters in the camera coordinate system.

It should be noted that the CameraX result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraX result, an error will occur.

For the CameraX result, the following statistics are available. CameraXMax, CameraXMean, CameraXMin, CameraXStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle result, Blob Object, CameraY result, CameraXYU result, Correlation Object, Edge Object, Found result, Geometric Object, Object Tab, Point Object, Polar Object, RobotX result

CameraX Result · Statistics

Page 37 of the Epson 5 user manual — CameraX1 Result
Page 37 · click to enlarge
Page 37

CameraX1 Result

Vision ObjectsLine

Returns the starting point position (X1) of a Line object in Camera coordinates.

VGet Sequence.Object.CameraX1, var

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 Real variable that will contain the value of the result.

The value returned for the CameraX1 result depends upon the calibration used for the camera. Values are always returned in millimeters.

Every line must have a starting point and ending point. The CameraX1 and CameraX2 results represent the X coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (CameraX1, CameraY1) and (CameraX2, CameraY2) coordinate pairs can actually be Camera coordinate positions which match the CameraX and CameraY results for other vision objects. (In other words if a Line Object's starting point is defined by a Correlation object, then the (CameraX, CameraY) results from the Correlation object will match the (CameraX1, CameraY1) results for the Line object.)

It should be noted that the CameraX1 result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraX1 result, an error will occur.

Angle Result, CameraX2 Result, CameraY1 Result, CameraY2 Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, RobotX Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

CameraX1 Result

Page 38 of the Epson 5 user manual — CameraX2 Result
Page 38 · click to enlarge
Page 38

CameraX2 Result

Vision ObjectsLine

Returns the end point position (X2) of a Line object in Camera coordinates.

VGet Sequence.Object.CameraX2, var

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 Real variable that will contain the value of the result.

The value returned for the CameraX2 result depends upon the calibration used for the camera. Values are always returned in millimeters.

Every line must have a starting point and ending point. The CameraX1 and CameraX2 results represent the X coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (CameraX1, CameraY1) and (CameraX2, CameraY2) coordinate pairs can actually be Camera coordinate positions which match the CameraX and CameraY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (CameraX, CameraY) results from the Correlation object will match the (CameraX1, CameraY1) results for the Line object.)

It should be noted that the CameraX2 result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraX2 result, an error will occur.

Angle Result, CameraX1 Result, CameraY1 Result, CameraY2 Result, Line Object, Object Tab, PixelX Result, PixelX2 Result, RobotX Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

CameraX2 Result

Page 39 of the Epson 5 user manual — CameraXYU Result
Page 39 · click to enlarge
Page 39

CameraXYU Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the CameraX, CameraY and Angle position coordinates of the found part's position in the camera coordinate frame.

VGet Sequence.Object.CameraXYU [(result)], found, xVar, yVar, uVar

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.

found Boolean variable representing whether or not the part you are looking for was found.

xVar Real variable that will contain the X coordinate position of the part.

yVar Real variable that will contain the Y coordinate position of the part.

uVar Real variable that will contain the angular position (rotation) of the part with respect to the camera coordinate system

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

found Boolean value which is either True or False

xVar Real number in millimeters

yVar Real number in millimeters

uVar Real number in degrees

The xVar and yVar values are returned in millimeters since the Camera Coordinate Frame is calibrated in millimeters. The uVar value is returned in degrees.

It should be noted that the CameraXYU result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraXYU result, an error will occur.

The CameraXYU result is available at runtime only.

Angle Result, Blob Object, CameraX Result, CameraY Result, Correlation Object, Edge Object, Found Result, Point Object, Polar Object, RobotXYU Result

CameraXYU Result · Runtime Only

Page 40 of the Epson 5 user manual — CameraY Result
Page 40 · click to enlarge
Page 40

CameraY Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the Y position coordinate of the found part's position in the camera coordinate frame.

VGet Sequence.Object.CameraY [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in millimeters

The CameraY result is always in millimeters in the camera coordinate system.

It should be noted that the CameraY result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraY result, an error will occur.

For the CameraY result, the following statistics are available. CameraYMax, CameraYMean, CameraYMin, CameraYStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, Blob Object, CameraX Result, CameraXYU Result, Correlation Object, Edge Object, Found Result, Geometric Object, Point Object, Polar Object, RobotXYU Result, RobotY Result

CameraY Result · Statistics

Page 41 of the Epson 5 user manual — CameraY1 Result
Page 41 · click to enlarge
Page 41

CameraY1 Result

Vision ObjectsLine

Returns the starting point position Y coordinate (Y1) of a Line object in Camera coordinates.

VGet Sequence.Object.CameraY1, var

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 Real variable that will contain the value of the result.

Real number in millimeters

Every line must have a starting point and ending point. The CameraY1 and CameraY2 results represent the Y coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (CameraX1, CameraY1) and (CameraX2, CameraY2) coordinate pairs can actually be Camera coordinate positions which match the CameraX and CameraY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (CameraX, CameraY) results from the Correlation object will match the (CameraX1, CameraY1) results for the Line object.)

It should be noted that the CameraY1 result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraY1 result, an error will occur.

Angle Result, CameraX1 Result, CameraX2 Result, CameraY2 Result, Line Object, Object Tab, PixelX Result, PixelY2 Result, RobotY Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

CameraY1 Result

Page 42 of the Epson 5 user manual — CameraY2 Result
Page 42 · click to enlarge
Page 42

CameraY2 Result

Vision ObjectsLine

Returns the ending point position (Y2) of a Line object in Camera coordinates.

VGet Sequence.Object.CameraY2, var

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 Real variable that will contain the value of the result.

The value returned for the CameraY2 result depends upon the calibration used for the camera. Values are always returned in millimeters.

Every line must have a starting point and ending point. The CameraY1 and CameraY2 results represent the Y coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (CameraX1, CameraY1) and (CameraX2, CameraY2) coordinate pairs can actually be Camera coordinate positions which match the CameraX and CameraY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (CameraX, CameraY) results from the Correlation object will match the (CameraX1, CameraY1) results for the Line object.)

It should be noted that the CameraY2 result can only be calculated for vision sequences which have been associated with a calibration. If no calibration has been assigned to the vision sequence then if VGet is used to retrieve the CameraY2 result, an error will occur.

Angle Result, CameraX1 Result, CameraX2 Result, CameraY1 Result, Line Object, Object Tab, PixelX Result, PixelY2 Result, RobotY Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

CameraY2 Result

Page 43 of the Epson 5 user manual — Caption Property
Page 43 · click to enlarge
Page 43

Caption Property

Vision ObjectsAll

Sets or returns the caption of the object.

VGet Sequence.Object.Caption, var

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

String of 16 characters or less. Any alphanumeric or the following punctuation characters are allowed.

‘ _ ( ) * & $ # @ . : \ / < > “ Default: Empty string

The Caption property allows you to assign a meaningful label to the vision object. By default, the Caption property is an empty string, and the name of the object will be used as its label.

Blob Object, Correlation Object, Edge Object, Frame Object, Geometric Object, ImageOp Object, Line Object, Object Tab, Point Object, Polar Object

Caption Property

Page 44 of the Epson 5 user manual — CenterPntObjResult Property
Page 44 · click to enlarge
Page 44

CenterPntObjResult Property

Vision ObjectsBlob, Correlation, Geometric, Polar

Specifies which result to use from the CenterPointObject.

VGet Sequence.Object.CenterPntObjResult, var

VSet Sequence.Object.CenterPntObjResult, 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.

The value can range from 1 to the NumberToFind value for the CenterPointObject. If the CenterPointObject is 'Screen', then the value is always 1.

CenterPntObjResult enables you to attach several objects to the results of one CenterPointObject. For example, you could create a blob object with NumberToFind set to 4. Then you could attach a polar object to each one of the results by specifying the blob for the CenterPointObject of each polar and a different CenterPntObjResult for each polar.

CenterPointObject Property, CenterX Property, CenterY Property, Object Tab

CenterPntObjResult Property

Page 45 of the Epson 5 user manual — CenterPntOffsetX Property
Page 45 · click to enlarge
Page 45

CenterPntOffsetX Property

Vision ObjectsBlob, Correlation, Geometric, Polar

Sets or returns the X offset of the center of the search window after it is positioned with the CenterPointObject.

VGet Sequence.Object.CenterPntOffsetX, var

VSet Sequence.Object.CenterPntOffsetX, 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.

Integer in pixels. If the search window would not be positioned within the video image as a result of the value, then the search window will not be re-positioned and the object will be marked as not found.

Default0

The CenterPntOffsetX property can be used to shift a search window that has been positioned by a CenterPointObject.

If CenterPointObject property is set to None, then CenterPntOffsetX has no effect.

CenterPointObject, CenterPntOffsetY, Object Tab

CenterPntOffsetX Property

Page 46 of the Epson 5 user manual — CenterPntOffsetY Property
Page 46 · click to enlarge
Page 46

CenterPntOffsetY Property

Vision ObjectsBlob, Correlation, Geometric, Polar

Sets or returns the Y offset of the center of the search window after it is positioned with the CenterPointObject.

VGet Sequence.Object.CenterPntOffsetY, var

VSet Sequence.Object.CenterPntOffsetY, 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.

Integer in pixels. If the search window would not be positioned within the video image as a result of the value, then the search window will not be re-positioned and the object will be marked as not found.

Default0

The CenterPntOffsetY property can be used to shift a search window that has been positioned by a CenterPointObject.

If CenterPointObject property is set to None, then CenterPntOffsetY has no effect.

CenterPointObject, CenterPntOffsetX, Object Tab

CenterPntOffsetY Property

Page 47 of the Epson 5 user manual — CenterPointObject Property
Page 47 · click to enlarge
Page 47

CenterPointObject Property

Vision ObjectsBlob, Correlation, Geometric, Polar

Specifies the object whose position is used as the center for the specified object.

VGet Sequence.Object.CenterPointObject, var

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

Name of a vision object or screen.

DefaultScreen

The CenterPointObject is based on the resulting coordinate position of an object which is executed prior to the specified object.

When teaching an object which has the CenterPointObject set to something other than Screen, the vision object defined as CenterPointObject is executed first and the resulting position (PixelX and PixelY) is used to position the object before it is taught. In order for the current object to be found in the future also requires that the vision object defined as the CenterPointObject is found so that the center of the current object can be based on the PixelX and PixelY positions for that object.

Blob Object, CenterX Property, CenterY Property, Correlation Object, Geometric Object, Object Tab, Polar Object

CenterPointObject Property

Page 48 of the Epson 5 user manual — CenterX Property
Page 48 · click to enlarge
Page 48

CenterX Property

Vision ObjectsPolar

Specifies the X Coordinate position to be used as the center point for the Polar object.

VGet Sequence.Object.CenterX, var

VSet Sequence.Object.CenterX, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number from 0 – (video width in pixels – 1). However, we must take into account the value of the Radius property for the Polar object since the center of the Polar object cannot be at the edge of the Camera's field of view. Therefore, the actual range is:

(0 + Radius) - (Max Camera X Resolution – Radius – 1)

For example, an image resolution of (640x480) and a 16 pixel radius gives a range of 16 - 623.

DefaultX coordinate screen position of the center of the Polar object

This property is filled in automatically when the CenterPointObject property for a Polar object is set to another vision object. However, if the CenterPointObject property for a Polar object is set to Screen, then the user may set the CenterX property to position the Polar object.

The user may also set the CenterPointObject property for a Polar object automatically by physically dragging the Polar object to a new position on the screen. When this drag operation is done, the CenterX property is automatically updated with the new CenterX position of the Polar object.

CenterY Property, CenterPoint Property, Object Tab, Polar Object

CenterX Property

Page 49 of the Epson 5 user manual — CenterY Property
Page 49 · click to enlarge
Page 49

CenterY Property

Vision ObjectsPolar

Specifies the Y Coordinate position to be used as the center point for the Polar object.

VGet Sequence.Object.CenterY, var

VSet Sequence.Object.CenterY, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number from 1 – (video width in pixels – 1). However, we must take into account the value of the Radius property for the Polar object since the center of the Polar object cannot be at the edge of the Camera's field of view. Therefore, the actual range is:

(0 + Radius) - (Max Camera Y Resolution – Radius – 1)

For example, an image resolution of 640x480 and a 16 pixel radius gives a range of 16 - 463.

DefaultY coordinate Screen Position of the center of the Polar object

This property is filled in automatically when the CenterPointObject property for a Polar object is set to another vision object. However, if the CenterPointObject property for a Polar object is set to Screen, then the user may set the CenterY property to position the Polar object.

The user may also set the CenterPointObject property for a Polar object automatically by physically dragging the Polar object to a new position on the screen. When this drag operation is done, the CenterY property is automatically updated with the new CenterY position of the Polar object.

CenterX Property, CenterPoint, Object Tab, Polar Object

CenterY Property

Page 50 of the Epson 5 user manual — Compactness Result
Page 50 · click to enlarge
Page 50

Compactness Result

Vision ObjectsBlob

Returns the compactness of a blob.

VGet Sequence.Object.Compactness [(result)], var

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 Real variable that will contain the value of the result.

result Optional integer result number from 1 to the NumberToFind property. If omitted, the result number is the CurrentResult

Minimum value is 1.0.

Compactness is a measure of how close all particles in a blob are from one another. It is derived from the perimeter and area. A circular blob is most compact and is defined to have a compactness measure of 1.0 (the minimum). More convoluted shapes have larger values.

Holes Result, Object Tab, Perimeter Result, Roughness Result

Compactness Result

Page 51 of the Epson 5 user manual — Confusion Property
Page 51 · click to enlarge
Page 51

Confusion Property

Vision ObjectsCorrelation, Geometric, Polar

Indicates the amount of confusion expected in the image to be searched. This is the highest shape score a feature can get that is not an instance of the feature for which you are searching. (i.e. Will there be patterns in the image which will "confuse" the searching algorithms? To what level?)

VGet Sequence.Object.Confusion, var

VSet Sequence.Object.Confusion, 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.

Integer number from 1-999 with the higher numbers representing a higher confusion in an image.

Default800

Both the Confusion property and the Accept property affect searching and pattern finding speed. The Confusion property allows the system to quit the Correlation Search or Polar Search before exploring all possible regions of the image, thus speeding up the process.

Set the Confusion property based on the highest value you expect the "wrong part" to get (plus a margin for error). The Confusion property should be greater than or equal to the Accept property. Setting the Confusion property to a high value may increase the time of the search, but may be necessary to insure that the correct features are found.

The Confusion property becomes very important when there are multiple features within an image which are very similar. In these cases the proper setting of the Confusion property (i.e. at a high enough level) helps eliminate the wrong features from the Correlation Search, or Polar Search. However, when an image has few features which look the same then the Confusion property can be set a little lower. This can help reduce processing time.

Accept Property, Correlation Object, Geometric Object, Object Tab, Polar Object, Score Result

Confusion Property

Page 52 of the Epson 5 user manual — Contrast Result
Page 52 · click to enlarge
Page 52

Contrast Result

Vision ObjectsEdge

Returns the contrast of the found Edge.

VGet Sequence.Object.Contrast, var

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 Real variable that will contain the value of the result.

Real number from 0 - 255

Contrast is the difference in grayscale values between an edge and its background. Contrast can help find weaker edges. First, find the edge you want to search for and record the contrast value. Next, set the ContrastTarget property to this value. Then set the ScoreWeightContrast to a higher value that ScoreWeightStrength. This tells the Edge object to look for an edge with the desired contrast and base the score on it.

ContrastTarget Property, ContrastVariation Property, Edge Object

Contrast Result

Page 53 of the Epson 5 user manual — ContrastTarget Property
Page 53 · click to enlarge
Page 53

ContrastTarget Property

Vision ObjectsEdge

Sets the desired contrast for the edge search.

VGet Sequence.Object.ContrastTarget, var

VSet Sequence.Object.ContrastTarget, 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.

0. 255
Default0 (any contrast)

ContrastTarget is the desired difference in grayscale values between an edge and its background. Use ContrastTarget to find weaker edges or edges at an angle. First, find the edge you want to search for and record the Contrast result value. You may have to temoparily change the Edge object position to find it. Next, set the ContrastTarget property to this value. Then set the ScoreWeightContrast to a higher value then ScoreWeightStrength. This tells the Edge object to look for an edge with the desired contrast and base the score on it.

Contrast Result, ContrastVariation Property, Edge Object

ContrastTarget Property

Page 54 of the Epson 5 user manual — ContrastVariation Property
Page 54 · click to enlarge
Page 54

ContrastVariation Property

Vision ObjectsEdge

ContrastVariation is the tolerance for the ContrastTarget property.

VGet Sequence.Object.ContrastVariation, var

VSet Sequence.Object.ContrastVariation, 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.

Integer number from 0 - 255

Default0 (any variation)

Use ContrastVariation to tighten the search for the edge with contrast of ContrastTarget.

Contrast Result, ContrastTarget Property, Edge Object

ContrastVariation Property

Page 55 of the Epson 5 user manual — CurrentResult Property
Page 55 · click to enlarge
Page 55

CurrentResult Property

Vision ObjectsBlob, Correlation, Edge, Geometric

Defines which result to display in the Results list on the Object tab or which result to return data for when an object searches for multiple results.

VGet Sequence.Object.CurrentResult, var

VSet Sequence.Object.CurrentResult, 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.

Integer number from 1 - NumberToFind property value.

Default1

Blob, Correlation, Edge, and Geometric objects support finding multiple results. The CurrentResult property defines which result to work with.

When you are only trying to find 1 result (as defined by the NumberToFind property), the CurrentResult property is automatically set to 1 since there is only 1 possible result to return.

When working with the Vision Guide window, you will also notice that the Results list on the Object tab will display a heading like "Result (1 of 15)". This means that the system tried to find 15 features (as defined by the NumberToFind property) and the Results list will display the results for item 1.

If you want to see the results for one of the other results, just change the CurrentResult property value to indicate which result you want to examine.

Results are ordered according to the Sort property setting.

Blob Object, Correlation Object, Edge Object, Found Result, Geometric Object, NumberFound Result, NumberToFind Property, Object Tab, Sort Property

CurrentResult Property

Page 56 of the Epson 5 user manual — CurrentResult Property
Page 56 · click to enlarge
Page 56

The following SPEL+ language example runs a vision sequence called "mtest" which contains a Blob object called "Blob01". "Blob01" has been defined to find multiple blobs (3) from within a single Search Window. (i.e. mtest.Blob01.NumberToFind = 3)

The following program will run the sequence and make sure that the proper number of features (3) was found for "Blob01" and then print the Area for each result.

Function main #define NUM_TO_FIND 3 Integer foundCount, area VRun mtest VGet mtest.Blob01.NumberFound, foundCount If foundCount = NUM_TO_FIND Then Print "The correct number of blobs were found" Else Print "Only (", found, ") blobs were found" EndIf VSet mtest.Blob01.CurrentResult, 1 VGet mtest.BLOB01.Area, area Print "1st blob area =", area, "pixels" VSet mtest.Blob01.CurrentResult, 2 VGet mtest.Blob01.Area, area Print "2nd blob area =", area, "pixels" VSet mtest.Blob01.CurrentResult, 3 VGet mtest.Blob01.Area, area Print "3rd blob area =", area, "pixels" Fend

CurrentResult Property · Example

Page 57 of the Epson 5 user manual — DetailLevel Property
Page 57 · click to enlarge
Page 57

DetailLevel Property

Selects the level at which an edge is considered found during the geometric search.

VGet Sequence.Object.DetailLevel, var

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.

1. Medium
2. High
3. Very High
Default1 - Medium

The DetailLevel property determines what is considered an edge during the search. Edges are defined by the transition in grayscale value between adjacent pixels. The default level (Medium) offers a robust detection of active edges from images with contrast variation, noise, and non-uniform illumination. Nevertheless, in cases where objects of interest have a very low contrast compared to high contrast areas in the image, some low contrast edges can be missed.

If your images contain low-contrast objects, a detail level setting of High should be used to ensure the detection of all important edges in the image. The Very High setting performs an exhaustive edge extraction, including very low contrast edges. However, it should be noted that this mode is very sensitive to noise.

The Smoothness property also affects how edges are extracted.

Geometric Object, Smoothness Property

DetailLevel Property · Geometric

Page 58 of the Epson 5 user manual — EdgeThreshold Property
Page 58 · click to enlarge
Page 58

EdgeThreshold Property

Vision ObjectsEdge

Sets the threshold percentage for which edges with grayscale variation below this value are ignored.

VGet Sequence.Object.EdgeThreshold, var

VSet Sequence.Object.EdgeThreshold, 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.

Integer number from 1 - 100%

Default2

Use EdgeThreshold to reject edges along the search path with smaller grayscale variations. During an edge search, the image in the search area is projected into one line of pixels. Each pixel in the projection is a summation of all the pixels in the same column of the search area. An edge value is determined for each pixel in the projection. The EdgeThreshold rejects edges values below the setting.

Edge Object, Strength Result, StrengthTarget Property, StrengthVariation Property

EdgeThreshold Property

Page 59 of the Epson 5 user manual — EdgeType Property
Page 59 · click to enlarge
Page 59

EdgeType Property

Vision ObjectsEdge

Sets / gets the type of edge to search for.

VGet Sequence.Object.EdgeType, var

VSet Sequence.Object.EdgeType, 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.

1. Single
2. Pair
Default1

Use EdgeType to choose whether to search for a single edge or an edge pair. An edge pair is two opposing edges. The coordinate of the pair is the midpoint of the line between the two edge coordinates.

EdgeType Property · Edge Object

Page 60 of the Epson 5 user manual — EndPntObjResult Property
Page 60 · click to enlarge
Page 60

EndPntObjResult Property

Vision ObjectsEdge, Line

Specifies which result to use from the EndPointObject.

VGet Sequence.Object.EndPntObjResult, var

VSet Sequence.Object.EndPntObjResult, 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.

The value can range from 1 to the NumberToFind value for the EndPointObject. If the EndPointObject is 'Screen', then the value is always 1.

EndPntObjResult enables you to attach several objects to the results of one EndPointObject. For example, you could create a blob object with NumberToFind set to 4. Then you could attach a line object to each one of the results by specifying the blob for the EndPointObject of each line and a different EndPntObjResult for each line.

Edge Object, EndPointObject Property, Line Object, Object Tab, StartPntObjResult Property

EndPntObjResult Property

Page 61 of the Epson 5 user manual — EndPointObject Property
Page 61 · click to enlarge
Page 61

EndPointObject Property

Vision ObjectsEdge, Line

Specifies the vision object to use for the end point of a Line object.

VGet Sequence.Object.EndPointObject, var

VSet Sequence.Object.EndPointObject, 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 expression for the new value of the property. Valid vision objects for the EndPointObject property are: Blob, Correlation, Edge, Geometric, Line, and Point objects. The Screen may also be used as the EndPointObject.

Screen or any object that runs prior to the Line object.

When a Line object is first created, the EndPointObject property is set to Screen. However, Line objects are normally attached to other vision objects. This is the purpose of the StartPointObject and EndPointObject properties. Through these two properties the user can define a line between any two vision objects (except Frames).

Frame objects cannot be used to define an end point for a Line object. However, this does not cause a limitation because Frames are defined by other vision objects. In those cases where you want to define a line end point with a Frame object, use a Point object in the frame to define the end point of the Line object.

It is important to note that for each specific vision sequence, only those vision objects which are executed prior to the Line object in the vision sequence steps will be available to use as an EndPointObject.

Edge Object, EndPointType Property, Line Object, Object Tab, StartPointObject Property

EndPointObject Property

Page 62 of the Epson 5 user manual — NOTE
Page 62 · click to enlarge
Page 62

EndPointType Property

Vision ObjectsEdge, Line

Specifies the type of end point to use for the line object. In most cases the end point type will be a point (which usually means the PixelX and PixelY position of the EndPointObject). However, when the EndPointObject for the current line is a 2nd Line object, the EndPointType property is used to define an intersection point on the 2nd line such as the lines midpoint, endpoint, startpoint or perpendicular position.

VGet Sequence.Object.EndPointType, var

VSet Sequence.Object.EndPointType, 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.

EndPointObject = Screen, Blob, Correlation, Geometric, Edge, or Point object

See remarks.

0. Point
Default2 - MidPoint

When used with objects other than the Line object, the EndPointType can only be of type Point.

Default0 - Point Remarks

As you can see in the Values Table above, most of the EndPointObject's support only 1 EndPointType called Point. This is because most EndPointObject's use the PixelX and PixelY position for a reference position for defining a Start or End Point for a line. So when the EndPointObject is defined as Screen, Blob, Correlation, Edge, or Point, the EndPointType will always be set to 0 - Point. )

NOTE

The range of valid values for EndPointType depend upon the EndPointObject.

However, when the EndPointObject is another Line object, the user must decide where on the 2nd line to intersect with the 1st line. The choices are as follows:

1. EndPoint Use the end point of the other line as the endpoint for this line.
2. MidPoint Cut the other line in half and use the center (or midpoint of the other line as the endpoint for this line.
3. Perpendicular Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion and use this position as the end point.
4. StartPoint Use the starting point of the other line as the end point for this line.
5. PerpToStartPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the start point of the first line and use this position as the end point.

EndPointType Property · EndPointObject = Line

Page 63 of the Epson 5 user manual — EndPointType Property
Page 63 · click to enlarge
Page 63
6. PerpToMidPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the mid point of the first line and use this position as the end point.
7. PerpToEndPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the end point of the first line and use this position as the end point.

If the EndPointObject is modified to a Line object then the EndPointType is automatically changed to MidPoint.

If the EndPointObject is modified to Screen or Blob, Correlation, Edge, or Point object then the EndPointType is automatically changed to 0 - Point.

Edge Object, EndPointObject Property, Line Object, Object Tab, StartPointType Property

EndPointType Property

Page 64 of the Epson 5 user manual — ExposureTime Property
Page 64 · click to enlarge
Page 64

ExposureTime Property

Sets the electronic shutter time for a camera that is running in asynchronous reset mode.

VGet Sequence.ExposureTime, var

VSet Sequence.ExposureTime, value

Sequence Name of a sequence or string variable containing a sequence name.

var Long variable that will contain the value of the property.

value Long expression for the new value of the property.

Long value in microseconds.

Default0 (microsecond)

When RuntimeAcquire is Stationary and ExposureTime = 0, the camera acquires images in Next Frame mode. When the sequence runs, the camera waits for the next valid frame, then acquires the image. CameraGain and CameraOffset settings are used. Typical image acquire time is from 33 to 66 ms for SC300 series.

When RuntimeAcquire is Stationary and ExposureTime is > 0, the camera acquires images in async reset mode. When the sequence runs, the camera sensor is exposed for the ExposureTime, then the image is acquired. CameraGain and CameraOffset settings are not used. Typical image acquire time is 33 ms + Exposure time.

When RuntimeAcquire is Strobed, ExposureTime must be > 0, and the camera acquires images in async reset mode. After the hardware trigger input is received, the camera sensor is exposed for the ExposureTime, then the image is acquired. CameraGain and CameraOffset settings are not used. Typical image acquire time is 33 ms + Exposure time.

RuntimeAcquire Property, CameraGain Property, CameraOffset Property, Sequence Tab

ExposureTime Property · Vision Sequences

Page 65 of the Epson 5 user manual — Extrema Result
Page 65 · click to enlarge
Page 65

Extrema Result

Vision ObjectsBlob

Returns the blob extrema coordinates.

VGet Sequence.Object.Extrema [(result)], varMinX, varMaxX, varMinY, varMaxY

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.

varMinX Real variable containing minimum X position of the blob's Extrema.

varMaxX Real variable containing maximum X position of the blob's Extrema.

varMinY Real variable containing minimum Y position of the blob's Extrema.

varMaxY Real variable containing maximum Y position of the blob's Extrema.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

The values returned are always in pixels and may be from 1 - video height.

The MinX, MaxX, MinY, and MaxY results together define a blob's smallest enclosing rectangle that is aligned with the coordinate axes and completely encloses the blob. This rectangle is known as the extrema. The Extrema result enables you to retrieve all four coordinates in one command.

The Extrema value can be fractional. For example, 100.5 would be between the 100 and 101 pixels.

Area Result, MinX Result, MaxX Result, MaxY Result, MinY Result, Object Tab

Extrema Result · Runtime only

Page 66 of the Epson 5 user manual — Found Result
Page 66 · click to enlarge
Page 66

Found Result

Vision ObjectsBlob, Correlation, Edge, Frame, Geometric, Line, Point, Polar

Returns whether or not the object was found.

VGet Sequence.Object.Found [(result)], var

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 Boolean variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

False The part was not found

True The part was found

The Found result simply returns whether or not the part or the current object is looking for was found. For example, and Edge Object returns whether or not an Edge was found and a Correlation object returns whether or not an image was found which matches the taught model.

The Found result is also included with the RobotXYU, and CameraXYU results to reduce the number of function calls required to move the robot to pick up parts when they are found.

Blob Object, CameraXYU Result, Correlation Object, CurrentResult Property, Edge Object, FoundOnEdge Result, Frame Object, Geometric Object, Line Object, NumberFound Result, NumberToFind Property, Object Tab, Point Object, Polar Object, RobotXYU Result, Score Result

Found Result

Page 67 of the Epson 5 user manual — FoundColor Property
Page 67 · click to enlarge
Page 67

FoundColor Property

Vision ObjectsAll

Selects the color for an object when it is found.

VGet Sequence.Object.FoundColor, var

VSet Sequence.Object.FoundColor, 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.

1. Light Green If this object is found, show it in Light Green
2. Dark Green If this object is found, show it in Dark Green

You can set the FoundColor property to show an object that is found in Light Green, or Dark Green. In a bright image, the Dark Green could be easier to see, whereas in a darker image, the Light Green would be easier to see.

Graphics Property, Found Result

FoundColor Property

Page 68 of the Epson 5 user manual — NOTE
Page 68 · click to enlarge
Page 68

FoundOnEdge Result

Vision ObjectsBlob, Correlation, Geometric

Returns True when a Blob, Correlation, or Geometric object is found too close to the edge of the search window.

VGet Sequence.Object.FoundOnEdge [(result)], var

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 Boolean variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult.Used for objects that return multiple results.

False The part was not found at the edge of the search window

True The part was found at the edge of the search window

The FoundOnEdge result is a special status which works only with the Blob, Correlation, and Geometric objects. It tells the user why a specific Blob, Correlation, or Geometric object is not Found.

Sometimes the Vision System tries to report that a Blob, Correlation, or Geometric object was found even though part of the object may be located outside of the Field of View. Rather than report these objects as Found, Vision Guide returns False for the Found result when a Blob, Correlation, or Geometric object is found but part of the object is outside of the Search Window.

If you want to reject a part when FoundOnEdge is True, set the RejectOnEdge property to True.

There will be cases where you will use a Correlation object and the Found result continues to return False even though the Score result for the object is well below the Accept property. In these situations, check the FoundOnEdge result and RejectOnEdge property. This will tell you that the part was in fact found by the Vision System but that Vision Guide will not return the results because the part or object is outside of the Field of View when the picture was taken. )

NOTE

Blob Object, Correlation Object, Found Result, Geometric Object, Object Tab, RejectOnEdge Property, Score Result

FoundOnEdge Result

Page 69 of the Epson 5 user manual — Frame Property
Page 69 · click to enlarge
Page 69

Frame Property

Vision ObjectsBlob, Correlation, Edge, Geometric, ImageOp, Line, Point, Polar

Defines the current object searching position with respect to the specified frame.

VGet Sequence.Object.Frame, var

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

Any Frame object which is located prior to the current vision object in the Object Execution Step List can be specified as the Frame property value.

DefaultNone

The Frame property is very useful for aligning objects to specific positions which respect to other objects found positions. For more details see the Frame object explanation in Vision Objects.

Vision objects can use any Frame objects which have been defined as long as the associated Frame object is located before the vision object in the Object Execution Step List. )

Blob Object, Correlation Object, Edge Object, Frame Object, Geometric Object, Line Object, Object Tab, Point Object, Polar Object

Frame Property

Page 70 of the Epson 5 user manual — NOTE
Page 70 · click to enlarge
Page 70

Graphics Property

Vision ObjectsAll

Specifies which graphics to display at runtime and design time. (i.e. Whether to show graphics for each object, just position information, or nothing at all.) This property can help remove screen clutter from complex vision sequences.

VGet Sequence.Object.Graphics, var

VSet Sequence.Object.Graphics, 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.

1. All Display object labels, line references, and found position
2. Position Only Display found position only
3. None Don't display any graphics at run time

While graphics such as vision object Labels (which show vision object names), lines, Search Windows, and found position crosshairs are very useful they can get in the way if too many are displayed at the same time. The Graphics property helps eliminate unnecessary clutter on the Vision Guide Development, Run or Operator Windows by removing those graphics from objects which the designer specifies.

The Graphics property is used to define the graphics display characteristics for each vision object. These will normally be set to values which, when combined with the Graphics Properties of other vision objects, will help reduce screen display clutter. The Graphics property is normally used to set the graphics characteristics exactly as you would like your final vision solution to display graphics on the Run or Operator Window.

The Graphics property settings for all vision objects can be overridden with the Force All Graphics On and Force Labels Off Vision Guide toolbar buttons.

It is important to point out that the Graphics property settings apply in both runtime and design modes. (i.e. the Run Window, Operator Window, and Vision Guide Window) This is done to ensure that the graphics display is always the same regardless of if you run a sequence from the Vision Guide Window or from a program. )

NOTE

Blob Object, Correlation Object, Edge Object, Frame Object, Geometric Object, ImageOp Object, Line Object, Object Tab, Point Object, Polar Object

Graphics Property

Page 71 of the Epson 5 user manual — Holes Result
Page 71 · click to enlarge
Page 71

Holes Result

Vision ObjectsBlob

Returns the number of holes found within a Blob object.

VGet Sequence.Object.Holes [(result)], var

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 result.

result Optional integer result number from 1 to the NumberToFind property. If omitted, the result number is the CurrentResult

Valid values are zero to the number of holes found.

A hole is a blob with opposite polarity located within the blob that was found. Holes that intersect the edge of the blob are not counted.

Compactness Result, Object Tab, Perimeter Result, Roughness Result

Holes Result

Page 72 of the Epson 5 user manual — ImageFile Property
Page 72 · click to enlarge
Page 72

ImageFile Property

Sets or returns the image file for the current sequence.

Use the ImageFile property to view and search images stored on disk with the SaveImage property.

Sequence Tab, Vision Sequences, SaveImage Property, ImageSource Property

ImageFile Property · Designtime only · Vision Sequence

Page 73 of the Epson 5 user manual — ImageSource Property
Page 73 · click to enlarge
Page 73

ImageSource Property

Sets or returns the current image source for the sequence.

ImageSource allows you to run a sequence from a camera image or from an image file set with the ImageFile property.

If the ImageFile property is set to a valid image file, then the ImageSource property will automatically be set to 2 - File.

Sequence Tab, Vision Sequences, ImageFile Property

ImageSource Property · Designtime only · Vision Sequence

Page 74 of the Epson 5 user manual — Iterations Property
Page 74 · click to enlarge
Page 74

Iterations Property

Vision ObjectsImageOp

Sets/returns how many times to execute the image operation.

VGet Sequence.Object.Iterations, var

VSet Sequence.Object.Iterations, 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.

The Iterations property affects the following ImageOp operations:

Open, Close, Erode, Dilate, Smooth, Sharpen1, Sharpen2, Thin, Thicken.

ImageOp Object, Operation Property

Iterations Property

Page 75 of the Epson 5 user manual — Lamp Property
Page 75 · click to enlarge
Page 75

Lamp Property

Sets / returns the output bit used for the calibration lamp.

VGet Calibration.Lamp, var

VSet Calibration.Lamp, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value of a valid standard output bit.

Use the Lamp property to automatically turn on a lamp for calibration. Use the LampDelay property to allow time for a lamp to turn on before calibration continues.

LampDelay Property, UpwardLamp Property

Lamp Property · Vision Calibration

Page 76 of the Epson 5 user manual — LampDelay Property
Page 76 · click to enlarge
Page 76

LampDelay Property

Sets / returns the amount of time to wait for a calibration lamp to turn on.

VGet Calibration.LampDelay, var

VSet Calibration.LampDelay, value

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number in seconds

Use the LampDelay property to allow time for a lamp to turn on before calibration continues. This is especially useful for flourescent lamps.

Lamp Property, UpwardLamp Property

LampDelay Property · Vision Calibration

Page 77 of the Epson 5 user manual — Length Result
Page 77 · click to enlarge
Page 77

Length Result

Vision ObjectsLine

Returns a length in millimeters of the distance between the starting and ending point of the line.

VGet Sequence.Object.Length, var

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 result.

The value returned is always in millimeters and may be from 0 on up. This real number represents the length of the line and depends upon calibration in order to return a value.

The Length result can only be returned if calibration has been performed because the length is measured in millimeters. This calibration can be done with or without the robot.

The Length result can be used for inspection and measurement applications where measurements are required. (For example, to measure spark plug gaps.)

Calibration, Line Object, Object Tab, PixelLength Result

Length Result

Page 78 of the Epson 5 user manual — NOTE
Page 78 · click to enlarge
Page 78

LineObject1 Property

Vision ObjectsPoint

Specifies the 1st Line object to use for defining the position of a Point object. (LineObject1 defines the line which is used by the PointType property for defining the position of the Point object. )

VGet Sequence.Object.LineObject1, var

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

Any Line object which is located prior to the Point object can be specified as the LineObject1 property value.

DefaultNone

When a Point object is first created, the default LineObject1 property is set to None. However, if you want to position a point on the midpoint of a line, then the LineObject1 property defines which Line object to use. In this case the LineObject1 property must be set first and then the PointType property can be set to MidPoint. A MidPoint of a line can only be specified for LineObject1. (i.e. you cannot specify the MidPoint of the LineObject2 property.)

LineObject1 can also be used to define the 1st of 2 lines when you want to define a Point object position as the intersection point between 2 lines. (LineObject2 defines the other Line to use for the intersection point.)

It is important to note that for each specific vision sequence, only those Line objects which are executed prior to the Point object in the vision sequence steps will be available to use as LineObject1. (The order of the vision object execution can be adjusted from the Sequence Tab.) )

NOTE

When using the point and click interface click on the LineObject1 property Value Field and a drop down list will appear showing a list of available Line objects which can be used for the LineObject1 property. Click on one of the choices and the value field will be set accordingly.

When using the Point-and-Click Object tab to set the LineObject1 property it is important to note that only those objects which are defined prior to the Point object are displayed in the drop down list. This helps reduce the chances of the user defining a Line object which isn't defined prior to the Point object. )

those items in the LineObject1 drop down list.

Line Object, Object Tab, Point Object, PointType Property

LineObject1 Property

Page 79 of the Epson 5 user manual — NOTE
Page 79 · click to enlarge
Page 79

LineObject2 Property

Vision ObjectsPoint

Specifies the 2nd Line object to use for defining the position of a Point object when that position is defined by the intersection point of 2 lines. (LineObject1 and LineObject2 together define 2 lines whose intersection point can be defined as the position of the Point object.)

VGet Sequence.Object.LineObject2, var

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

Any Line object which is located prior to the Point object can be specified as the LineObject2 property value.

DefaultNone

The LineObject2 property is only required when you want to define the position of a Point object as the position of intersection between 2 Lines. In this case LineObject1 must also specify a Line object before the PointType property can be set. Once the lines are defined for LineObject1 and LineObject2, the PointType property can be set to Intersection. However, if either the LineObject1 or LineObject property is not yet defined then an error will occur when trying to set the PointType property to Intersection.

It is important to note that for each specific vision sequence, only those Line objects which are executed prior to the Point object in the vision sequence steps will be available to use as LineObject2. (The order of the vision object execution can be adjusted from the Sequence Tab.) )

NOTE

When using the point and click interface click on the LineObject2 property Value Field and a drop down list will appear showing a list of available Line objects which can be used for the LineObject2 property. Click on one of the choices and the value field will be set accordingly.

When using the Point-and-Click Object tab to set the LineObject2 property it is important to note that only those objects which are defined prior to the Point object are displayed in the drop down list. This helps reduce the chances of the user defining a Line object which isn't defined prior to the Point object.

NOTE

Vision Guide automatically checks which vision objects may be used as LineObject2 and only displays those items in the LineObject2 drop down list.

Line Object, LineObject1 Property, Object Tab, Point Object, PointType Property

LineObject2 Property

Page 80 of the Epson 5 user manual — MaxArea Property
Page 80 · click to enlarge
Page 80

MaxArea Property

Vision ObjectsBlob

Defines the upper Area limit for the Blob Object. For a Blob to be found it must have an Area result below the value set for MaxArea property.

VGet Sequence.Object.MaxArea, var

VSet Sequence.Object.MaxArea, 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 Long variable that will contain the value of the property.

value Long expression for the new value of the property.

1. (video width x video height)
Default100000

The purpose of the MinArea and MaxArea Properties is to set a range for the Blob object such that if a blob area does not fit within the range then it is considered not found. (i.e. the Found result is returned as False.)

When a new Blob object is created the range between the MinArea property and MaxArea property is quite large because the default values are set at 25 and 100,000 respectively. This means that in most situations the Blob object will return a Found result as true since the range for Blobs is so wide. In most applications it is useful to set a tighter range between the MinArea and MaxArea Properties but of course there values will vary from application to application. The point here is to remember to set the MinArea and MaxArea Properties and don't just rely on the default settings.

Do no set the range between MinArea and MaxArea too large. If the range is too large, it may result in false detection.

Area Result, Blob Object, MinArea Property, MinMaxArea Property, Object Tab

MaxArea Property · (Maximum Area)

Page 81 of the Epson 5 user manual — MaxLength Property
Page 81 · click to enlarge
Page 81

MaxLength Property

Vision ObjectsLine

Defines the upper length limit for the Line object. For a Line to be found it must have a Length result below the value set for MaxLength property.

VGet Sequence.Object.MaxLength, var

VSet Sequence.Object.MaxLength , 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 Long variable that will contain the value of the property.

value Long expression for the new value of the property.

Default1000

The purpose of the MinLength and MaxLength Properties is to set a range for the Line object such that if a line length does not fit within the range then it is considered not found. (i.e. the Found result is returned as False.)

This is useful when you want to gauge the length of a line in millimeters. To gauge a line in pixels, see the MinPixelLength and MaxPixelLength properties.

Line Object, MinLength Property, MinPixelLength Property, MaxPixelLength Property, Object Tab

MaxLength Property · 0 or higher

Page 82 of the Epson 5 user manual — MaxPixelLength Property
Page 82 · click to enlarge
Page 82

MaxPixelLength Property

Vision ObjectsLine

Defines the upper pixel length limit for the Line object. For a Line to be found it must have a PixelLength result below the value set for MaxPixelLength property.

VGet Sequence.Object.MaxPixelLength, var

VSet Sequence.Object.MaxPixelLength , 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

0 or higher in pixels

Default1000

The purpose of the MinPixelLength and MaxPixelLength Properties is to set a range for the Line object such that if a line length does not fit within the range then it is considered not found. (i.e. the Found result is returned as False.)

This is useful when you want to gauge the length of a line in pixels. To gauge a line in Millimeters, see the MinLength and MaxLength properties. The default settings allow most lines to be found.

Line Object, MinLength Property, MaxLength Property, MinPixelLength Property, Object Tab

MaxPixelLength Property

Page 83 of the Epson 5 user manual — MaxX Result
Page 83 · click to enlarge
Page 83

MaxX Result

Vision ObjectsBlob

Returns the maximum X pixel coordinate of the blob extrema.

VGet Sequence.Object.MaxX [(result)] , var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

The value returned is always in pixels and may be from 1 - video width.

The MinX, MaxX, MinY, and MaxY results together define a blob's smallest enclosing rectangle that is aligned with the coordinate axes and completely encloses the blob. This rectangle is known as the Extrema.

The MinX, MaxX, MinY, and MaxY results can hold fractional values. For example, 100.5 would be between the 100 and 101 pixels.

Area Result, Blob Object, Extrema Result, MaxY Result, MinX Result, MinY Result, Object Tab

MaxX Result

Page 84 of the Epson 5 user manual — MaxY Result
Page 84 · click to enlarge
Page 84

MaxY Result

Vision ObjectsBlob

Returns the maximum Y pixel coordinate of the blob extrema.

VGet Sequence.Object.MaxY [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in pixels.

The MinX, MaxX, MinY, and MaxY results together define a blob's smallest enclosing rectangle that is aligned with the coordinate axes and completely encloses the blob. This rectangle is known as the Extrema.

The MinX, MaxX, MinY, and MaxY results can hold fractional values. For example, 100.5 would be between the 100 and 101 pixels.

Area Result, Blob Object, MaxX Result, MinX Result, MinY Result, Object Tab

MaxY Result

Page 85 of the Epson 5 user manual — MinArea Property
Page 85 · click to enlarge
Page 85

MinArea Property

Vision ObjectsBlob

Defines the lower Area limit for the Blob object. For a Blob to be found it must have an Area result above the value set for MinArea property.

VGet Sequence.Object.MinArea, var

VSet Sequence.Object.MinArea , 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 Long variable that will contain the value of the property.

value Long expression for the new value of the property.

1. MaxArea in pixels
Default25

The purpose of the MinArea and MaxArea Properties is to set a range for the Blob object such that if a blob area does not fit within the range then it is considered not found.

When a new Blob object is created the range between the MinArea property and MaxArea property is quite large because the default values are set at 25 and 100,000 respectively. This means that in most situations the Blob object will return a Found result as true since the range is large. In most applications it is useful to set a tighter range between the MinArea and MaxArea Properties but of course there values will vary from application to application. The point here is to remember to set the MinArea and MaxArea Properties and don't just rely on the default settings.

Do no set the range between MinArea and MaxArea too large. If the range is too large, it may result in false detection.

Area Result, Blob Object, MaxArea Property, Object Tab

MinArea Property

Page 86 of the Epson 5 user manual — MinLength Property
Page 86 · click to enlarge
Page 86

MinLength Property

Vision ObjectsLine

Defines the lower length limit for the Line object. For a Line to be found it must have a Length result above the value set for MinLength property.

VGet Sequence.Object.MinLength, var

VSet Sequence.Object.MinLength , 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real number in millimeters

Default0

The purpose of the MinLength and MaxLength Properties is to set a range for the Line object such that if a line length does not fit within the range then it is considered not found.

This is useful when you want to gauge the length of a line in millimeters. To gauge a line in pixels, see the MinPixelLength and MaxPixelLength properties.

Line Object, MaxLength Property, MinPixelLength Property, MaxPixelLength Property, Object Tab

MinLength Property

Page 87 of the Epson 5 user manual — MinMaxArea Property
Page 87 · click to enlarge
Page 87

MinMaxArea Property

Vision ObjectsBlob

Defines the lower and upper Area limits for the Blob object. For a Blob to be found it must have an Area result greater than the MinArea property and less than the MaxArea property. (MinMaxArea property was added to allow easy manipulation of both the MinArea and MaxArea Properties from one function call in the SPEL+ language.)

VGet Sequence.Object.MinMaxArea, minVar, maxVar

VSet Sequence.Object.MinMaxArea, minVar, maxVar

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.

minVar Long variable containing the minimum area to get from or set to the MinArea property

maxVar Long variable containing the maximum area to get from or set to the MaxArea property

For details, refer to MaxArea Property or MinArea Property.

The purpose of the MinMaxArea property is to provide a single function call from the SPEL+ language to allow the setting of both the MinArea and MaxArea Properties.

Do no set the MinMaxArea setting too large. If the range is too large, it may result in false detection.

Area Result, Blob Object, MaxArea Property, MinArea Property, Object Tab

MinMaxArea Property · Runtime only

Page 88 of the Epson 5 user manual — MinPixelLength Property
Page 88 · click to enlarge
Page 88

MinPixelLength Property

Vision ObjectsLine

Defines the lower length limit for the Line object. For a Line to be found it must have a PixelLength result above the value set for MinPixelLength property.

VGet Sequence.Object.MinPixelLength, var

VSet Sequence.Object.MinPixelLength , 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

0 or higher real number in pixels

Default0

The purpose of the MinPixelLength and MaxPixelLength Properties is to set a range for the Line object such that if a line pixellength does not fit within the range then it is considered not found.

This is useful when you want to gauge the length of a line in pixels. To gauge a line in Millimeters, see the MinLength and MaxLength properties. The default settings allow most lines to be found.

Line Object, MaxLength property, MinLength property, MaxPixelLength property, Object Tab

MinPixelLength Property

Page 89 of the Epson 5 user manual — MinX Result
Page 89 · click to enlarge
Page 89

MinX Result

Vision ObjectsBlob

Returns the minimum X pixel coordinate of the blob extrema.

VGet Sequence.Object.MinX [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in pixels

The MinX, MaxX, MinY, and MaxY results together define a blob's smallest enclosing rectangle that is aligned with the coordinate axes and completely encloses the blob. This rectangle is known as the extrema.

The MinX, MaxX, MinY, and MaxY results can hold fractional values. For example, 100.5 would be between the 100 and 101 pixels.

Area Result, Blob Object, MaxX Result, MaxY Result, MinY Result, Object Tab

MinX Result

Page 90 of the Epson 5 user manual — MinY Result
Page 90 · click to enlarge
Page 90

MinY Result

Vision ObjectsBlob

Returns the minimum Y pixel coordinate of the blob extrema.

VGet Sequence.Object.MinY [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in pixels

The MinX, MaxX, MinY, and MaxY results together define a blob's smallest enclosing rectangle that is aligned with the coordinate axes and completely encloses the blob. This rectangle is known as the Extrema.

The MinX, MaxX, MinY, and MaxY results can hold fractional values. For example, 100.5 would be between the 100 and 101 pixels.

Area Result, Blob Object, MaxX Result, MaxY Result, MinX Result, Object Tab

MinY Result

Page 91 of the Epson 5 user manual — ModelObject Property
Page 91 · click to enlarge
Page 91

ModelObject Property

Vision ObjectsCorrelation, Geometric, Polar

Determines which model to use for searching.

VGet Sequence.Object.ModelObject, var

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

Self Use the model for this object to search with.

objectName Use the model for this object.

DefaultSelf

The ModelObject property enables you to use one model for several objects of the same type. For example, if you have 5 polar objects that all search for the same part, you can teach the model for the first polar object, then set the ModelObject for the remaining polar objects to "Polar01" (the first polar object).

ModelObject Property · Object Tab

Page 92 of the Epson 5 user manual — ModelOK Property
Page 92 · click to enlarge
Page 92

ModelOK Property

Vision ObjectsCorrelation, Geometric, Polar

Returns the status of an object's model.

VGet Sequence.Object.ModelOK, var

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 Boolean variable that will contain the value of the property.

If the model has been taught, ModelOK will return true. You can ensure that the sequence will run before running a sequence.

Show 5 more labels / short text on this page
ModelOK Property · Runtime only · False · True · ModelObject Property
Page 93 of the Epson 5 user manual — NOTE
Page 93 · click to enlarge
Page 93

ModelOrgAutoCenter Property

Vision ObjectsCorrelation, Geometric

A model has a fixed reference point by which we describe its location in an image. This point is referred to as the model's origin. The ModelOrgAutoCenter property causes the model origin to be placed at the center of the model window automatically.

VGet Sequence.Object.ModelOrgAutoCenter, var

VSet Sequence.Object.ModelOrgAutoCenter, 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 Boolean variable that will contain the value of the property.

False Do not cause the model origin to be automatically positioned

True Automatically position the model origin at the center of the model window

DefaultTrue

The model origin may lie anywhere within the region defined by the model window. The origin's coordinates define the model origin relative to the model window's upper left corner, that is, relative to the location of element [0][0] of the model window that defines the model.

The ModelOrgAutoCenter property causes the model origin to be positioned automatically in the center of the model window whenever the model window is moved or resized.

If the ModelOrgAutoCenter property is set to True, then the ModelOrgX and ModelOrgY Properties cannot be used to reposition the model origin. )

NOTE

Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgX Property, ModelOrgY Property, Object Tab

ModelOrgAutoCenter Property

Page 94 of the Epson 5 user manual — NOTE
Page 94 · click to enlarge
Page 94

ModelOrgX Property

Vision ObjectsCorrelation, Geometric

A model has a fixed reference point by which we describe its location in an image. This point is referred to as the model origin. The ModelOrgX property contains the X coordinate value of the model origin.

VGet Sequence.Object.ModelOrgX, var

VSet Sequence.Object.ModelOrgX, 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.

The ModelOrgX property can be set between 1-255 because the model window is limited in the X direction to 255 pixels. It should be noted that the ModelOrgX defines the X coordinate of the model origin with respect to the model's upper left corner.

Default: The model origin is placed in the center of the model window when a new object is created.

The model origin may lie anywhere within the model window Region. The origin's coordinates define the model origin relative to the model's upper left corner, that is, relative to the location of element [0][0] of the image that defines the model.

When you create a new Correlation, the model origin is set to the center of the model window. However, the user may modify this position by typing in a new X and Y positions into the ModelOrgX and ModelOrgY Properties or by simply clicking on the model origin (the crosshair shown in the middle of the model window) and moving it to the position desired.

The user can also modify the model origin automatically by setting the ModelOrgAutoCenter property to True. If the ModelOrgAutoCenter property is set to True then the model origin is automatically set to the center of the model window.

If the ModelOrgAutoCenter property is set to True, the ModelOrgX property cannot be used to reposition the model origin. )

NOTE

Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgY Property, Object Tab

ModelOrgX Property

Page 95 of the Epson 5 user manual — ModelOrgY Property
Page 95 · click to enlarge
Page 95

ModelOrgY Property

Vision ObjectsCorrelation, Geometric

A model has a fixed reference point by which we describe its location in an image. This point is referred to as the model's Origin. The ModelOrgY property contains the Y coordinate value of the model's origin.

VGet Sequence.Object.ModelOrgY, var

VSet Sequence.Object.ModelOrgY, 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.

Basically, the ModelOrgY property can be set between 1-255. However, it should be noted that the ModelOrgY defines the Y coordinate of the model origin with respect to the model's upper left corner.

Default: The model origin is placed in the center of the model window when a new object is created.

The model origin may lie anywhere within the model's bounds. The origin's coordinates define the model origin relative to the model's upper left corner, that is, relative to the location of element [0][0] of the image that defines the model.

When you create a new Correlation object, the model origin is set to the center of the model window. However, the user may modify this position by typing in a new X and Y positions into the ModelOrgX and ModelOrgY Properties or by simply clicking on the model origin (the crosshair shown in the middle of the model window) and moving it to the position desired.

The user can also modify the model origin automatically by setting the ModelOrgAutoCenter property to True. If the ModelOrgAutoCenter property is set to True then the model origin is automatically set to the center of the model window. )

Anatomy of a Vision Object , Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgX Property, Object Tab

ModelOrgY Property

Page 96 of the Epson 5 user manual — ModelWin Property
Page 96 · click to enlarge
Page 96

ModelWin Property

Vision ObjectsCorrelation, Geometric

Defines the position and size of the model window for Correlation and Geometric objects.

VGet Sequence.Object.ModelWin, LeftVar, TopVar, WidthVar, HeightVar

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.

LeftVar Integer variable representing the leftmost position of the model window (in Pixels).

TopVar Integer variable representing the uppermost position of the model window (in Pixels).

WidthVar Integer variable representing the width of the model window (in Pixels).

HeightVar Integer variable representing the height of the model window (in Pixels).

All Values are in Pixels. See the ModelWinTop, ModelWinLeft, ModelWinWidth, and ModelWinHeight Properties for exact value data.

The ModelWin property was added to provide easy access to the ModelWinTop, ModelWinLeft, ModelWinWidth and ModelWinHeight Properties from the SPEL+ Language. The ModelWin property allows the setting of all 4 Properties. There are cases where the user may want to define the position and size of the model window dynamically and for that reason the ModelWin property was created.

The ModelWin property can be applied to the Correlation and Geometric objects. Each of these object types have rectangular model windows used to define the position and size of the Model.

Correlation Object, Geometric Object, ModelWinHeight Property, ModelWinLeft Property, ModelWinTop Property, ModelWinWidth Property, Object Tab

ModelWin Property · Runtime only

Page 97 of the Epson 5 user manual — Default: 50
Page 97 · click to enlarge
Page 97

ModelWinHeight Property

Vision ObjectsCorrelation, Geometric

Defines the height of the model window used for Correlation and Geometric object models.

VGet Sequence.Object.ModelWinHeight, var

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.

Integer number in pixels from 10 - 255.

Default: 50

The model window always fits inside the Search Window.

The Correlation and Geometric objects have rectangular model windows which define the position and size of the model to be taught. The ModelWinHeight property is set automatically when the user drags the upper or lower horizontal sides of the model window.

Keep in mind that larger model windows cause the taught Model to be bigger, which in turn cause the execution time to increase.

The ModelWinHeight property is available from both the Vision Guide window Object tab and from the SPEL+ Language. The easiest way to set the ModelWinHeight is to simply click on the upper or lower horizontal sides of the model window and then drag them vertically.

It is also possible to set a specific height value for the ModelWinHeight property. Click on the ModelWinHeight property Value Field and simply enter in the value which you would like to set the ModelWinHeight property to. Once the user moves the cursor off the value field, the ModelWinHeight will be adjusted for the associated vision object. Note that the additional height is added to the lower side of the model window. This is because the upper most position of the model window is fixed according to the ModelWinTop property.

Anatomy of a Vision Object , Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgY Property, ModelOrgY Property, ModelWin Property, ModelWinLeft Property, ModelWinTop Property, ModelWinWidth Property, Object Tab

ModelWinHeight Property

Page 98 of the Epson 5 user manual — ModelWinLeft Property
Page 98 · click to enlarge
Page 98

ModelWinLeft Property

Vision ObjectsCorrelation, Geometric

Defines the left most position of the model window for Correlation and Geometric objects.

VGet Sequence.Object.ModelWinLeft, var

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.

Integer number in pixels from 1 - video width

The ModelWinLeft property is available for the Correlation and Geometric objects only since those are the only vision objects which use a Model to define a pattern to search for. The model window always fits inside the Search Window.

The Correlation and Geometric objects have rectangular model windows which define the position and size of the model to be taught. The ModelWinLeft property is set automatically when the user drags the entire model window to a new location or when the leftmost side of the model window is dragged to resize the model window.

The ModelWinLeft property is available from both the Vision Guide window Object Tab and from the SPEL+ Language. The easiest way to set the ModelWinLeft position is to simply click down on one of the sides of the model window and then drag the model window to a new position. You can also click on the leftmost vertical side of the model window at the center of the vertical line where the leftmost window handle is (the small square on the left vertical side of the Model window). You will see the mouse pointer change to a two direction horizontal arrow. Now drag the leftmost vertical side of the model window and you will see the size of the model change. Release the mouse button when you want to set the position.

It is also possible to set a specific value for the ModelWinLeft property. Click on the ModelWinLeft property Value Field in the Object tab and simply enter in the value which you would like to set the ModelWinLeft property to. Once the user moves the cursor off the value field, the leftmost position of the model window will be adjusted for the associated vision object.

Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgX Property, ModelOrgY Property, ModelWin Property, ModelWinHeight Property, ModelWinTop Property, ModelWinWidth Property, Object Tab

ModelWinLeft Property

Page 99 of the Epson 5 user manual — ModelWinTop Property
Page 99 · click to enlarge
Page 99

ModelWinTop Property

Vision ObjectsCorrelation, Geometric

Defines the upper most position of the model window for Correlation and Geometric objects.

VGet Sequence.Object.ModelWinTop, var

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.

Integer number in pixels from 1 - video height

The ModelWinTop property is available for the Correlation and Geometric objects only since those are the only vision objects which use a model to define a pattern to search for. The model window always fits inside the Search Window.

The Correlation and Geometric objects have rectangular model windows which define the position and size of the model to be taught. The ModelWinTop property is set automatically when the user drags the entire model window to a new location or when the topmost side of the model window is dragged to resize the model window.

The ModelWinTop property is available from both the Vision Guide window Object tab and from the SPEL+ Language. The easiest way to set the ModelWinTop position is to simply click on the top or bottom horizontal side of the model window and then drag the model window to a new position. You can also click on the uppermost horizontal side of the model window at the center of the vertical line where the uppermost side window handle is (the small square on the upper horizontal side of the Model window). You will see the mouse pointer change to a two direction vertical arrow. Now drag the uppermost horizontal side of the model window and you will see the size of the model change. Release the mouse button when you want to set the position.

It is also possible to set a specific value for the ModelWinTop property. Click on the ModelWinTop property Value Field and simply enter in the value which you would like to set the ModelWinTop property to. Once the user moves the cursor off the value field, the uppermost position of the model window will be adjusted for the associated vision object.

Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgX Property, ModelOrgY Property, ModelWin Property, ModelWinHeight Property, ModelWinLeft Property, ModelWinWidth Property, Object Tab

ModelWinTop Property

Page 100 of the Epson 5 user manual — ModelWinWidth Property
Page 100 · click to enlarge
Page 100

ModelWinWidth Property

Vision ObjectsCorrelation, Geometric

Defines the width of a model window.

VGet Sequence.Object.ModelWinWidth, var

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.

Integer number in pixels

Default50

The model window always fits inside the search window.

The ModelWinWidth property is set automatically when the user drags the entire model window to a new location or when one of the horizontal sides of the model window is dragged to resize the model window.

Keep in mind that larger model windows cause the taught Model to be larger, which in turn may cause the execution time to increase.

The ModelWinWidth property is available from both the Vision Guide window Object tab and from the SPEL+ Language. The easiest way to set the ModelWinWidth value is to simply click on the left or right vertical side of the model window and then drag the model window to a new position. The ModelWinWidth property will be set automatically.

You can also click on the left or right vertical side of the model window at the center of the vertical line where the window handle is (the small square on the upper horizontal side of the Model window). You will see the mouse pointer change to a two direction horizontal arrow. Now drag the side of the model window and you will see the of the model change in width. Release the mouse button when you want to set the position.

It is also possible to set a specific value for the ModelWinWidth property. Click on the ModelWinWidth property Value Field and simply enter in the value which you would like to set the ModelWinWidth property to. Once the user moves the cursor off the value field, the uppermost position of the model window will be adjusted for the associated vision object. Note that the additional width is added to the right side of the model window. This is because the left most position of the model window is fixed according to the ModelWinLeft property.

ModelWinWidth Property

Page 101 of the Epson 5 user manual — ModelWinWidth Property
Page 101 · click to enlarge
Page 101

Anatomy of a Vision Object, Correlation Object, ModelOrgAutoCenter Property, ModelOrgX Property, ModelOrgY Property, ModelWin Property, ModelWinHeight Property, ModelWinLeft Property, ModelWinTop Property, Object Tab

ModelWinWidth Property

Page 102 of the Epson 5 user manual — Name Property
Page 102 · click to enlarge
Page 102

Name Property

Vision ObjectsAll

All vision objects, Sequences, and Calibrations must have a name. The name is then used to refer to the individual vision object, Sequence or Calibration.

VGet Sequence.Object.Name, var

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.

Upon the creation of a new vision sequence, a dialog is displayed requesting a name for the new Sequence. This name is then set as the Name property Value for the vision sequence. However, the user can modify this name from the Sequence Tab.

Upon the creation of a new vision object such as a Blob, Correlation, etc., a name is automatically assigned to the object. The names used are based on the object type with a numeric value appended to the end of the name. For example, the following names might have been created for a specific vision sequence: Blob01, Corr01, Blob02, Blob03, Corr02, Line01.

Blob Object, Correlation Object, Edge Object, Frame Object, Geometric Object, Line Object, Object Tab, Point Object, Polar Object, Sequence Tab

Name Property · Vision Sequence · Vision Calibration

Page 103 of the Epson 5 user manual — NumberFound Result
Page 103 · click to enlarge
Page 103

NumberFound Result

Vision ObjectsBlob, Correlation, Edge, Geometric

Returns the number of features found within a single Search Window for a Blob, Correlation, Edge, or Geometric object.

VGet Sequence.Object.NumberFound, var

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 result.

Valid number found for all objects is 0 - 100.

Blob, Correlation, Edge, and Geometric objects support the finding of multiple features within a single Search Window. The NumberToFind property defines how many features to search for.

The NumberFound result returns how may features were actually found.

The NumberFound result is a special result. It will always return the number of features that were found for the specified vision object regardless of the setting of the CurrentResult property. All the other results in the Results List are specific to each individual results record and will have different values depending upon the setting of the CurrentResult property.

Blob results are ordered by largest found blob to smallest found blob. (i.e. result record 1 (CurrentResult = 1) contains the results for the largest blob.)

Correlation results are ordered by highest Score result to lowest Score result. (i.e. result Record 1 (CurrentResult =1) contains the results for the feature with the highest score.)

Blob Object, Correlation Object, CurrentResult Property, Edge Object, Found Result, Geometric Object, NumberToFind Property, Object Tab

NumberFound Result

Page 104 of the Epson 5 user manual — NumberFound Result
Page 104 · click to enlarge
Page 104

The following SPEL+ language example runs a vision sequence called mtest which contains a Correlation object called Corr01. Corr01 has been defined to find multiple features (3).

The following program will run the sequence and make sure that the proper number of features (3) was found for Corr01 and then print the Score result in descending order.

Function main #define NUM_TO_FIND 3 Boolean numfound Integer score VRun mtest VGet mtest.Corr01.NumberFound, numfound If numfound = NUM_TO_FIND Then Print "The Proper Number of features(3) were found" Else Print "Only (", numfound, ") features were found" Exit Function EndIf VGet mtest.Corr01.Score(1), score Print "1st feature score (Best): ", score VGet mtest.Corr01.Score(2), score Print "2nd feature score (Medium): ", score VGet mtest.Corr01.Score(3), score Print "3rd feature score (Worst): ", score Fend

NumberFound Result · Example

Page 105 of the Epson 5 user manual — NumberToFind Property
Page 105 · click to enlarge
Page 105

NumberToFind Property

Vision ObjectsBlob, Correlation, Edge, Geometric

Defines the number of features to search for within a single Search Window for a Blob, Correlation, Edge, or Geometric object.

VGet Sequence.Object.NumberToFind, var

VSet Sequence.Object.NumberToFind, 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.

Valid entries are 0 - 100.

Default1

The Blob, Correlation, Edge, and Geometric objects support finding multiple features within a single Search Window. The NumberToFind property defines how many.

Since many applications require that only 1 feature be found within a Search Window, the default value of the NumberToFind property is set to 1.

When working in the Vision Guide Development Environment, you will notice that the Results List on the Object tab will display a heading like "Result (1 of 15)". This means that the system tried to find 15 features (as defined by the NumberToFind property) and the Result List will display the results for item 1.

If you want to see the results for one of the other results, just change the CurrentResult property value to indicate which result you want to examine.

Blob results are ordered according to the SizeToFind and Sort properties.

If NumberToFind is set to 0, then all possible results are found, up to the maximum allowed. One use is when the Blob object is used as a pixel counter. With NumberToFind set to 0, then the TotalArea result will equal the total number of pixels found in the search window.

Correlation and Geometric results are ordered by highest Score result to lowest Score result when Sort is None. (i.e. result Record 1 (CurrentResult =1) contains the results for the feature with the highest score.)

Blob Object, Correlation Object, CurrentResult property, Edge Object, Found Result, Geometric Object, NumberFound Result, Object Tab

NumberToFind Property

Page 106 of the Epson 5 user manual — NumberToFind Property
Page 106 · click to enlarge
Page 106

The following SPEL+ language example runs a vision sequence called mtest which contains a Correlation object called Corr01. The NumberToFind value for Corr01 is set using VSet.

The following program will run the sequence and make sure that the proper number of features (3) was found for Corr01 and then print the Score result in descending order.

Function main #define NUM_TO_FIND 3 Boolean numfound Integer score VSet mtest.Corr01.NumberToFind, NUM_TO_FIND VRun mtest VGet mtest.Corr01.NumberFound, numfound If numfound = NUM_TO_FIND Then Print "The Proper Number of features(3) were found" Else Print "Only (", numfound, ") features were found" Exit Function EndIf VGet mtest.Corr01.Score(1), score Print "1st feature score (Best): ", score VGet mtest.Corr01.Score(2), score Print "2nd feature score (Medium): ", score VGet mtest.Corr01.Score(3), score Print "3rd feature score (Worst): ", score Fend

NumberToFind Property · Example

Page 107 of the Epson 5 user manual — Operation Property
Page 107 · click to enlarge
Page 107

Operation Property

Vision ObjectsImageOp

Sets which image operation to perform.

VGet Sequence.Object.Operation, var

VSet Sequence.Object.Operation, 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.

1. Open Performs an opening-type morphological operation. This is an erosion followed by a dilation. The number of iterations is determined by the Iterations property.
2. Close Performs a closing-type morphological operation. This is a dilation followed by an erosion. The number of iterations is determined by the Iterations property.
3. Erode Performs an erosion-type morphological operation. The number of iterations is determined by the Iterations property.
4. Dilate Performs a dilation-type morphological operation. The number of iterations is determined by the Iterations property.
5. Smooth Performs a smoothing type convolution operation. The number of iterations is determined by the Iterations property.
6. Sharpen1 Performs a sharpen type convolution operation. The number of iterations is determined by the Iterations property.
7. Sharpen2 Performs a sharpen type convolution operation. The number of iterations is determined by the Iterations property.
8. HorizEdge Highlights horizontal edges.
9. VertEdge Highlights vertical edges.
10. EdgeDetect1 Highlights edges.
11. EdgeDetect2 Highlights edges.
12. LaPlaceEdge1 Highlights edges.
13. LaPlaceEdge2 Highlights edges.
14. Thin Thins blobs in the image.

15- Thicken Thickens blobs in the image.

16. Binarize Binarizes the image according to the ThresholdLow and ThresholdHigh settings.
17. Rotate Rotates the image according to the AngleObject or RotationAngle settings. If AngleObject is Screen, then the rotation angle is determined by the RotationAngle

Operation Property

Page 108 of the Epson 5 user manual — O
Page 108 · click to enlarge
Page 108

property. Otherwise, the rotation angle is determined by the Angle result of the AngleObject. The rotation is counter-clockwise for positive angles.

18. FlipHoriz Flips the image from left to right.
19. FlipVert Flips the image from top to bottom.
20. FlipBoth Flips the image horizontally and vertically.

The Operation settings can be grouped as follows:

Open, Close, Erode, Dilate

The morphological operations use grayscale morphology. The Polarity property determines which shade to operate on: Dark or Light. For example, if you have dark objects on a light background, then you should set the Polarity property to DarkOnLight. If you were to set Polarity to LightOnDark for the same image, then executing Erode will look like a Dilate, because the light objects will be eroded, making the dark objects dilated. The Iterations property determines how many times to execute the operation.

Smooth, Sharpen1, Sharpen2, HorizEdge, VertEdge, EdgeDetect1 EdgeDetect2, LaPlaceEdge1, LaPlaceEdge2, Thin, Thicken

The Polarity property determines which shade to operate on for the Thin and Thicken operations. The Iterations property determines how many times to execute the operation.

Rotate, FlipHoriz, FlipVert, FlipBoth

ThresholdLow and ThresholdHigh are the boundaries for determining which gray values will be black and which values will be white. All gray values in between the thresholds will be black and all others will be white.

ImageOp Object, Iterations Property

Show 5 more labels / short text on this page
Operation Property · Morphology · Convolution · Image Manipulation · Binarize
Page 109 of the Epson 5 user manual — OriginAngleEnabled Property
Page 109 · click to enlarge
Page 109

OriginAngleEnabled Property

Vision ObjectsFrame

Enables a single point frame to rotate with the angle of the origin object.

VGet Sequence.Object.OriginAngleEnabled, var

VSet Sequence.Object.OriginAngleEnabled, 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 Boolean variable that will contain the value of the property.

False Frame will not rotate with origin point angle

True Frame will rotate with origin point angle

The OriginAngleEnabled property enables a frame to rotate with the angle of the origin object. For example, you can set the OriginPoint to a Polar object and set OriginAngleEnabled to True. The frame will rotate to the angle of the Polar object.

If the YAxisObject is set to a value other than Screen, then OriginAngleEnabled has no effect.

Frame Object, Object Tab

OriginAngleEnabled Property · Default False

Page 110 of the Epson 5 user manual — OriginPntObjResult Property
Page 110 · click to enlarge
Page 110

OriginPntObjResult Property

Vision ObjectsFrame

Specifies which result to use from the OriginPointObject.

VGet Sequence.Object.OriginPntObjResult, var

VSet Sequence.Object.OriginPntObjResult, 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.

The value can range from 1 to the NumberToFind value for the OriginPointObject. If the OriginPointObject is 'Screen', then the value is always 1.

Use the OriginPntObjResult property to specify a result number other than one for a Frame Object's OriginPoint.

Frame Object, Object Tab, OriginPoint Property, YAxisPoint Property, YAxisObjResult Property

OriginPntObjResult Property

Page 111 of the Epson 5 user manual — NOTE
Page 111 · click to enlarge
Page 111

OriginPoint Property

Vision ObjectsFrame

Defines the vision object to be used as the origin point for a Frame object.

VGet Sequence.Object.OriginPoint, var

VSet Sequence.Object.OriginPoint, 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 expression for the new value of the property. Valid vision objects for the OriginPoint property are Blob, Correlation, Edge, Line, and Point objects. The OriginPoint may also be based on the Screen position of the Frame.

Screen or any object that runs prior to the frame and returns PixelX and PixelY results.

DefaultScreen

When a Frame object is first drag-and-dropped onto the Image Display area of the Vision Guide Window, the default OriginPoint property is set to Screen. Frame objects are normally attached to other Vision objects. This is the purpose of the OriginPoint and YAxisPoint. Through these 2 properties the user can define a frame of reference for other objects to have their position based upon. This capability is useful when specific features can be used to find reference points on a part and then other vision objects can be located on the image with respect to the frame position defined.

The OriginPoint and YAxisPoint properties are used together to define a vision frame which has an origin at the OriginPoint and a Y Axis direction defined by the YAxisPoint property.

It is important to note that for each specific vision sequence, only those vision objects which are executed prior to the Frame object in the vision sequence steps will be available to use as an OriginPoint. (The order of the vsion object execution can be adjusted from the Sequence Tab.)

When using the GUI to change the OriginPoint property Value, a drop down list will appear showing a list of available vision objects (along with the default value Screen) which can be used to define the Origin of the Frame. Click on one of the choices and the value field will be set accordingly.

When using the Object tab to set the OriginPoint property it is important to note that only those objects which are defined prior to the Frame object are displayed in the drop down list. This helps reduce the chances of the user defining an OriginPoint which isn't defined prior to the Frame object.

Vision Guide automatically checks which vision objects can be used as the OriginPoint and displays only those object Names in the drop down list. )

NOTE

OriginPoint Property

Page 112 of the Epson 5 user manual — OriginPoint Property
Page 112 · click to enlarge
Page 112

Frame Object, Object Tab, YAxisPoint Property

OriginPoint Property

Page 113 of the Epson 5 user manual — Perimeter Result
Page 113 · click to enlarge
Page 113

Perimeter Result

Vision ObjectsBlob

Returns the perimeter of a blob.

VGet Sequence.Object.Perimeter [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in pixels.

The perimeter is the total number of pixels along the blob edges, including the edges of holes.

Compactness Result, Holes Result, Object Tab, Roughness Result

Perimeter Result

Page 114 of the Epson 5 user manual — PixelLength Result
Page 114 · click to enlarge
Page 114

PixelLength Result

Vision ObjectsLine

Returns the length in pixels of the distance between the starting and ending point of the line.

VGet Sequence.Object.PixelLength, var

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 Real variable that will contain the value of the result.

Real number in pixels

Unlike the Length result, the PixelLength result returns a value even if calibration has not yet been performed. This is because the units are in pixels and no calibration is needed for pixel unit based calculations. If the user needs a length in millimeters then a standalone or robot based camera calibration is required.

For the PixelLength result, the following statistics are available. PixelLengthMax, PixelLengthMean, PixelLengthMin, PixelLengthStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Calibration, Length Result, Line Object, Object Tab

PixelLength Result · Statistics

Page 115 of the Epson 5 user manual — PixelLine Result
Page 115 · click to enlarge
Page 115

PixelLine Result

Vision ObjectsLine

Run time only result which returns the pixel coordinate position data of the starting (X1, Y1) and ending (X2, Y2) points of the specified Line object.

VGet Sequence.Object.PixelLine, X1, Y1, X2, Y2

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.

X1 Real variable representing the X coordinate position of the starting point of the Line object specified by Object.

Y1 Real variable representing the Y coordinate position of the starting point of the Line object specified by Object.

X2 Real variable representing the X coordinate position of the ending point of the Line object specified by Object.

Y2 Real variable representing the Y coordinate position of the ending point of the Line object specified by Object.

X1, X2 Real variable specified in pixels from 1 - video width.

Y1, Y2 Real variable specified in pixels from 1 - video height.

The PixelLine result is a runtime result which provides the X1, Y1, X2 and Y2 pixel coordinate data for the starting and ending points of the specified Line object.

The PixelLine result returns the same information as the PixelX1, PixelY1, PixelX2, and PixelY2 results. However, it returns this information with 1 function call rather than 4 separate calls.

Line Object, Object Tab, PixelX1 Result, PixelX2 Result, PixelY1 Result, PixelY2 Result, RobotXYU Result, RobotU Result, RobotX Result, RobotY Result

PixelLine Result · Runtime only

Page 116 of the Epson 5 user manual — PixelX Result
Page 116 · click to enlarge
Page 116

PixelX Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the X position coordinate of the found part's position in pixel coordinates.

VGet Sequence.Object.PixelX [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Min0 Max Video width1

The PixelX result is the X coordinate of the objects position in the image coordinate system. The value is a real number that has a fractional component because of the sub-pixeling feature.

For the PixelX result, the following statistics are available. PixelXMax, PixelXMean, PixelXMin, PixelXStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, CameraX Result, CameraXYU Result, Found Result, Geometric Object, Object Tab, PixelXYU Result, RobotX Result, RobotXYU Result

PixelX Result · Statistics

Page 117 of the Epson 5 user manual — PixelX1 Result
Page 117 · click to enlarge
Page 117

PixelX1 Result

Vision ObjectsLine

Returns the pixel X coordinate of the starting point of a Line object.

VGet Sequence.Object.PixelX1, var

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 Real variable that will contain the value of the result.

Min0 Max Video width1

Every line has a starting point and ending point. The PixelX1 and PixelX2 results represent the X coordinate position of the starting (X1,Y1) and end points (X2,Y2) of the specified Line object. Since Line object starting and end points can be assigned to other vision objects, the (PixelX1, PixelY1) and (PixelX2, PixelY2) coordinate pairs can actually be pixel coordinate positions which match the PixelX and PixelY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (PixelX, PixelY) results from the Correlation object will match the (PixelX1, PixelY1) results for the Line object.)

Angle Result, Line Object, Object Tab, PixelX Result, PixelX2 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

PixelX1 Result

Page 118 of the Epson 5 user manual — PixelX2 Result
Page 118 · click to enlarge
Page 118

PixelX2 Result

Vision ObjectsLine

Returns the pixel X coordinate of the end point of a Line object.

VGet Sequence.Object.PixelX2, var

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 Real variable that will contain the value of the result.

Min0 Max Video width1

Every line must have a starting point and ending point. The PixelX1 and PixelX2 results represent the X coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (PixelX1, PixelY1) and (PixelX2, PixelY2) coordinate pairs can actually be pixel coordinate positions which match the PixelX and PixelY results for other vision objects. (In other words if a Line object's endpoint is defined by a Correlation object, then the (PixelX, PixelY) results from the Correlation object will match the (PixelX2, PixelY2) results for the Line object.)

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

PixelX2 Result

Page 119 of the Epson 5 user manual — PixelXYU Result
Page 119 · click to enlarge
Page 119

PixelXYU Result

Vision ObjectsBlob, Correlation, Edge, Point, Polar

Returns the PixelX, PixelY and Angle coordinates of the found part's position in the image coordinate system.

VGet Sequence.Object.PixelXYU [(result)] , found, xVar, yVar, uVar

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.

found Boolean variable representing whether or not the part you are looking for was found.

xVar Real variable representing the X pixel coordinate position of the part.

yVar Real variable representing the Y pixel coordinate position of the part.

uVar Real variable representing the angular position (rotation) of the part with respect to the image coordinate system

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

found Boolean value which is either True or False

xVar Real number in pixels

yVar Real number in pixels

uVar Real number in degrees

The PixelXYU result returns coordinates in the image coordinate system.

Angle Result, CameraX Result, CameraY Result, CameraXYU Result, Found Result, RobotX Result, RobotY Result, RobotU Result, RobotXYU Result

PixelXYU Result · Runtime only

Page 120 of the Epson 5 user manual — PixelY Result
Page 120 · click to enlarge
Page 120

PixelY Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the Y position coordinate of the found part's position in pixel coordinates.

VGet Sequence.Object.PixelY [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Min0 Max Video height1

The PixelY result is the Y coordinate of the objects position in the image coordinate system. The value is a real number that has a fractional component because of the sub-pixeling feature.

For the PixelY result, the following statistics are available. PixelYMax, PixelYMean, PixelYMin, PixelYStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, CameraXYU Result, CameraY Result, Found Result, Geometric Object, Object Tab, PixelXYU Result, RobotY Result, RobotXYU Result

PixelY Result · Statistics

Page 121 of the Epson 5 user manual — PixelY1 Result
Page 121 · click to enlarge
Page 121

PixelY1 Result

Vision ObjectsLine

Returns the pixel Y coordinate of the starting point of a Line object.

VGet Sequence.Object.PixelY1, var

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 Real variable that will contain the value of the result.

Min0 Max Video height1

Every line must have a starting point and ending point. The PixelY1 and PixelY2 results represent the Y coordinate position starting (Y1) and endpoints (Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (PixelX1, PixelY1) and (PixelX2, PixelY2) coordinate pairs can actually be pixel coordinate positions which match the PixelX and PixelY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (PixelX, PixelY) results from the Correlation object will match the (PixelX1, PixelY1) results for the Line object.)

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotY Result, RobotXYU Result, X1 Property, X2 Property, Y1 Property, Y2 Property

PixelY1 Result

Page 122 of the Epson 5 user manual — PixelY2 Result
Page 122 · click to enlarge
Page 122

PixelY2 Result

Vision ObjectsLine

Returns the pixel Y coordinate of the end point of a Line object.

VGet Sequence.Object.PixelY2, var

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 Real variable that will contain the value of the result.

Min0 Max Video height1

Every line must have a starting point and ending point. The PixelY1 and PixelY2 results represent the Y coordinate position starting (Y1) and endpoints (Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (PixelX1, PixelY1) and (PixelX2, PixelY2) coordinate pairs can actually be pixel coordinate positions which match the PixelX and PixelY results for other vision objects. (In other words if a Line object's endpoint is defined by a Correlation object, then the (PixelX, PixelY) results from the Correlation object will match the (PixelX2, PixelY2) results for the Line object.)

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelX2 Result, PixelY Result, PixelY1 Result, RobotXYU Result, RobotY Result, X1 Property, X2 Property, Y1 Property, Y2 Property

PixelY2 Result

Page 123 of the Epson 5 user manual — PointsTaught Property
Page 123 · click to enlarge
Page 123

PointsTaught Property

Sets / returns the teach state of a vision calibration's points.

VGet Calibration.PointsTaught, var

VSet Calibration.PointsTaught, value

Calibration Name of a calibration or string variable containing a calibration name.

var Boolean variable that will contain the value of the result.

value Boolean expression for the new value of the property.

False Points have not been taught.

True Points have been taught.

PointsTaught must be True before you can execute a calibration. If you teach the calibration points from the Vision Guide GUI Calibration tab, then this property will automatically be set to True.

PointsTaught Property · Vision Calibration · CalComplete Result

Page 124 of the Epson 5 user manual — NOTE
Page 124 · click to enlarge
Page 124

PointType Property

Vision ObjectsPoint

Defines whether the Point object will have its position based on either the position the Point object is placed on the Screen (0 - Screen), the midpoint of a line (1 - midpoint), or the intersection of 2 lines (2 - intersection).

VGet Sequence.Object.PointType, var

VSet Sequence.Object.PointType, 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.

0. Screen Sets the Point object's position to be based upon the position on the screen
1. MidPoint Sets the Point object's position to be based upon the Midpoint of the Line object selected as LineObject1 for this Point.
2. Intersection Sets the Point objects position to be based upon the point were 2 lines intersect as defined by LineObject1 and LineObject2 for this point.
Default0 - Screen

Point objects are useful to define the midpoint or intersection point of a line or lines. This is their primary purpose. The PointType property is used to define the what the position for a Point object will be based upon. As mentioned before there are 3 choices.

0. Screen: This is the default value for a Point object when it is first created but most of the time the PointType property is not set to this value.
1. MidPoint: A point position can be set to coincide with the midpoint of the line defined by the LineObject1 property. If the LineObject1 property does not specify a line, then an error dialog will appear if you try to set the PointType to MidPoint informing you that LineObject1 does not exist. (i.e. you cannot define a point as the midpoint of a nonexistent line.)
2. Intersection: A point position can be set to coincide with the intersection of 2 lines defined by the LineObject1 and LineObject2 Properties. If the either the LineObject1 or LineObject2 property does not specify a Line then an error dialog will appear if you try to set the PointType to Intersection informing you that one of the 2 lines required to form an intersection does not exist.

The intersection of 2 lines does not have to appear directly between the starting and ending points for the lines. The intersection could occur somewhere along the imaginary extension of either or both lines. )

NOTE

PointType Property

Page 125 of the Epson 5 user manual — PointType Property
Page 125 · click to enlarge
Page 125

Line Object, LineObject1 Property, LineObject2 Property, Object Tab

PointType Property

Page 126 of the Epson 5 user manual — Polarity Property
Page 126 · click to enlarge
Page 126

Polarity Property

Vision ObjectsBlob, Edge, ImageOp

For Blob and ImageOp objects, Polarity defines the differentiation between objects and background.

For Edge objects, Polarity defines the transition of an edge.

VGet Sequence.Object.Polarity, var

VSet Sequence.Object.Polarity, 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.

Edge1 - LightToDark Searching for an Edge transition from light to dark
2. DarkToLight Searching for an Edge transition from dark to light
Blob1 - DarkOnLight Find a dark blob on a light background
2. LightOnDark Find a light blob on a dark background

ImageOp: 1 - DarkOnLight The operation will be performed on dark objects.

2. LightOnDark The operation will be performed on light objects.
Default1

The Polarity property is important for both the Edge and Blob objects because it defines one of the core parameters for each.

In the case of the Edge object, the Polarity defines the edge transition along the direction of the edge search.

When using the Blob object, Polarity is critical. The Vision System must be told whether or not to look for light objects on a dark background or dark objects on a light background. Without the proper setting for the Polarity property, the Blob object will return strange results. Keep in mind that if a Blob object can find a dark object on a light background it can also find a light object on a dark background. The ThresholdHigh property and ThresholdLow property will also have an impact on the Blob object 's ability to find blobs. Please refer to ThresholdHigh Property and ThresholdLow Property for more information.

Blob Object, Direction Property, Edge Object, Object Tab, ThresholdLow Property, ThresholdHigh Property

Polarity Property

Page 127 of the Epson 5 user manual — Radius Property
Page 127 · click to enlarge
Page 127

Radius Property

Vision ObjectsPolar

Defines the radius for a Polar object. See diagram below.

VGet Sequence.Object.Radius, var

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.

The radius in pixels

Default50

It is important to remember that the Polar object is used to process images that are circular in nature. The Radius property defines the size of the circle used for the Polar object. This means that the Radius property along with the Thickness property defines the size of the Search Window for the Polar object.

The size required for a Polar object Search very much depends upon what the Polar object is being used for. For example, if the Polar object is being used to Inspect Gear Teeth then the Polar object should be made just a little larger than the Gear to be inspected. However, if the Polar object is used just to find an angular position of a specific part of an image, then the Polar object may be smaller in size. Keep in mind that the smaller the Polar object search window, the faster the execution time for the Polar search.

CenterPoint Property, CenterX Property, CenterY Property, Object Tab, Polar Object, Thickness Property

Radius Property · Thickness Radius

Page 128 of the Epson 5 user manual — RejectOnEdge Property
Page 128 · click to enlarge
Page 128

RejectOnEdge Property

Vision ObjectsBlob, Correlation, Geometric

Determines if an object is rejected if found on the edge of the search window.

VGet Sequence.Object.RejectOnEdge, var

VSet Sequence.Object.RejectOnEdge, 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 Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Do not reject the object if found on edge of search window.

True Reject the object if found on edge of search window.

DefaultFalse

When searching for objects that can fall outside the search window, setting RejectOnEdge to True will prevent these objects from being found. For example, if you are trying to locate the center of a blob, and it falls partially outside the search window will not report the correct center of mass. Therefore, you should use RejectOnEdge to reject the result.

FoundOnEdge Result, Object Tab

RejectOnEdge Property

Page 129 of the Epson 5 user manual — ReferenceType Property
Page 129 · click to enlarge
Page 129

ReferenceType Property

Sets / returns the reference type for a calibration.

VGet Calibration.ReferenceType, var

VSet Calibration.ReferenceType, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

1. Taught points
2. Upward camera
Default1 - Taught points

The calibration reference is a point defined in the robot coordinate system. When taught points are specified, one or two points are taught using a tool on the robot end effector during the teaching process for calibration points. When upward camera is specified, an upward camera that has already been calibrated is used to find the reference target. This method is the most accurate.

CameraOrientation Property, PointsTaught Result, TwoPointReference Property

ReferenceType Property · Vision Calibration

Page 130 of the Epson 5 user manual — RobotAccel Property
Page 130 · click to enlarge
Page 130

RobotAccel Property

Sets / returns the robot point to point motion acceleration used during the calibration cycle.

VGet Calibration.RobotAccel, var

VSet Calibration.RobotAccel, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 1 to 100%.

Default10

Use RobotAccel along with RobotSpeed to configure the speed of a calibration cycle. For more delicate systems, a slow speed and accel should be used. The robot must not cause any vibration of the camera that could affect calibration accuracy.

Accel Statement, RobotSpeed Property, Speed Statement

RobotAccel Property · Vision Calibration

Page 131 of the Epson 5 user manual — RobotArm Property
Page 131 · click to enlarge
Page 131

RobotArm Property

Sets / returns the robot arm used when teaching points for a vision calibration.

VGet Calibration.RobotArm, var

VSet Calibration.RobotArm, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 0 - 3.

Default0

RobotArm defines the arm definition used during the teaching process for a vision calibration.

RobotArm Property · Vision Calibration · RobotLocal, RobotTool

Page 132 of the Epson 5 user manual — RobotLocal Property
Page 132 · click to enlarge
Page 132

RobotLocal Property

Sets / returns the local coordinate system used when teaching points for a vision calibration.

VGet Calibration.RobotLocal, var

VSet Calibration.RobotLocal, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 0 - 15.

Default0

RobotLocal defines the local robot coordinate system used during the teaching process for a vision calibration.

RobotLocal Property · Vision Calibration · RobotArm, RobotTool

Page 133 of the Epson 5 user manual — RobotSpeed Property
Page 133 · click to enlarge
Page 133

RobotSpeed Property

Sets / returns the robot point to point motion speed used during the calibration cycle.

VGet Calibration.RobotSpeed, var

VSet Calibration.RobotSpeed, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 1 to 100%.

Default10

Use RobotSpeed along with RobotAccel to configure the speed of a calibration cycle. For more delicate systems, a slow speed and accel should be used. The robot must not cause any vibration of the camera that could affect calibration accuracy.

Accel Statement, RobotAccel Property, Speed Statement

RobotSpeed Property · Vision Calibration

Page 134 of the Epson 5 user manual — RobotTool Property
Page 134 · click to enlarge
Page 134

RobotTool Property

Sets / returns the robot tool used when teaching points for a vision calibration.

VGet Calibration.RobotTool, var

VSet Calibration.RobotTool, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value from 0 - 3.

Default0

RobotTool defines the tool used during the teaching process for a vision calibration.

RobotTool Property · Vision Calibration · RobotArm, RobotLocal

Page 135 of the Epson 5 user manual — RobotU Result
Page 135 · click to enlarge
Page 135

RobotU Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Line, Polar

Returns the U angle of the found part's position in the robot coordinate system.

VGet Sequence.Object.RobotU [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real value representing in degrees (0 if no calibration).

The RobotU result is similar to the Angle result except that the position results are returned with reference to the robot coordinate system. This means that the RobotU result is suited for robot guidance applications. However, keep in mind that a special result called the RobotXYU result is most often used for robot guidance because it returns not only the U, but also the X, and U coordinate positions as well as whether or not the part was found. See RobotXYU Result for more information.

It should be noted that the RobotU result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then the RobotU result will return 0.

For the RobotU Result, the following statistics are available. RobotUMax, RobotUMean, RobotUMin, RobotUStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, Blob Object, CameraXYU Result, Correlation Object, Edge Object, Found Result, Geometric Object, Line Object, PixelXYU Result, Polar Object, RobotX Result, RobotY Result, RobotXYU Result

RobotU Result · Statistics

Page 136 of the Epson 5 user manual — RobotX Result
Page 136 · click to enlarge
Page 136

RobotX Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the X position coordinate of the found part's position in the robot coordinate system.

VGet Sequence.Object.RobotX [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Real number in millimeters.

The RobotX result returns an X coordinate in the robot coordinate system, and can therefore be used for robot guidance applications. However, keep in mind that a special result called the RobotXYU result is most often used for robot guidance because it returns not only the X, but also the Y, and U coordinate positions as well as whether or not the part was found. See RobotXYU Result for more information.

The RobotX Result is always returned in millimeters.

It should be noted that the RobotX result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotX result will cause an error to occur.

For the RobotX Result, the following statistics are available. RobotXMax, RobotXMean, RobotXMin, RobotXStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, Blob Object, CameraXYU Result, Correlation Object, Edge Object, Found Result, Geometric Object, PixelXYU Result, Point Object, Polar Object, RobotY Result, RobotU Result, RobotXYU Result

RobotX Result · Statistics

Page 137 of the Epson 5 user manual — RobotX1 Result
Page 137 · click to enlarge
Page 137

RobotX1 Result

Vision ObjectsLine

Returns the X coordinate of the starting point position (X1) of a Line object in the robot coordinate system.

VGet Sequence.Object.RobotX1, var

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 Real variable that will contain the value of the result.

Real number in millimeters.

Every line must have a starting point and ending point. The RobotX1 and RobotX2 results represent the X coordinate position starting (X1,Y1) and endpoints (X2,Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (RobotX1, RobotY1) and (RobotX2, RobotY2) coordinate pairs can actually be Robot coordinate positions which match the RobotX and RobotY results for other vision objects. In other words if a Line object's starting point is defined by a Correlation object, then the (RobotX, RobotY) results from the Correlation object will match the (RobotX1, RobotY1) results for the Line object.

The RobotX1 result is always in millimeters in the robot coordinate system.

It should be noted that the RobotX1 result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotX1 result will cause an error to occur.

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelX2 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotX2 Result, RobotXYU Result, RobotY Result, RobotY1 Result, X1 Property, X2 Property, Y1 Property, Y2 Property

RobotX1 Result

Page 138 of the Epson 5 user manual — RobotX2 Result
Page 138 · click to enlarge
Page 138

RobotX2 Result

Vision ObjectsLine

Returns the X coordinate of the ending point position (X2) of a Line object in the robot coordinate system.

VGet Sequence.Object.RobotX2, var

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 Real variable that will contain the value of the result.

Real number in millimeters.

Every line has a starting point and ending point. The RobotX1 and RobotX2 results represent the X coordinates of the line starting point (X1, Y1) and end point (X2, Y2) of the specified Line object. Since Line object starting and end points can be assigned to other vision objects, the (RobotX1, RobotY1) and (RobotX2, RobotY2) coordinate pairs can actually be robot coordinate positions which match the RobotX and RobotY results for other vision objects. (In other words if a Line object's endpoint is defined by a Correlation object, then the (RobotX, RobotY) results from the Correlation object will match the (RobotX2, RobotY2) results for the Line object.)

The RobotX2 result is always in millimeters in the robot coordinate system.

It should be noted that the RobotX2 result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotX2 result will cause an error to occur.

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotX1 Result, Robot|XYU Result, RobotY Result, RobotY1 Result, RobotY2 Result, X1 Property, X2 Property, Y1 Property, Y2 Property

RobotX2 Result

Page 139 of the Epson 5 user manual — RobotXYU Result
Page 139 · click to enlarge
Page 139

RobotXYU Result

Vision ObjectsBlob, Correlation, Edge, Point, Polar

Returns the RobotX, RobotY and RobotU position coordinates of the found part's position with respect to the robot coordinate system.

VGet Sequence.Object.RobotXYU [(result)], found, xVar, yVar, uVar

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.

found Boolean variable representing whether or not the part you are looking for was found.

xVar Real variable that will contain the X coordinate position of the part.

yVar Real variable that will contain the Y coordinate position of the part.

uVar Real variable that will contain the angular position (rotation) of the part.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

found True or False

xVar Real number in millimeters

yVar Real number in millimeters

uVar Real number in degrees

The RobotXYU result returns a position in the robot coordinate system and therefore can be used for robot guidance applications. The RobotXYU result xVar and yVar values are always returned in millimeters. The uVar value is always returned in degrees. When used for a Point object, uVar always returns 0.

It should be noted that the RobotXYU result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then the RobotXYU result cause an error to occur.

Blob Object, CameraX Result, CameraY Result, CameraXYU Result, Correlation Object, Edge, Found Result, PixelXYU Result, Point Object, Polar Object, RobotX Result, RobotY Result, RobotU Result

RobotXYU Result · Runtime only

Page 140 of the Epson 5 user manual — RobotY Result
Page 140 · click to enlarge
Page 140

RobotY Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Point, Polar

Returns the Y coordinate of the found part's position in the robot coordinate system.

VGet Sequence.Object.RobotY [(result)] , var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

var Real number in millimeters.

The RobotX result returns an Y coordinate in the robot coordinate system, and can therefore be used for robot guidance applications. However, keep in mind that a special result called the RobotXYU result is most often used for robot guidance because it returns not only the Y, but also the X, and U coordinate positions as well as whether or not the part was found. See RobotXYU Result for more information.

The RobotY Result is always returned in millimeters.

It should be noted that the RobotY result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotY result will cause an error to occur.

For the RobotY Result, the following statistics are available. RobotYMax, RobotYMean, RobotYMin, RobotYStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Angle Result, Blob Object, CameraXYU Result, Correlation Object, Edge Object, Found Result, Geometric, PixelXYU Result, Point Object, Polar Object, RobotX Result, RobotU Result, RobotXYU Result

RobotY Result · Statistics

Page 141 of the Epson 5 user manual — RobotY1 Result
Page 141 · click to enlarge
Page 141

RobotY1 Result

Vision ObjectsLine

Returns the Y coordinate of the starting point position (Y1) of a Line object in the robot coordinate system.

VGet Sequence.Object.RobotY1, var

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 Real variable that will contain the value of the result.

Real number in millimeters

Every line must have a starting point and ending point. The RobotY1 and RobotY2 results represent the Y coordinate position starting (Y1) and endpoints (Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (RobotX1, RobotY1) and (RobotX2, RobotY2) coordinate pairs can actually be Robot coordinate positions which match the RobotX and RobotY results for other vision objects. (In other words if a Line object's starting point is defined by a Correlation object, then the (RobotX, RobotY) results from the Correlation object will match the (RobotX1, RobotY1) results for the Line object.)

The RobotY1 result is always in millimeters in the robot coordinate system.

It should be noted that the RobotY1 result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotY1 result will cause an error to occur.

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotX1 Result, RobotX2 Result, RobotXYU Result, RobotY Result, RobotY2 Result, X1 Property, X2 Property, Y1 Property, Y2 Property

RobotY1 Result

Page 142 of the Epson 5 user manual — RobotY2 Result
Page 142 · click to enlarge
Page 142

RobotY2 Result

Vision ObjectsLine

Returns the Y coordinate of the ending point position (Y2) of a Line object in the robot coordinate system.

VGet Sequence.Object.RobotY2, var

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 Real variable that will contain the value of the result.

Real number in millimeters

Every line must have a starting point and ending point. The RobotY1 and RobotY2 results represent the Y coordinate position starting (Y1) and endpoints (Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (RobotX1, RobotY1) and (RobotX2, RobotY2) coordinate pairs can actually be robot coordinate positions which match the RobotX and RobotY results for other vision objects. (In other words if a Line object's endpoint is defined by a Correlation object, then the (RobotX, RobotY) results from the Correlation object will match the (RobotX2, RobotY2) results for the Line object.)

The RobotY2 result is always represented in millimeters with respect to the robot coordinate system.

It should be noted that the RobotY2 result can only be calculated for vision sequences which have been calibrated with the robot coordinate system. If no calibration has been assigned to the vision sequence then using VGet to retreive the RobotY2 result will cause an error to occur.

Angle Result, Line Object, Object Tab, PixelX Result, PixelX1 Result, PixelX2 Result, PixelY Result, PixelY1 Result, PixelY2 Result, RobotX Result, RobotX1 Result, RobotX2 Result, RobotXYU Result, RobotY Result, RobotY1 Result, X1 Property, X2 Property, Y1 Property, Y2 Property

RobotY2 Result

Page 143 of the Epson 5 user manual — RotationAngle Property
Page 143 · click to enlarge
Page 143

RotationAngle Property

Vision ObjectsImageOp

Sets/returns the angle of rotation for the ImageOp object Rotate operation.

VGet Sequence.Object.RotationAngle, var

VSet Sequence.Object.RotationAngle, 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.

Default0 degrees

RotationAngle is used to determine how many degrees to rotate the image when the AngleObject property is set to Screen. If AngleObject is not set to Screen, the RotationAngle has no effect.

Rotation is counter-clockwise for positive angles.

Pixels that are not in the rotation are set to 0 (black).

AngleObject Property, ImageOp Object, Operation Property

RotationAngle Property

Page 144 of the Epson 5 user manual — Roughness Result
Page 144 · click to enlarge
Page 144

Roughness Result

Vision ObjectsBlob

Returns the roughness of a blob.

VGet Sequence.Object.Roughness [(result)], var

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 Real variable that will contain the value of the result.

result Optional integer result number from 1 to the NumberToFind property. If omitted, the result number is the CurrentResult.

Minimum value is 1.0.

Roughness is a measure of the unevenness or irregularity of a blob's surface. It is the ratio of the true perimeter to the convex perimeter of a blob. The convex perimeter is the length of a line connecting all the extremities of the blob directly, while the true perimeter is the length of a line connecting every pixel along the blob's edge. Smooth convex blobs have a roughness of 1.0 (the minimum), whereas rough blobs have a higher value because their true perimeter is bigger than their convex perimeter.

Compactness Result, Holes Result, Perimeter Result

Roughness Result

Page 145 of the Epson 5 user manual — RuntimeAcquire Property
Page 145 · click to enlarge
Page 145

RuntimeAcquire Property

The RuntimeAcquire property tells the vision sequence which method to use to acquire an image for use with that sequence.

VGet Sequence.Object.RuntimeAcquire, var

VSet Sequence.Object.RuntimeAcquire, 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.

0 - None This tells the vision system not to acquire an image. Simply use the image which is already in the frame buffer. This is useful when a series of Vision sequences are to work from the same image. For example, you could acquire an image in sequence #1. During this sequence you could also execute some vision objects. Next assume that you want to use another vision sequence on the same image. Simply set the RuntimeAcquire property to None for the 2nd vision sequence and the same image will be used for both sequences.

1. Stationary The camera is stationary (not moving). A new image is acquired at the start of the vision sequence. This is the normal method for running a vision sequence. Each time a new vision sequence is executed, a new image is acquired at the start of the sequence. The ExposureTime property affects how stationary images are acquired. See ExposureTime for details.
2. Strobed The image acquisition starts by the trigger input. Also the strobe output is output. This is the mechanism for setting up strobed lighting for capturing moving images within the frame buffer. See the remarks section below for more details.
Default1 - Stationary

RuntimeAcquire Property · Vision Sequence

Page 146 of the Epson 5 user manual — RuntimeAcquire Property
Page 146 · click to enlarge
Page 146

The RuntimeAcquire property is very important to understand. There are 3 setting for the RuntimeAcquire property as explained in the Values section. The most common of the 3 is the Stationary setting since in most cases you will want to acquire a new image at the beginning of each vision sequence.

However, you may also use the same image for more than 1 sequence. Simply acquire an image for the 1st sequence and then use the same image in the 2nd sequence making sure to set the RuntimeAcquire property to None for the 2nd sequence.

The 3rd Acquisition method is called Strobed. This acquiers an image as follows. When the vision sequence is run, the sequence will wait for an input trigger. At the instance the trigger input goes active, the vision sequence will initiate an acquisition, thus capturing the image at the same time as the strobe of the light source. Please see Image Acquisition in the Vision Guide 5.0 manual for more details.

Object Tab, RuntimeFreeze Property, Vision Sequences

RuntimeAcquire Property

Page 147 of the Epson 5 user manual — RuntimeFreeze Property
Page 147 · click to enlarge
Page 147

RuntimeFreeze Property

Defines whether or not to freeze the display of an image acquired during a vision sequence.

VGet Sequence.RuntimeFreeze, var

VSet Sequence.RuntimeFreeze, value

Sequence Name of a sequence or string variable containing a sequence name.

var Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Do not freeze the image. (Image display area will show live image)

True Freeze the image. (Image display area will show frozen image)

DefaultTrue

The RuntimeFreeze property lets you choose whether to show the image acquired during a sequence, or show live video after the sequence runs.

RuntimeAcquire Property, Sequence Tab, Vision Sequences

RuntimeFreeze Property · Vision Sequence

Page 148 of the Epson 5 user manual — SaveImage Property
Page 148 · click to enlarge
Page 148

SaveImage Property

Saves the currently displayed image on disk.

SaveImage allows you to save images to disk that can be used by the ImageFile property. The file can be saved in the following formats: MIM (default format for Vision Guide), BMP, TIF, or JPG.

Object Tab, ImageFile Property, ImageSource Property

SaveImage Property · Designtime Only · Vision Sequence

Page 149 of the Epson 5 user manual — Scale Result
Page 149 · click to enlarge
Page 149

Scale Result

Vision ObjectsGeometric

Returns the scale of the object found.

VGet Sequence.Object.Scale [(result)], var

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 Real variable that will contain the value of the result.

result Optional result number. If omitted, the result number is the CurrentResult.

Real number scale factor.

You can use the Scale result to determine the size of the object found compared to the size of the model trained. The ScaleEnabled property must be set to True to allow the scale to be determined during the search.

Object Tab , ScaleEnable Property, ScaleFactorMax Property, ScaleFactorMin Property, ScaleTarget Property

Scale Result

Page 150 of the Epson 5 user manual — ScaleEnable Property
Page 150 · click to enlarge
Page 150

ScaleEnable Property

Vision ObjectsGeometric

Enables the Scale result.

VGet Sequence.Object.ScaleEnable, var

VSet Sequence.Object.ScaleEnable, 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 Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Do not account for scale during search.

True Determine scale factor.

You must set ScaleEnable to True to account for scale differences during the search.

Geometric Object, Object Tab, Scale Result, ScaleFactorMax Property, ScaleFactorMin Property, ScaleTarget Property, Vision Sequences

ScaleEnable Property

Page 151 of the Epson 5 user manual — ScaleFactorMax Property
Page 151 · click to enlarge
Page 151

ScaleFactorMax Property

Vision ObjectsGeometric

Sets / returns the maximum scale factor applied to the ScaleTarget value.

VGet Sequence.Object.ScaleFactorMax, var

VSet Sequence.Object.ScaleFactorMax, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

1.0 - 2.0

Default2.0

ScaleFactorMax and ScaleFactorMin determine the scale range to search for as applied to the ScaleTarget property. The maximum scale found is ScaleFactorMax * ScaleTarget.

To use ScaleFactorMax and ScaleFactorMin, you must set the ScaleEnabled property to True.

Object Tab, Scale Result, ScaleEnable Property, ScaleFactorMin Property, ScaleTarget Property

ScaleFactorMax Property

Page 152 of the Epson 5 user manual — ScaleFactorMin Property
Page 152 · click to enlarge
Page 152

ScaleFactorMin Property

Vision ObjectsGeometric

Sets / returns the minimum scale factor applied to the ScaleTarget value.

VGet Sequence.Object.ScaleFactorMin, var

VSet Sequence.Object.ScaleFactorMin, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

0.5 - 1.0

Default0.5

ScaleFactorMax and ScaleFactorMin determine the scale range to search for as applied to the ScaleTarget property. The minimum scale found is ScaleFactorMin * ScaleTarget.

To use ScaleFactorMax and ScaleFactorMin, you must set the ScaleEnabled property to True.

Object Tab, Scale Result, ScaleEnable Property, ScaleFactorMax Property, ScaleTarget Property

ScaleFactorMin Property

Page 153 of the Epson 5 user manual — ScaleTarget Property
Page 153 · click to enlarge
Page 153

ScaleTarget Property

Vision ObjectsGeometric

Sets / returns the expected scale of the model you are searching for.

VGet Sequence.Object.ScaleTarget, var

VSet Sequence.Object.ScaleTarget, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

0.5 - 2.0

Default1.0

To use ScaleTarget, you must set the ScaleEnabled property to True. The actual scale range is determined by ScaleTarget, ScaleFactorMin, and ScaleFactorMax.

The range is determined as follows:

minimum scale = ScaleFactorMin * ScaleTarget

maximum scale = ScaleFactorMax * ScaleTarget

Object Tab, Scale Result, ScaleEnable Property, ScaleFactorMax Property, ScaleFactorMin Property

ScaleTarget Property

Page 154 of the Epson 5 user manual — Score Result
Page 154 · click to enlarge
Page 154

Score Result

Vision ObjectsCorrelation, Edge, Geometric, Polar

Returns an integer value which represents the level at with the runtime image matches the model for which it is searching. (In the case of the Edge object the Score result measures the level at which a contrast between Light to Dark or Dark to Light transition takes place.) In summary an object's Score result is the measure of how well the model was found.

VGet Sequence.Object.Score [(result)], var

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 result.

result Optional result number. If omitted, the result number is the CurrentResult.

0. 1000

The Score result is the basic value used to measure how well a feature in the search area matches a previously taught model. If the Score is not greater than or equal to the Accept property value, the object is considered not found.

Normally a low Score result means that the image doesn't contain any patterns which closely match the Model. However, it should be noted that a low Score result can also be obtained if the Accept property and Confusion Properties are not set high enough. If these properties are set low, the first pattern found that meets the Accept and Confusion property thresholds will be returned as found. This could mean that other patterns in the image which may have been better matches would not be found.

Don't expect that your Score results will always be close to 1000. Just because a Score result is returned which is relatively low (as compared to a perfect score of 1000) doesn't mean that the application cannot be done or isn't reliable. There are many different application types and each has its own circumstances which affect the Score results. Some applications will return Score results of less than 500 while others may always return Score results over 900. Proper settings of lighting, part presentation, overall vision application setup, and proper vision tool usage will all affect the Score results.

For the Score Result, the following statistics are available. ScoreMax, ScoreMean, ScoreMin, ScoreStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Accept Property, Confusion Property, Correlation Object, Edge Object, Found Result, Geometric Object, Object Tab, Polar Object

Score Result · Statistics

Page 155 of the Epson 5 user manual — ScoreWeightContrast Property
Page 155 · click to enlarge
Page 155

ScoreWeightContrast Property

Vision ObjectsEdge

Sets the percentage of the score that depends on contrast.

VGet Sequence.Object.ScoreWeightContrast, var

VSet Sequence.Object.ScoreWeightContrast, 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.

Integer value from 0 - 100%

Default50

The ScoreWeightContrast is a percentage value that tells the Edge object how much to weigh the contrast result in the final score. ScoreWeightContrast works with ScoreWeighStrength. Both of these property values must add up to 100%. When you set one property, the system will automatically set the other property to the correct value.

Edge Object, Contrast Result, ScoreWeightStrength Property

ScoreWeightContrast Property

Page 156 of the Epson 5 user manual — ScoreWeightStrength Property
Page 156 · click to enlarge
Page 156

ScoreWeightStrength Property

Vision ObjectsEdge

Sets the percentage of the score that depends on edge strength.

VGet Sequence.Object.ScoreWeightStrength, var

VSet Sequence.Object.ScoreWeightStrength, 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.

Integer value from 0 - 100%

Default50

The ScoreWeightStrength is a percentage value that tells the Edge object how much to weigh the edge strength result in the final score. ScoreWeightStrength works with ScoreWeighContrast. Both of these property values must add up to 100%. When you set one property, the system will automatically set the other property to the correct value.

Edge Object, Contrast Result, ScoreWeightContrast Property

ScoreWeightStrength Property

Page 157 of the Epson 5 user manual — SearchWidth Property
Page 157 · click to enlarge
Page 157

SearchWidth Property

Vision ObjectsEdge

The SearchWidth property specifies the width of the search for Edge objects.

VGet Sequence.Object.SearchWidth, var

VSet Sequence.Object.SearchWidth, 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.

Integer number from 3-99 pixels.

Default3

Normally the Edge object will work fine with the default 3 pixel search width. However, for some applications you may want to increase the width of the edge search to help find an edge with some imperfections. By increasing the SearchWidth, the Edge object can gather more information to determine where the edge is. During processing, the 2-dimensional search window is transformed to a 1-dimension row of grayscale values. Edge filters are applied to this row of values to determine where the edge is. Using a wider search window helps ignore imperfections in the edge.

The figures below show an edge object with SearchWidth set to 3 on the left and SearchWidth set to 30 on the right. The edge object on the left finds the bump, where as the edge object on the right finds the correct edge because the wider search width will cause the projected search line to favor the true edge.

Epson 5 — SearchWidth Property diagram (page 157)
Fig. 2 · SearchWidth Property

Edge Object, Score Result, Object Tab

SearchWidth Property

Page 158 of the Epson 5 user manual — SearchWin Property
Page 158 · click to enlarge
Page 158

SearchWin Property

Vision ObjectsBlob, Correlation, ImageOp

Defines the position and size of a search window.

VGet Sequence.Object.SearchWin, LeftVar, TopVar, WidthVar, HeightVar

VSet Sequence.Object.SearchWin, LeftVar, TopVar, WidthVar, HeightVar

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.

LeftVar Integer variable representing the leftmost position of the Search Window (in Pixels) to get from or set to the SearchWinLeft property.

TopVar Integer variable representing the uppermost position of the Search Window (in Pixels) to get from or set to the SearchWinTop property.

WidthVar Integer variable representing the width of the Search Window (in Pixels) to get from or set to the SearchWinWidth property.

HeightVar Integer variable representing the height of the Search Window (in Pixels) to get from or set to

the SearchWinHeight property.

All Values are in Pixels. See the Left, Top, Width, and SearchWinHeight Properties for exact value data.

The SearchWin property was added to provide easy access to the SearchWinTop, SearchWinLeft, SearchWinWidth and SearchWinHeight Properties from the SPEL+ Language. The SearchWin property allows the setting of all 4 Properties with just 1 function call. There are cases where the user may want to define the position and size of the Search Window dynamically and for that reason the SearchWin property was created.

Do not the set the SearchWin setting too large. If the value is too large, the detection time gets longer and may result in false detection.

Blob Object, Correlation Object, ImageOp Object, Object Tab, SearchWinHeight Property, SearchWinLeft Property, SearchWinTop Property, SearchWinWidth Property

SearchWin Property · Runtime only

Page 159 of the Epson 5 user manual — SearchWinHeight Property
Page 159 · click to enlarge
Page 159

SearchWinHeight Property

Vision ObjectsBlob, Correlation, Geometric, ImageOp

Defines the height of an object's search window.

VGet Sequence.Object.SearchWinHeight, var

VSet Sequence.Object.SearchWinHeight, 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.

Integer number in pixels from 10 to video height - SearchWinTop

Default100

The SearchWinHeight property is available for the Blob, Correlation, Geometric, and ImageOp objects. Each of these object types have similar rectangular Search Windows used to define the area to search within. The SearchWinHeight property is set automatically when the user drags the upper or lower horizontal window handles for the Search Window of each object type.

There are cases where the user may want to expand or position the Search Window dynamically and for that reason the SearchWinHeight property can also be set from the SPEL+ Language.

Do not the set the SearchWinHeight setting too large. If the value is too large, the detection time gets longer and may result in false detection.

Blob Object, Correlation Object, Geometric Object, ImageOp Object, Object Tab, SearchWinLeft Property, SearchWinTop Property, SearchWinWidth Property, Window Property

SearchWinHeight Property

Page 160 of the Epson 5 user manual — SearchWinLeft Property
Page 160 · click to enlarge
Page 160

SearchWinLeft Property

Vision ObjectsBlob, Correlation, Geometric, ImageOp

Defines the X coordinate of the left side of an object's search window.

VGet Sequence.Object.SearchWinLeft, var

VSet Sequence.Object.SearchWinLeft, 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.

Integer number in pixels from 0 to video width - SearchWinWidth

The SearchWinLeft property is available for the Blob, Correlation, Geometric, and ImageOp objects. Each of these object types have similar rectangular Search Windows used to define the area to search within. The SearchWinLeft property is set automatically when the user drags the left vertical window handle for the Search Window of each object type.

There are cases where the user may want to position the Search Window dynamically and for that reason the SearchWinLeft property can also be set from the SPEL+ Language.

Blob Object, Correlation Object, Geometric Object, ImageOp Object, Object Tab, SearchWinHeight Property, SearchWinTop Property, SearchWinWidth Property, Window Property

SearchWinLeft Property

Page 161 of the Epson 5 user manual — SearchWinTop Property
Page 161 · click to enlarge
Page 161

SearchWinTop Property

Vision ObjectsBlob, Correlation, Geometric, ImageOp

Defines the Y coordinate of the top of an object's search window.

VGet Sequence.Object.SearchWinTop, var

VSet Sequence.Object.SearchWinTop, 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.

Integer value in pixels from 0 to video height - SearchWinHeight

The SearchWinTop property is available for the Blob, Correlation, Geometric, and ImageOp objects. Each of these object types have similar rectangular Search Windows used to define the area to search within. The SearchWinTop property is set automatically when the user drags the upper horizontal window handle of a specific object's Search Window or moves an object's Search Window vertically. However, the Top position of an object's Search Window can also be moved by simply entering a new value in the SearchWinTop property.

There are cases where the user may want to position the Search Window dynamically and for that reason the SearchWinTop property can also be set from the SPEL+ Language.

Blob Object, Correlation Object, Geometric Object, ImageOp Object, Object Tab, SearchWinHeight Property, SearchWinLeft Property, SearchWinWidth Property, Window Property

SearchWinTop Property

Page 162 of the Epson 5 user manual — SearchWinWidth Property
Page 162 · click to enlarge
Page 162

SearchWinWidth Property

Vision ObjectsBlob, Correlation, Geometric, ImageOp

Defines the width of the an object's search window.

VGet Sequence.Object.SearchWinWidth, var

VSet Sequence.Object.SearchWinWidth, 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.

Integer number in pixels from 10 to video width - SearchWinLeft

Default100

The SearchWinWidth property is available for the Blob, Correlation, Geometric, and ImageOp objects. Each of these object types have similar rectangular Search Windows used to define the area to search within. The SearchWinWidth property is set automatically when the user drags the left or right vertical window handles for the Search Window of each object type. However, the width of an object's Search Window can also be adjusted by simply entering a new value in the SearchWinWidth property.

There are cases where the user may want to expand or position the Search Window dynamically and for that reason the SearchWinWidth property can also be set from the SPEL+ Language.

Do not the set the SearchWinWidth setting too large. If the value is too large, the detection time gets longer and may result in false detection.

Blob Object, Correlation Object, Geometric Object, ImageOp Object, Object Tab, SearchWinHeight Property, SearchWinLeft Property, SearchWinTop Property, Window Property

SearchWinWidth Property

Page 163 of the Epson 5 user manual — SeparationAngle Property
Page 163 · click to enlarge
Page 163

SeparationAngle Property

Vision ObjectsGeometric

Sets / returns the minimum angle allowed between found objects.

VGet Sequence.Object.SeparationAngle, var

VSet Sequence.Object.SeparationAngle, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real value from 0 - 180 degrees

Default10

Use SeparationAngle to specify the minimum angle required between found objects.

SeparationAngle works with SeparationMinX, SeparationMinY, SeparationScale. Note that only one separation condition needs to be satisfied for objects to be considered found.

Object Tab, SeparationMinX Property, SeparationMinY Property, SeparationScale Property

SeparationAngle Property · 0 = Disabled

Page 164 of the Epson 5 user manual — SeparationMinX Property
Page 164 · click to enlarge
Page 164

SeparationMinX Property

Vision ObjectsGeometric

Sets / returns the minimum distance along the X axis allowed between found objects.

VGet Sequence.Object.SeparationMinX, var

VSet Sequence.Object.SeparationMinX, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real value from 0 - 100% of model width

Default10

Use SeparationMinX to specify the minimum distance along the X axis required between found objects. SeparationMinX is a percentage of model width.

SeparationMinX works with SeparationAngle, SeparationMinY, SeparationScale. Note that only one separation condition needs to be satisfied for objects to be considered found.

Object Tab, SeparationAngle Property, SeparationMinY Property, SeparationScale Property

SeparationMinX Property · 0 = Disabled

Page 165 of the Epson 5 user manual — SeparationMinY Property
Page 165 · click to enlarge
Page 165

SeparationMinY Property

Vision ObjectsGeometric

Sets / returns the minimum distance along the Y axis allowed between found objects.

VGet Sequence.Object.SeparationMinY, var

VSet Sequence.Object.SeparationMinY, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real value from 0 - 100% of model width

Default10

Use SeparationMinY to specify the minimum distance along the Y axis required between found objects. SeparationMinY is a percentage of model height.

SeparationMinY works with SeparationAngle, SeparationMinX, SeparationScale. Note that only one separation condition needs to be satisfied for objects to be considered found.

Object Tab, SeparationAngle Property, SeparationMinX Property, SeparationScale Property

SeparationMinY Property · 0 = Disabled

Page 166 of the Epson 5 user manual — SeparationScale Property
Page 166 · click to enlarge
Page 166

SeparationScale Property

Vision ObjectsGeometric

Sets / returns the minimum scale difference allowed between found objects.

VGet Sequence.Object.SeparationScale, var

VSet Sequence.Object.SeparationScale, 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 Real variable that will contain the value of the property.

value Real expression for the new value of the property.

Real value from 1.0 - 4.0

Default1.1

Use SeparationScale to specify the minimum scale difference required between found objects.

SeparationScale works with SeparationMinX, SeparationMinX, SeparationScale. Note that only one separation condition needs to be satisfied for objects to be considered found.

Object Tab, SeparationAngle Property, SeparationMinX Property, SeparationMinY Property

SeparationScale Property

Page 167 of the Epson 5 user manual — SharedEdges Property
Page 167 · click to enlarge
Page 167

SharedEdges Property

Vision ObjectsGeometric

Sets / returns whether to allow edges to be shared between found objects.

VGet Sequence.Object.SeparationScale, var

VSet Sequence.Object.SeparationScale, 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 Boolean variable that will contain the value of the property.

value Boolean expression for the new value of the property.

False Shared edges are not allowed.

True Shared edges are allowed.

DefaultFalse

You can choose to allow found objects to share edges by setting SharedEdges to True. Otherwise, edges that can be part of more than one found object are considered part of the found object with the greatest score.

SharedEdges Property · Object Tab

Page 168 of the Epson 5 user manual — ShowAllResults Result
Page 168 · click to enlarge
Page 168

ShowAllResults Result

Vision ObjectsBlob, Correlation, Edge, Geometric

A button is placed in the ShowAllResults result value field which when clicked opens a dialog which shows all the results for this vision object.

The ShowAllResults result is a special type of results which allows the user to see all the results for a specific vision object. It is the most useful when there are multiple results for a specific vision object because you can see all the results at one time.

The ShowAllResults result was designed to make is easier to see multiple results all together in one place. Therefore, it is only available for those vision objects which support multiple results (Blob, Correlation, and Geometric objects.)

Blob Object, Correlation Object, Edge Object, Geometric Object, Object Tab

ShowAllResults Result · Designtime only

Page 169 of the Epson 5 user manual — ShowExtensions Property
Page 169 · click to enlarge
Page 169

ShowExtensions Property

Vision ObjectsLine

By default, Line objects display a line from a starting reference (defined by the StartPointObject property) to an ending reference (defined by the EndPointObject property). The ShowExtensions property causes the graphics display of the line to be extended out (by using a dotted line to indicate the extensions) so you can see the complete projection of the line.

VGet Sequence.Object.ShowExtensions, var

VSet Sequence.Object.ShowExtensions, 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 Boolean variable that will contain the value of the property.

False Do not show line extensions

True Show line extensions

DefaultFalse

When a Line object is created, the default graphic display of the Line object is simply a line with a starting and ending point. The StartPointObject and EndPointObject Properties can be used to modify the direction and length of the line but in some cases you may want to see where the line extends to. This is the purpose of the ShowExtensions property.

Extensions are useful when you need to see more than just a line between 2 points. For example, assume you create a Line object perpendicular to another line and the point at which the 2 lines meet is not actually on the physical line but at some location extended from the line. You can see this point of intersection by running your application with the ShowExtensions property set to True.

EndPointObject Property, Line Object, Object Tab, StartPointObject Property

ShowExtensions Property

Page 170 of the Epson 5 user manual — ShowModel Property
Page 170 · click to enlarge
Page 170

ShowModel Property

Vision ObjectsCorrelation, Geometric, Polar

The ShowModel property allows a previously taught model to be displayed at various zoom settings. You can also change the model orgin and don’t care pixels for some models.

Correlation and Geometric Objects:

You can zoom the model and also change the model origin with mouse or arrow keys and paint / erase “don’t care” pixels.

The ShowModel property is available from the Vision Guide window Object tab.

The user clicks on the value field of the ShowModel property which causes a button to appear in the Value field. Click on the button and the model will be displayed in the Vision Guide window.

Changing the model orgin

This allows you to set the model origin more accurately. A check box is provided so that ModelOrgAutoCenter can be toggled. When ModelOrgAutoCenter is set to on, the model origin is centered and cannot be changed.

To change the model origin with the mouse, make sure that the ModelOrgAutoCenter check box is off. Then point to the center of the cross, and click the mouse down. Now drag the cross to the desired position.

Click OK to save the new model origin settings.

Polar Objects:

The model can be zoomed. The ModelOrgAutoCenter check box and drawing toolbar are hidden, since they do not apply in this case. Also, there is a Close button instead of OK and Cancel.

Epson 5 — ShowModel Property diagram (page 170)
Fig. 3 · ShowModel Property

ShowModel Property · Designtime only

Page 171 of the Epson 5 user manual — ShowModel Property
Page 171 · click to enlarge
Page 171

Correlation Object, Geometric Object, Object Tab, Polar Object

ShowModel Property

Page 172 of the Epson 5 user manual — ShowProcessing Property
Page 172 · click to enlarge
Page 172

ShowProcessing Property

Determines whether image processing should be displayed with RunTimeFreeze set to True.

VGet Sequence.ShowProcessing, var

VSet Sequence.ShowProcessing, value

Sequence Name of a sequence or string variable containing a sequence name.

var Boolean variable that will contain the value of the property.

False Do not show processing.

DefaultTrue

Sometimes when using image processing objects such as ImageOp, it is desirable not to see the processing. For example, if you use an ImageOp to binarize an entire image before other objects execute, the display will show the binarized image if ShowProcessing is True. By setting it to False, only the object graphics are displayed without showing the image processing.

RunTimeFreeze Property, Sequence Tab, Vision Sequences

ShowProcessing Property · Vision Sequence · True Show processing

Page 173 of the Epson 5 user manual — SizeToFind Property
Page 173 · click to enlarge
Page 173

SizeToFind Property

Vision ObjectsBlob

Selects which size of blobs to find.

VGet Sequence.Object.SizeToFind, var

VSet Sequence.Object.SizeToFind, 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.

0. Any Find blobs of any size.
1. Largest Find the largest blobs.
2. Smallest Find the smallest blobs.
Default0-Any

Use the SizeToFind property to find the largest or smallest blobs in an image. When a blob object searches for blobs in an image, it finds several candidates; sometimes many more than the desired number. SizeToFind can filter the results so that you get the largest or smallest blobs.

SizeToFind Property · Sort Property

Page 174 of the Epson 5 user manual — Smoothness Property
Page 174 · click to enlarge
Page 174

Smoothness Property

Vision ObjectsGeometric

Sets / returns the smoothness level for the geometric edge extraction filter.

VGet Sequence.Object.Smoothness, var

VSet Sequence.Object.Smoothness, 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.

0. 100
Default50

The Smoothness property allows you to control the smoothing level of the edge extraction filter. The smoothing operation evens out rough edges and removes noise. The range of this control varies from 0 (no smooth) to 100 (a very strong smooth). The default setting is 50.

The DetailLevel property also affects how edges are extracted.

DetailLevel Property, Object Tab, Timeout Property

Smoothness Property

Page 175 of the Epson 5 user manual — Sort Property
Page 175 · click to enlarge
Page 175

Sort Property

Vision ObjectsBlob, Correlation, Geometric

Sets or returns the sort order used for the results of an object.

VGet Sequence.Object.Sort, var

VSet Sequence.Object.Sort, 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.

0. None No sorting is done.
1. PixelX Results are ordered from left to right according to the PixelX result.
2. PixelY Results are ordered from top to bottom according to the PixelY result.
3. PixelXY Results are ordered diagonally from upper left to lower right according to the PixelX and PixelY results.
4. CameraX Results are ordered from left to right according to the CameraX result.
5. CameraY Results are ordered from bottom to top according to the CameraY result.
6. CameraXY Results are ordered diagonally from lower left to upper right according to the CameraX and CameraY results.
7. RobotX Results are ordered along the Robot's X axis according to the RobotX result.
8. RobotY Results are ordered along the Robot's Y axis according to the RobotY result.
9. RobotXY Results are ordered diagonally according to the RobotX and RobotY results.

Default 0 - None

The Sort property allows you to sort the results of an object so that you can retrieve the results in the desired order.

If you want to retrieve results in descending order, then reverse the order that you retrieve them. For example:

For i = numFound To 1 Step -1 VGet seq1.blob01.RobotXYU(i), found(i), x(i), y(i), u(i) Next i

Blob Object, Correlation Object, Geometric Object, Object Tab

Sort Property

Page 176 of the Epson 5 user manual — StartPntObjResult Property
Page 176 · click to enlarge
Page 176

StartPntObjResult Property

Vision ObjectsEdge, Line

Specifies which result to use from the StartPointObject.

VGet Sequence.Object.StartPntObjResult, var

VSet Sequence.Object.StartPntObjResult, 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.

The value can range from 1 to the NumberToFind value for the StartPointObject. If the StartPointObject is 'Screen', then the value is always 1.

StartPntObjResult enables you to attach several objects to the results of one StartPointObject. For example, you could create a blob object with NumberToFind set to 4. Then you could attach a line object to each one of the results by specifying the blob for the StartPointObject of each line and a different StartPntObjResult for each line.

Edge Object, EndPntObjResult Property, Line Object, Object Tab, StartPointObject Property

StartPntObjResult Property

Page 177 of the Epson 5 user manual — StartPointObject Property
Page 177 · click to enlarge
Page 177

StartPointObject Property

Vision ObjectsEdge, Line

Specifies the vision object to connect the starting point of the Line to. (i.e. This property defines the position of the start point of the line.)

VGet Sequence.Object.StartPointObject, var

VSet Sequence.Object.StartPointObject, 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 expression for the new value of the property. Valid vision objects for the StartPointObject property are: Blob, Correlation, Edge, Geometric, Line, and Point objects.

Screen or any object that runs prior to the Line object.

When a Line object is first created, the StartPointObject property is set to Screen. However, Line objects are normally attached to other vision objects. This is the purpose of the StartPointObject and EndPointObject properties. Through these two properties the user can define a line between any two vision objects (except Frames).

Frame objects cannot be used to define an start point for a Line object. However, this does not cause a limitation because Frames are defined by other vision objects. In those cases where you want to define a line start point with a Frame object, use a Point object in the frame to define the start point of the Line object.

It is important to note that for each specific vision sequence, only those vision objects which are executed prior to the Line object in the vision sequence steps will be available to use as an StartPointObject.

Edge Object, EndPointObject Property, Line Object, Object Tab, StartPointType Property

StartPointObject Property

Page 178 of the Epson 5 user manual — StartPointType Property
Page 178 · click to enlarge
Page 178

StartPointType Property

Vision ObjectsEdge, Line

Specifies the type of start point to use for the line object. In most cases the start point type will be a point (which usually means the PixelX and PixelY position of the StartPointObject). However, when the StartPointObject for the current line is a 2nd Line object, the StartPointType property is used to define an intersection point on the 2nd line such as the lines midpoint, endpoint, startpoint or perpendicular position.

VGet Sequence.Object.StartPointType, var

VSet Sequence.Object.StartPointType, 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.

StartPointObject = Line StartPointObject = Screen, Blob, Correlation, Geometric, Edge, or Point object

See remarks.

0. Point
Default2 - MidPoint

When used with objects other than the Line object, the StartPointType can only be of type 0 - Point.

Default0 - Point

StartPointType Property

Page 179 of the Epson 5 user manual — StartPointType Property
Page 179 · click to enlarge
Page 179

As you can see in the Values Table above, most of the StartPointObject's support only 1 StartPointType called Point. This is because most StartPointObject's use the PixelX and PixelY position for a reference position for defining a Start or End Point for a line. So when the StartPointObject is defined as Screen, Blob, Correlation, Edge, or Point object the StartPointType will always be set to Point. )

However, when the StartPointObject is another Line object, the user must decide where on the 2nd line to intersect with the 1st line. The choices are as follows:

1. EndPoint Use the end point of the other line as the endpoint for this line.
2. MidPoint Cut the other line in half and use the center (or midpoint of the other line as the endpoint for this line.
3. Perpendicular Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion and use this position as the end point.
4. StartPoint Use the starting point of the other line as the end point for this line.
5. PerpToStartPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the start point of the first line and use this position as the start point.
6. PerpToMidPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the mid point of the first line and use this position as the start point.
7. PerpToEndPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular fashion through the end point of the first line and use this position as the start point.

If the StartPointObject is modified to a Line object then the StartPointType is automatically changed to MidPoint.

If the StartPointObject is modified to Screen, Blob, Correlation, Edge, or Point object then the StartPointType is automatically changed to Point.

Edge Object, EndPointType Property, Line Object, Object Tab, StartPointObject Property

StartPointType Property

Page 180 of the Epson 5 user manual — Strength Result
Page 180 · click to enlarge
Page 180

Strength Result

Vision ObjectsEdge

Returns the strength of the found Edge.

VGet Sequence.Object.Strength, var

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 result.

0. 100%

Use the Strength result to set the StrengthTarget property.

Edge Object, StrengthTarget Property, StrengthVariation Property

Strength Result

Page 181 of the Epson 5 user manual — StrengthTarget Property
Page 181 · click to enlarge
Page 181

StrengthTarget Property

Vision ObjectsEdge

Sets the desired edge strength to search for.

VGet Sequence.Object.StrengthTarget, var

VSet Sequence.Object.StrengthTarget, 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.

0. 100%
Default0 (search for best strength)

An edge's strength is the minimum/maximum edge value along the width of the edge (depending on polarity). This value is a normalized percentage of the maximum pixel value.

Use StrengthTarget to find edges with lower strengths. First, find the edge you want to search for a record the Strength result value. Next, set the StrengthTarget property to this value. Then set the ScoreWeightStrength to a higher value than ScoreWeightContrast. This tells the Edge object to look for an edge with the desired strength and base the score on it.

Edge Object, Strength Result, StrengthVariation Property

StrengthTarget Property

Page 182 of the Epson 5 user manual — StrengthVariation Property
Page 182 · click to enlarge
Page 182

StrengthVariation Property

Vision ObjectsEdge

StrengthVariation is the tolerance for the StrengthTarget property.

VGet Sequence.Object.StrengthVariation, var

VSet Sequence.Object.StrengthVariation, 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 Long variable that will contain the value of the property.

value Long expression for the new value of the property.

0. 100%
Default0

Use StrengthVariation to tighten the search for the edge with strength of StrengthTarget.

Edge Object, Strength Result, StrengthTarget Property

StrengthVariation Property

Page 183 of the Epson 5 user manual — TargetSequence Property
Page 183 · click to enlarge
Page 183

TargetSequence Property

Specifies the vision sequence that is used to find the calibration target(s) during calibration.

VGet Calibration.TargetSequence, var

VSet Calibration.TargetSequence, value

Calibration Name of a calibration or string variable containing a calibration name.

var String variable that will contain the value of the property.

value String expression for the new value of the property.

String value containing the name of the vision sequence

The TargetSequence property must be specified for all calibrations. For more details, see the chapter Calibration in the Vision Guide manual.

UpwardSequence Property, ReferenceType Property

TargetSequence Property · Vision Calibration

Page 184 of the Epson 5 user manual — Thickness Property
Page 184 · click to enlarge
Page 184

Thickness Property

Vision ObjectsPolar

Defines the thickness (in pixels) of the ring used for the Polar object.

VGet Sequence.Object.Thickness, var

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.

1. 25 pixels
Default5

It is important to remember that the Polar object is used to process images that are circular in nature. The Thickness property defines the thickness of the circular ring which is used to define the Search Window for the Polar Search.

In many cases the Thickness property does not need to be very large for a successful search. Since the Thickness property defines the Search Window size for the Polar object, keeping the Thickness small results in faster Polar search times.

CenterPoint Property, CenterX Property, CenterY Property, Object Tab, Polar Object, Radius Property

Thickness Property · Thickness Radius

Page 185 of the Epson 5 user manual — ThresholdColor Property
Page 185 · click to enlarge
Page 185

ThresholdColor Property

Vision ObjectsBlob, ImageOp

Sets or returns the color of the pixels whose gray values fall between the ThresholdHigh and ThresholdLow properties.

VGet Sequence.Object.ThresholdColor, var

VSet Sequence.Object.ThresholdColor, 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.

1. Black
2. White
DefaultBlack

The ThresholdColor property defines the color of the pixels whose gray values are between the ThresholdHigh and ThresholdLow properties during binarization. For example, when ThresholdColor = Black, ThresholdLow = 50 and ThresholdHigh = 100, then pixels whose gray values are between 50 and 100 will be set to black during binarization. All other pixels will be white.

Blob Object, ImageOp Object, Object Tab, Polarity Property, ThresholdHigh, ThresholdLow Property

ThresholdColor Property

Page 186 of the Epson 5 user manual — ThresholdHigh Property
Page 186 · click to enlarge
Page 186

ThresholdHigh Property

Vision ObjectsBlob, ImageOp

Sets or returns the ThresholdHigh value for a Blob or ImageOp object.

VGet Sequence.Object.ThresholdHigh, var

VSet Sequence.Object.ThresholdHigh, 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.

1. 255 This value must be greater than the ThresholdLow value or an error will occur.

Blob Objects:

The ThresholdHigh property works with the ThresholdLow property to define the grey level regions which represent the feature (or object), the background and the edges of the image. The ThresholdHigh property defines the upper bound for grey level values that are considered to be a blob. Any part of the image which falls within grey level region between ThresholdLow and ThresholdHigh will be assigned a pixel weight of 1. (i.e. it is a blob.)

If the Polarity property is set to DarkOnLight, then grey levels between ThesholdLow and ThresholdHigh will changed to black pixels and all other pixels will be white.

If the Polarity property is set to LightOnDark, then grey levels between ThesholdLow and ThresholdHigh will changed to white pixels and all other pixels will be black.

One of the problems regarding the ThresholdLow and ThresholdHigh Properties is finding the correct values to use for each. This is where the Histogram feature of Vision Guide comes in. You can run a Histogram on an image to see the relationship between the pixel counts at various grey levels. From the Histogram dialog, you can adjust each of the threshold values and view the results.

Blob Object, ImageOp Object,Object Tab, Polarity Property, ThresholdLow Property

ThresholdHigh Property

Page 187 of the Epson 5 user manual — ThresholdLow Property
Page 187 · click to enlarge
Page 187

ThresholdLow Property

Vision ObjectsBlob, ImageOp

Sets or returns the ThresholdLow value for a Blob or ImageOp object.

VGet Sequence.Object.ThresholdLow, var

VSet Sequence.Object.ThresholdLow, 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.

0. 254 This value must be less than the ThresholdHigh value or an error will occur.

Blob Objects:

The ThresholdLow property works with the ThresholdHigh property to define the grey level regions which represent the feature (or object), the background and the edges of the image. The ThresholdLow property defines the lower bound for grey level values that are considered to be a blob. Any part of the image which falls within grey level region between ThresholdLow and ThresholdHigh will be assigned a pixel weight of 1. (i.e. it is a blob.)

If the Polarity property is set to DarkOnLight, then grey levels between ThesholdLow and ThresholdHigh will changed to black pixels and all other pixels will be white.

If the Polarity property is set to LightOnDark, then grey levels between ThesholdLow and ThresholdHigh will changed to white pixels and all other pixels will be black.

One of the problems regarding the ThresholdLow and ThresholdHigh Properties is finding the correct values to use for each. This is where the Histogram feature of Vision Guide comes in. You can run a Histogram on an image to see the relationship between the pixel counts at various grey levels. From the Histogram dialog, you can adjust each of the threshold values and view the results.

Blob Object, ImageOp Object, Object Tab, Polarity Property, ThresholdHigh Property

ThresholdLow Property

Page 188 of the Epson 5 user manual — Time Result
Page 188 · click to enlarge
Page 188

Time Result

Vision ObjectsBlob, Correlation, Edge, Geometric, Polar

Returns the amount of time (in milliseconds) required to process the associated vision object or vision sequence.

VGet Sequence.Object.Time, var

VGet Sequence.Time, var

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 result.

0. 2147483647 milliseconds (positive long integer)

The Time result is used to store how quickly a vision object or vision sequence is able to execute. (i.e. how quickly an object is found.)

The Time result is shown for each vision object (Blob, Correlation, Geometric, Edge, and Polar) as well as for an entire vision sequence.

For the sequence time result: if the RuntimeAcquire property is set to 1 - Stationary (default), then the total time includes the acquisition time plus the total time for all steps in the sequence. The acquisition time can vary and depends on the time it takes for the vision system to synchronize with the camera.

For objects that return multiple results, the time returned is the total time to find all results. When viewed on the Vision Guide window Results list, "(all results)" is appended to the time value to indicate this.

For the Time result, the following statistics are available. TimeMax, TimeMean, TimeMin, TimeStdDev. Please see Statistics in the Vision Guide manual for details about using statistics.

Blob Object, Correlation Object, Edge Object, Geometric Object, Object Tab, Polar Object, Sequence Tab, Vision Sequences

Time Result · Vision Sequence · Statistics

Page 189 of the Epson 5 user manual — Timeout Property
Page 189 · click to enlarge
Page 189

Timeout Property

Vision ObjectsGeometric

Sets / returns the maximum search time for a Geometric object.

VGet Sequence.Object.Timeout, var

VSet Sequence.Object.Timeout, 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 Long integer variable that will contain the value of the property.

value Long integer expression for the new value of the property.

0. 1000000
Default2000

Use the Timeout property to limit the amount of search time for a Geometric object.

Timeout Property · Object Tab

Page 190 of the Epson 5 user manual — TotalArea Result
Page 190 · click to enlarge
Page 190

TotalArea Result

Vision ObjectsBlob

Returns the sum of areas of all results.

VGet Sequence.Object.TotalArea, var

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 Real variable that will contain the value of the result.

Real number from 1- total pixels in image.

TotalArea can be used to determine all pixels in the image being searched whose blobs fall withing the MinArea and MaxArea properties. By setting NumberToFind to 0 and MinArea to 1, the Blob object can be used as a pixel counter.

Area Result, Blob Object, Object Tab, NumberToFind Property

TotalArea Result

Page 191 of the Epson 5 user manual — TriggerMode Property
Page 191 · click to enlarge
Page 191

TriggerMode Property

Specifies the type of trigger signal transition used for electronic shutter release acquisition.

VGet Sequence.TriggerMode, var

VSet Sequence.TriggerMode, value

Sequence Name of a sequence or string variable containing a sequence name.

var Integer variable that will contain the value of the property.

1. Leading edge trigger. The electronic shutter trigger will occur when the trigger signal transitions from low to high.
2. Trailing edge trigger. The electronic shutter trigger will occur when the trigger signal transitions from high to low.
Default1

The TriggerMode property allows you to match the camera trigger signal transition according to the circuit you are using.

RuntimeAcquire Property, Sequence Tab

TriggerMode Property · Vision Sequence · Integer value

Page 192 of the Epson 5 user manual — TwoRefPoints Property
Page 192 · click to enlarge
Page 192

TwoRefPoints Property

Sets / returns whether a calibration should use two reference points instead of one.

VGet Calibration.TwoRefPoints, var

VSet Calibration.TwoRefPoints, value

Calibration Name of a calibration or string variable containing a calibration name.

var Boolean variable that will contain the value of the property.

False Use one reference point

True Use two reference points

Set TwoRefPoints to True to use two reference points for a calibration. During calibration, when CameraOrientation is set to Fixed upward, the system will search for the target, rotate 180 degrees, and search for the target again to calculate the midpoint of the two searches.

CameraOrientation Property, ReferenceType Property

TwoRefPoints Property · Vision Calibration

Page 193 of the Epson 5 user manual — UpwardLamp Property
Page 193 · click to enlarge
Page 193

UpwardLamp Property

Sets / returns the I/O output bit used for the calibration upward camera lamp.

VGet Calibration.UpwardLamp, var

VSet Calibration.UpwardLamp, value

Calibration Name of a calibration or string variable containing a calibration name.

var Integer variable that will contain the value of the property.

Integer value of a valid output bit.

Use the UpwardLamp property to automatically turn on a lamp for a calibration using an upward camera to find the reference point.

UpwardLamp Property · Vision Calibration · Lamp Property, LampDelay

Page 194 of the Epson 5 user manual — UpwardSequence Property
Page 194 · click to enlarge
Page 194

UpwardSequence Property

UpwardSequence specifies the sequence used by an upward looking camera for a mobile calibration target reference.

VGet Calibration.UpwardSequence, var

VSet Calibration.UpwardSequence, value

Calibration Name of a calibration or string variable containing a calibration name.

var String variable that will contain the value of the property.

value String expression for the new value of the property.

ReferenceType Property, TargetSequence Property

UpwardSequence Property · Vision Calibration

Page 195 of the Epson 5 user manual — VGet Statement
Page 195 · click to enlarge
Page 195

VGet Statement

Vision ObjectsAll

VGet is used to get the values of properties and results in SPEL+ and VB Guide.

VGet Sequence .Property, var

VGet Calibration .Property, var

VGet Sequence .Object.Property, var

VGet Sequence .Object .Result [ (resultIndex) ] , var

Sequence Name of a sequence or string variable containing a sequence name.

Calibration Name of a calibration or string variable containing a calibration name.

Object Name of an object or string variable containing an object name. The object must exist in the specified sequence. Omit Object if you are retrieving a sequence or calibration property or result.

Property Name of the property to set or return the value of.

Result Name of the result to get the value of. You can optionally specify a resultIndex for objects that can return more than one set of result data, such as Blob and Correlation. This allows you to obtain a particular result without setting the CurrentResult property.

var Variable(s) that will contain the value(s) returned.

VGet Statement · Vision Sequence · Vision Calibration

Page 196 of the Epson 5 user manual — V
Page 196 · click to enlarge
Page 196

VGet is a powerful part of the Vision Guide structure. It provides the core mechanism to get the property and result values from the vision objects that are run from vision sequences.

VGet can be used to get property values before running a vision sequence so that you can check the value of a specific property or even check and set it by using the VGet statement and then the VSet statement. VGet can also be used to get property values after running a vision sequence

The most common use for VGet is to get the result values from vision objects after they have been run in a sequence. This allows you to use the results to make decisions, perform calculations, define point positions and a whole host of other things. In order to use VGet with results, you must first VRun the sequence which contains the vision object for which you want to get a result from. For example, assume you created a vision sequence which uses a Blob object to find how many holes are present in a specific part. This means you will want to VGet the value of the Holes result for the Blob object. The following SPEL+ program shows how VGet would be used in this instance.

Function test 'It is assumed that a sequence called FindHoles has already been created 'prior to running this program. FindHoles contains a Blob object called Part 'which is configured to find how many holes are in the search window. 'In this example, we will run the sequence and then display the number 'of holes which were found. Integer count VRun FindHoles 'Run the vision sequence VGet FindHoles.Part.Holes, count 'Get the # of holes found Print count, "holes found" Fend

VRun, VSet, Vision Sequences

VGet Statement

Page 197 of the Epson 5 user manual — VRun Statement
Page 197 · click to enlarge
Page 197

VRun Statement

VRun is a SPEL+ language statement used to initiate execution of vision sequences which were created in the Vision Guide development environment.

Sequence Name of a sequence or string variable containing a sequence name.

Once a vision sequence has been created in the Vision Guide development environment it can be executed from the development environment or from within a SPEL+ program. The VRun SPEL+ Language statement initiates execution of vision sequences.

When VRun is initiated the vision sequence specified begins execution. This means that an image is acquired (unless the user sets the RuntimeAcquire property to False) into the frame buffer, and then vision objects are applied to that image as defined in the vision sequence.

It is important to note that VRun returns prior to completing execution of the vision sequence specified with VRun. Once the image is acquired, VRun returns control to the next SPEL+ statement which follows VRun. This improves the throughput of the overall cycle time by allowing other SPEL+ statements to execute while vision processing occurs. (For example, the robot can move during vision processing, or a calculation could be performed during this time.)

Once VRun is executed, VGet is normally used to get the results of the vision sequence such as part position data, good part bad part status, part count information or many other results. Shown below is a simple program which uses VRun and VGet to execute a vision sequence and then use results from that sequence to display useful information to the user.

Function test 'It is assumed that a sequence called FindHoles has already been created 'prior to running this program. FindHoles contains a Blob object called Part 'which is configured to find how many holes are in the search window. 'In this example, we will run the sequence and then display the number 'of holes which were found. Integer count VRun FindHoles 'Run the vision sequence VGet FindHoles.Part.Holes, count 'Get the # of holes found Print count, "holes found" Fend

VGet, VSet, Vision Sequences

VRun Statement · Vision Sequence · VRun Sequence

Page 198 of the Epson 5 user manual — VSet Statement
Page 198 · click to enlarge
Page 198

VSet Statement

Vision ObjectsAll

VSet is used to set the values of properties from the SPEL+ Language.

VSet Sequence.Property, value

VSet Calibration.Property, value

VSet Sequence.Object.Property, value

Sequence Name of a sequence or string variable containing a sequence name.

Calibration Name of the Calibration to set the property value for.

Object Name of the Object set the property value for. Omit if setting property for sequence or calibration.

Property Name of the property to set a new value for.

value Expression for the new value. The data type depends on the property type.

VSet Statement · Vision Sequence · Vision Calibration

Page 199 of the Epson 5 user manual — VSet Statement
Page 199 · click to enlarge
Page 199

VSet is used to set property values for vision sequences, calibrations, and objects from the SPEL+ language.

For many vision sequences all the proper property settings will be set from within the Vision Guide development environment. However, there are also times when you will want to set property values in a SPEL+ program prior to running a vision sequence. For example, you may want to set the NumberToFind property before running a sequence, or maybe you want to use the same vision sequence with 2 different cameras. Both of these scenarios can be handled in SPEL+ using VSet.

Shown below is a Vision Guide program which runs the same vision sequence for 2 different cameras to calculate the number of holes found in a board.

It is assumed that a Sequence called "FindHoles" has already been created prior to running this program. FindHoles contains a "Part" Blob object which is configured to find the number of holes in the Search Window using Holes Result. In this example, we will run the sequence and then display the number of holes which were found. )

execution stops, the vision system is restored to the saved state.

Function test Integer count #define CAMERA1 1 #define CAMERA2 2 VSet FindHoles.Camera, CAMERA1 ' Find holes for part at camera 1 VRun FindHoles ' Run the Vision Sequence VGet FindHoles.Part.Holes, count ' Get the # of holes which were found Print "Camera1 holes found =", count VSet FindHoles.Camera, CAMERA2 ' Repeat for camera 2 VRun FindHoles VGet FindHoles.Part.Holes, count ' Get the # of holes which were found Print "Camera2 holes found =", count Fend

VGet, VRun, VSet, Vision Sequences

VSet Statement

Page 200 of the Epson 5 user manual — X Property
Page 200 · click to enlarge
Page 200

X Property

Vision ObjectsPoint

Defines the X coordinate of a Point object.

VGet Sequence.Object.X, var

VSet Sequence.Object.X, 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.

Min0 Max Video width - 1

The X property is used to locate horizontal position of the Point object in the image coordinate system. This property is initially set to the X position where the user drops a newly created Point object. However, if a Point object is associated with another object in the sequence (i.e. the PointType property is set to another vision object and not set to Screen), then the X property for the Point object is automatically modified according to the associated object.

When the PointType property is set to Screen there are two methods which can be used to move the Point object:

- Click on the Point object's label and drag the object to the position you want to place it.

- Change the X and Y properties for the Point object.

Object Tab, Point Object, Y Property

X Property

Page 201 of the Epson 5 user manual — X1 Property
Page 201 · click to enlarge
Page 201

X1 Property

Vision ObjectsEdge, Line

Defines the X1 coordinate of an object where the (X1, Y1) coordinate pair defines the position of the starting point of the object.

VGet Sequence.Object.X1, var

VSet Sequence.Object.X1, 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.

Min0 Max Video width - 1

Line Object:

The X1 property is used to locate horizontal position for the starting point of a Line object. This property is initially set to the starting point X position where the user drops a newly created Line object. However, if a Point object is associated with another object in the sequence (i.e. the StartPointType property is set to another vision object and not set to Screen), then the X1 property for the Line object is automatically modified according to the associated property.

When the StartPointType property is set to Screen there are 2 methods which can be used to move the Line object:

- Click on the Line object's label and drag the object to the position you want to place it.

- Change the X1, Y1, X2, or Y2 coordinates.

Edge Object:

The X1 property is used to locate horizontal position for the starting point of an Edge object.

Edge Object, Line Object, Object Tab, StartPointObject Property, StartPointType Property, X2 Property, Y1 Property, Y2 Property

X1 Property

Page 202 of the Epson 5 user manual — X2 Property
Page 202 · click to enlarge
Page 202

X2 Property

Vision ObjectsEdge, Line

Defines the X2 coordinate of an object where the (X2, Y2) coordinate pair defines the position of the starting point of the object.

VGet Sequence.Object.X2, var

VSet Sequence.Object.X2, 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.

Min0 Max Video width - 1

Line Object:

The X2 property is used to locate horizontal position for the endpoint of a Line object. This property is initially set to the ending point X position where the user drops a newly created Line object. However, if a Point object is associated with another object in the sequence (i.e. the EndPointType property is set to another vision object and not set to Screen), then the X2 property for the Line object is automatically modified according to the associated property.

When the EndPointType property is set to Screen there are 2 methods which can be used to move the Line object:

- Click on the Line object's label and drag the object to the position you want to place it.

- Change the X1, Y1, X2, or Y2 coordinates.

Edge Object:

The X2 property is used to locate horizontal position for the ending point of an Edge object.

Edge Object, EndPointObject Property, EndPointType Property, Line Object, Object Tab, X1 Property, Y1 Property, Y2 Property

X2 Property

Page 203 of the Epson 5 user manual — XAvgError Result
Page 203 · click to enlarge
Page 203

XAvgError Result

Returns the average calibration error along the X axis.

VGet Calibration.XAvgError, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

XAvgError is the average calibration error along the X axis detected during calibration.

XAvgError Result · Vision Calibration · XMaxError, XmmPerPixel, YAvgError

Page 204 of the Epson 5 user manual — XMaxError Result
Page 204 · click to enlarge
Page 204

XMaxError Result

Returns the maximum calibration error along the X axis.

VGet Calibration.XMaxError, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

XMaxError is the maximum calibration error along the X axis detected during calibration.

XMaxError Result · Vision Calibration · XAvgError, XmmPerPixel, YMaxError

Page 205 of the Epson 5 user manual — XmmPerPixel Result
Page 205 · click to enlarge
Page 205

XmmPerPixel Result

Returns the X millimeters/pixel value of the specified calibration.

VGet Calibration.XmmPerPixel, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

XmmPerPixel is the number of millimeters per pixel along the camera X axis.

XmmPerPixel Result · Vision Calibration · XAvgError, XMaxError, YmmPerPixel

Page 206 of the Epson 5 user manual — XTilt Result
Page 206 · click to enlarge
Page 206

XTilt Result

Returns the calibration X tilt result.

VGet Calibration.XTilt, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

XTilt is a relative value that indicates camera tilt along the camera X axis. The directions are as viewed from the camera in the image coordinate system (plus x is right).

A positive value indicates tilt to the right, negative is tilt to the left.

XTilt Result · Vision Calibration · YTilt Result

Page 207 of the Epson 5 user manual — Y Property
Page 207 · click to enlarge
Page 207

Y Property

Vision ObjectsPoints

Defines the Y coordinate of a Point object.

VGet Sequence.Object.Y, var

VSet Sequence.Object.Y, 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.

Min0 Max Video height1

The Y property is used to locate the vertical position of the Point object in the image coordinate system. This property is initially set to the Y position where the user drops a newly created Point object. However, if a Point object is associated with another object in the sequence (i.e. the PointType property is set to another vision object and not set to Screen), then the Y property for the Point object is automatically modified according to the associated object.

When the PointType property is set to Screen, there are two methods which can be used to move the Point object:

- Click on the Point object's label and drag the object to the position you want to -place it.

- Change the X and Y properties for the Point object.

Object Tab, Point Object, X Property

Y Property

Page 208 of the Epson 5 user manual — Y1 Property
Page 208 · click to enlarge
Page 208

Y1 Property

Vision ObjectsEdge, Line

Defines the Y1 coordinate of an object where the (X1, Y1) coordinate pair defines the position of the starting point of the object.

VGet Sequence.Object.Y1, var

VSet Sequence.Object.Y1, 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.

Min0 Max Video height1

There are cases where the user may want to position a Point object dynamically and for that reason the Y1 property can also be set from the SPEL+ Language.

Line Object:

The Y1 property is used to locate vertical position for the starting point of a Line object. This property is initially set to the Y position where the user drops a newly created Line object. However, if a Point object is associated with another object in the sequence (i.e. the StartPointType property is set to another vision object and not set to Screen), then the Y1 property for the Line object is automatically modified according to the associated property.

When the StartPointType property is set to Screen there are 2 methods which can be used to move the Line object:

- Click on the Line object's label and drag the object to the position you want to place it.

- Change the X1, Y1, X2, or Y2 coordinates.

Edge Object:

The Y1 property is used to locate veritical position for the starting point of an Edge object.

Edge Object, Line Object, Object Tab, StartPointObject property, StartPointType property, X1 property, X2 property, Y2 property

Y1 Property

Page 209 of the Epson 5 user manual — Y2 Property
Page 209 · click to enlarge
Page 209

Y2 Property

Vision ObjectsEdge, Line

Defines the Y2 coordinate of an object where the (X2, Y2) coordinate pair defines the position of the starting point of the object.

VGet Sequence.Object.Y2, var

VSet Sequence.Object.Y2, 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.

Min0 Max Video height1

There are cases where the user may want to position a Point object dynamically and for that reason the Y2 property can also be set from the SPEL+ Language.

Line Object:

The Y2 property is used to locate vertical position for the ending point of a Line object. This property is initially set to the ending point Y position where the user drops a newly created Line object. However, if a Point object is associated with another object in the sequence (i.e. the EndPointType property is set to another vision object and not set to Screen), then the Y2 property for the Line object is automatically modified according to the associated property.

When the EndPointType property is set to Screen there are two methods which can be used to move the Line object:

- Click on the Line object's label and drag the object to the position you want to place it.

- Change the X1, Y1, X2, or Y2 coordinates.

Edge Object:

The Y1 property is used to locate veritical position for the ending point of an Edge object.

Edge Object, EndPointObject Property, EndPointType Property, Line Object, Object Tab, X1 Property, X2 Property, Y1 Property

Y2 Property

Page 210 of the Epson 5 user manual — YAxisPntObjResult Property
Page 210 · click to enlarge
Page 210

YAxisPntObjResult Property

Vision ObjectsFrame

Specifies which result to use from the YAxisPointObject.

VGet Sequence.Object.YAxisPntObjResult, var

VSet Sequence.Object.YAxisPntObjResult, 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.

The value can range from 1 to the NumberToFind value for the YAxisPointObject. If the YAxisPointObject is 'Screen', then the value is always 1.

Use the YAxisPntObjResult property to specify a result number other than one for a Frame Object's YAxisPoint.

Frame Object, Object Tab, OriginPntObjResult Property, OriginPoint Property, YAxisPoint Property

YAxisPntObjResult Property

Page 211 of the Epson 5 user manual — NOTE
Page 211 · click to enlarge
Page 211

YAxisPoint Property

Vision ObjectsFrame

Defines the vision object to be used as the Y axis point for a Frame object.

VGet Sequence.Object.YAxisPoint, var

VSet Sequence.Object.YAxisPoint, 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 expression for the new value of the property. Valid vision objects for the YAxisPoint property are: Blob, Correlation, Edge, Line, and Point objects. The YAxisPoint may also be based on the Screen position of the Frame.

Screen or any object that runs prior to the frame and returns PixelX and PixelY results.

DefaultScreen

When a Frame object is first drag-and-dropped onto the Image display area of the Vision Guide Window, the default YAxisPoint property is set to Screen. Frame objects are normally attached to other Vision objects. This is the purpose of the OriginPoint and YAxisPoint. Through these 2 properties the user can define a frame of reference for other objects to have their position based upon. This capability is useful when specific features can be used to find reference points on a part and then other vision objects can be located on the image with respect to the frame position defined.

The OriginPoint and YAxisPoint properties are used together to define a vision frame which has an origin at the OriginPoint and a Y axis direction defined by the YAxisPoint property.

It is important to note that for each specific vision sequence, only those vision objects which are executed prior to the Frame object in the vision sequence steps will be available to use as an OriginPoint. (The order of the vision object execution can be adjusted from the Sequence Tab.)

When using the point and click interface click on the YAxisPoint property Value Field. Then click on the arrow and a drop down list will appear showing a list of available vision objects (along with the default value Screen) which can be used to define the Y Axis direction of the Frame. Click on one of the choices and the value field will be set accordingly.

When using the Object tab to set the YAxisPoint property it is important to note that only those objects which are defined prior to the Frame object are displayed in the drop down list. This helps reduce the chances of the user defining an OriginPoint which isn't defined prior to the Frame object.

Vision Guide automatically checks which vision objects can be used as the YAxisPoint and displays only those object names in the drop down list. )

NOTE

YAxisPoint Property

Page 212 of the Epson 5 user manual — YAxisPoint Property
Page 212 · click to enlarge
Page 212

Frame Object, Frame Property, Object Tab, OriginPoint Property

YAxisPoint Property

Page 213 of the Epson 5 user manual — YAvgError Result
Page 213 · click to enlarge
Page 213

YAvgError Result

Returns the average calibration error along the Y axis.

VGet Calibration.YAvgErr, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

YAvgError is the average calibration error along the Y axis detected during calibration.

YAvgError Result · Vision Calibration · XAvgError, YMaxError, YmmPerPixel

Page 214 of the Epson 5 user manual — YMaxError Result
Page 214 · click to enlarge
Page 214

YMaxError Result

Returns the maximum calibration error along the Y axis.

VGet Calibration.YMaxErr, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

YMaxError is the maximum calibration error along the Y axis detected during calibration.

YMaxError Result · Vision Calibration · XMaxError, YAvgError, YmmPerPixel

Page 215 of the Epson 5 user manual — YmmPerPixel Result
Page 215 · click to enlarge
Page 215

YmmPerPixel Result

Returns the Y millimeters/pixel value of the specified calibration.

VGet Calibration.YmmPerPixel, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

Real number in millimeters.

YmmPerPixel is the number of millimeters per pixel along the camera Y axis.

YmmPerPixel Result · Vision Calibration · XmmPerPixel, YAvgError, YMaxError

Page 216 of the Epson 5 user manual — YTilt Result
Page 216 · click to enlarge
Page 216

YTilt Result

Returns the calibration Y tilt result.

VGet Calibration.YTilt, var

Calibration Name of a calibration or string variable containing a calibration name.

var Real variable that will contain the value of the result.

YTilt is a relative value that indicates camera tilt along the camera Y axis. The directions are as viewed from the camera in the image coordinate system (plus y is down).

A positive value indicates tilt down, negative indicates tilt up.

YTilt Result · Vision Calibration · XTilt Result

Sources

References & links

Pages referenced in this manual — manufacturer, support and downloads.

Ask about the Epson 5

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Epson 5

Be the first to ask — other owners or our team will answer.

Original document

Epson 5 manual PDF

216 pages·2.6 MB·Printer·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…