Vision Tool Manuals: Introduction To Vision Tools
Vision Tool Manuals: Introduction To Vision Tools
Introduction to
Vision Tools
6.41.014 11/30/06
TIPS Vision Tool Manual
Introduction to Vision Tools
Liability Disclaimer: SYSTECH’s TIPS System Software is warranted in accordance with the
product license. System configuration, the application being performed, operator control and
other related factors will affect product performance. TIPS System Software implementation
may vary among users.
The instructions in this manual do not claim to cover all details or variations in the equipment,
procedure, or process described, or to provide directions for meeting every possible contingency
during installation, operation, or maintenance. When additional information is required to satisfy
a problem not covered sufficiently for your purpose, please contact SYSTECH’s Customer Sup-
port Help Desk at 1-800-TIPS-HELP (800-847-7435).
Need help?
Call our Customer Support Help Desk for any TIPS product or service information at:
1-800-TIPS-HELP.
SYSTECH Information
ii
TIPS Vision Tool Manual
Introduction To Vision Tools
Table of Contents
SYSTECH International Information ........................................................ ii
Table of Contents
iii
TIPS Vision Tool Manual
Introduction To Vision Tools
15 Index .................................................................................................................. 25
Table of Contents
iv
TIPS Vision Tool Manual
Introduction To Vision Tools
Table of Contents
v
TIPS Vision Tool Manual
Introduction To Vision Tools
Table of Contents
vi
TIPS Vision Tool Manual
Introduction To Vision Tools
1 Introduction
This chapter provides an overview of the configuring of tools and factors that effect vision tool
inspections. Proper operation of vision tools is depends upon the proper setup of the vision tools
as well as the physical inspection process. Vision tools may not operate properly if the quality of
images, or the inspection process is not controlled. The key to good vision inspections is a well-
controlled process that provides consistent quality images.
The following sections provide an overview of important topics that affect image quality and the
generic process for configuring a tool. Specific tool chapters provide details for configuring spe-
cific tools. The Vision Editing chapter of the TIPS System Software (TSS) manual provides
detailed information describing the commands to configure and control vision inspections.
The TSS runs a variety of vision tools for specific or generic imaging inspections. Functionally
Adaptive Application Specific Tools (FA2ST) were designed for very specific inspection applica-
tions. FA2ST tools are the easiest tools to configure because each tool performs only one or two
specific functions and has few configureable properties.
Core Vision Tools (CVT) were designed to meet general vision inspection requirements. Each
tool has many uses depending upon the tool configuration. The next table provides a summary
of the vision tools available for the TSS and some of their common uses.
Introduction:
1
TIPS Vision Tool Manual
Introduction To Vision Tools
Optical Character Verification 2 Verify alphanumeric print quality plus rotatable ROI.
(OCV2wR)
Print Quality Verification (PQV) Verify product logos and graphics. Use the Locate and
SMS tools to establish a position for the PQV tool.
Data Matrix Verification (DMV) Read or read and verify Data Matrix Code.
Angle Reference (ANG) Provides an angle and its pivot point as a reference for other
tools.
Blob Verification (BLB) Any inspection requiring the verification of component size,
shape, gray scale, placement or orientation.
Communication (COM) Sends and receives information to or from other Vision Tools
and external devices using an RS232 communications link.
Component Placement Any inspection that requires finding an edge. Some uses are
Verification (CPV) label placement, cap presence, skew measurement and
straightness measurement.
Count (CNT) Counts objects defined as either a single pixel or a cluster of pix-
els whose gray scale values fall above a specific gray scale
value.
Locate (LOC) Establishes the location of an image feature to position PQV and
OCV tools.
Mask (MSK) Provides a method for covering parts of the image when using
BLB or PQV tools so those portions of the image will not be
inspected.
Single Model Source Establishes a model source using the image of an object.
(SMS) Always use the SMS tool with a Locate tool.
Vision Scripting (VST) Controls and analyzes the results of other vision tools.
Color Blister Pack (CBP) Verifies existence and proper tablet in cavity of a blister pack.
Circular Color Pack (CCP) Verifies existence and proper tablet in each pocket of a circular
pack of tablets such used for birth control pills.
Case Content Verification Verifies the number of cartons in each layer of a case as it is
(CCV) packed.
3 Image Quality
3.1 Contrast
A significant contrast difference between foreground and background promotes good inspec-
tions. All tools must differentiate between the objects and background. Good contrast aids the
inspection process although most vision tools have properties that can be adjusted to overcome
contrast issues.
The better the print quality, the better vision tools can determine even minor imperfections. Font
and pitch (size) are especially important. If possible, avoid small (low numbers) pitch sizes and
proportionately spaced fonts. Use a high magnification lens to compensate for small sized char-
acters.
The ideal print is an ASCI OCR A or B, which provides uniformly sized and spaced characters.
Laser printers provide characters that are uniform and do not vary with time. Dot matrix and ink
jet printers provide varying quality characters that change with time and can complicate the
inspection process.
3.3 Lighting
Provide uniform, high quality lighting without hot spots, shadows or reflections. Use a ring, line or
specialized lighting such as cloudy day illuminator (CDI) to provide a uniform lighting source.
Use combinations of colored filters to pass only the desired wavelengths of light. Use a polarized
filter to filter out reflections. Use a shroud to block unwanted ambient light.
3.4 Timing
Integrate the timing of the strobe or electronic shutter with the speed of the line. Set the timing to
image the desired area when product is in proper position. The timing must also be fast enough
to prevent blurring of the image.
Mount the camera rigidly to prevent transfer of undesired motion from surrounding machinery to
the camera. Any motion in the camera will cause the camera to image a different area. Electri-
cally isolate all cameras to prevent ground loops that can damage computer components.
Configure all vision tools in a similar manner. Each tool conducts an inspection by comparing a
model developed during training to images acquired during the inspection (runtime images). Dif-
ferences between the runtime and trained images are “errors”. If the errors exceed a selected
threshold, the runtime image “fails” the inspection.
The first step to a good inspection is to develop a good consistent image. Click the
Live button and adjust the camera focus, lighting, f-stop and position. Center the
image in the field of view to avoid distortion caused by the edge of the lens. If possi-
ble, lock all these camera settings so they will not change over time.
After completing adjustments, click the Live button again to stop continuous image
acquisition. Then click the Image New button to take a single picture. This provides a
consistent image to apply the tools.
Select a tool from the Toolbox that performs the needed inspection. Click on the tool, position
the cursor over the inspection area and then click again when the cursor is within the image.
This places a tool ROI on the screen.
The ROI defines the image area the tool will inspect. Now adjust the size and position of the tool
ROI to include the desired area of the image.
Right-click when the cursor is within the tool ROI and then click View Properties.
Alternate methods are to double click within the tool ROI, or select View then Properties.
The Tool Properties dialog box appears. The specific tool chapters provide detailed instructions
for configuring each tool. Enter the properties as directed for each tool.
Note: On some Vision Tools, the ROI can be rotated to enable an inspection that would other-
wise be difficult or impossible. Typically the OCV2wR, LOC, CNT, CPV, and MSK Tools support
a rotatable ROI. Rotational capablility is indicated by a small yellow (default color) dot centered
above the ROI. This dot can be ‘grabbed’ by the mouse and used to rotate the ROI (including its
contents) manually. LOC, CPV and MSK Vision Tools are use to obtain reference locations in
conjunction with VST Tool.
Rotation is automatic
for each inspection, if
other tools are used to
determine the required
angle and location required for the appropriate inspection tool’s rotation. The reference location
for the inspection tool is supplied by a combination of reference tools. Typically the sets of refer-
ence tools used are either: 1.) Two SMS Tools, two LOC Tools and a VST Tool, 2.) An SMS
Tool, a LOC Tool, a CPV Tool and a VST Tool, or 3.) Two CPV Tools and a VST Tool. Several
short VST Tool script programs have been written and must be used for this purpose. The pro-
grams (script files) must be stored in the Vision folder in the Config directory. The script files
are titled as follows:
• Object Reference by Locate Pair.vbs Required when using a pair of Locate Tools
to locate the OCV2wR Tool.
• Object Reference by Locate CPV.vbs Required when using a Locate and a CPV
Tool to locate the OCV2wR Tool.
• Object Reference by CPV pair.vbs Required when using a pair of CPV Tools to
locate the OCV2wR Tool.
See the OCV2wR Vision Tool Manual and CNT Vision Tool Manual for detailed instructions.
Rotating Inspection Images: Camera Mounting
7
TIPS Vision Tool Manual
Introduction To Vision Tools
8 Filtering Images
Some of the vision tools offer an image filtering option to increase the versatility of the tool. The
vision tools that currently offer this option are listed below.
Filters are used to preprocess an image (i.e. altering it to be more easily recognized and
inspected). Preprocessing of images is accomplished by using one or more filters. An example
of this is the inspection of a white capsule with a blue band around the center. The tool normally
would see two objects. Using filters the capsule can be made to appear as a single object.
There may be times when the features of an image that are of interest are not easily extracted by
simple gray scale thresholding (separating the background from the foreground). Filters manipu-
late the base image to produce an output image with easier recognized features of interest.
Test the resulting image by clicking OK on the Filter Operations dialog box to display the Vision
Edit screen. Adjust the properties visible on the tool’s Properties dialog box until the image
inspection process, as viewed on the Vision Edit screen, obtains optimum results. If the opti-
mized parameters do not produce inspections that are correct, repeatable and can be validated,
then repeat the process of adding, deleting, adjusting and reordering filters until inspection result
is acceptable.
Use the filter option button on the appropriate tab of the tool’s dialog box to display the Filter
Parameter
adjustments
associated with
highlighted tool
are shown in this
area.
The image in the camera appears in the Filtered Image field. The condition of the image, rela-
tive to filtration, is shown in the Operation List field. In the above picture <Original Image> is
shown in the Operation List field. This indicates that the image is in its original state and has
not been filtered.
The four buttons to the right of the Operation List field are used to add and delete filters and to
change the order of filtering (order in which multiple filters act on the original image). They are
described as follows:
The Add Filter button displays the Add Filter dialog box; allowing the user to select
one or more filters for enhancement of the inspection. This is discussed in detail in the
Adding Filters section.
The Delete Filter button deletes any filter that is highlighted in the Operation List
field. This is discussed in detail in the Removing Filters section.
The Up-Arrow button moves a highlighted filter up one position in the Operation List
field, thus changing the order of execution. This is discussed in detail in the Ordering
Filters section.
The Down-Arrow button moves a highlighted filter down one position in the Opera-
tion List field, thus changing the order of execution. This is discussed in detail in the
Ordering Filters section.
Start by clicking the Add Filter button on the Filter Operations dialog box. This dis-
plays the Add Filter dialog box. This dialog box is displayed differently for the Bar-
code Reader (BCR) tool as compared to the other tools, which also use it as an
image enhancing device.
The Add Filter dialog box displayed for the BCR tool is shown in the next picture.
The filters listed in the Available Filter Types field are the filters normally of use with the BCR
tool. By clicking on the Show All Filters check box in the lower left-hand corner, all filters can be
displayed as shown in the following picture.
Note: These filters are also the same filters that are listed in the Available Filter Types field on
the Add Filters dialog box for all other tools besides the BCR that use image filtering. This dia-
log box is shown next.
The Add Filter dialog box displayed for the CBP, CON, CNT, DMV, OCR, and PQV tools is
shown in the next picture.
Click on a filter name in the Available Filter Types field, highlighting it, read the description, look
at the effect on the image in the Filtered Image field and then click OK if the change in the image
appears to be beneficial. In the preceding picture the Open filter was highlighted and the
description of the filter was directly below the filter list.
Clicking OK returns the user to the Filter Operations dialog box showing the selected filter in the
Operations List field as shown in the next picture. This example shows a Filtered Image from
an OCR tool application.
If the filter allows adjustment, adjust the parameter(s) until the desired picture of the image is
obtained in the Filtered Image field. In this example, the Open filter has an Iterations parame-
ter, which is adjustable by the user to obtain optimum results. The user can see the effects in the
Filtered Image field while adjusting the Iterations slider (or typing changes into the Iterations
field). Not all filters have adjustments but those that do have the adjustment visible (and usable)
directly below the Operation List field when the filter is highlighted.
Highlight the <Original Image> or any other previously chosen filter in the Operation List field
to see the image (in the Filtered Image field) before it is processed by the filters below the high-
lighted filter or original state. An example is shown in the following picture.
The picture of the Filter Operations dialog box shown in the preceding picture was taken from
an OCR tool inspection. The image shown in the Filtered Image field represents the original
image processed by first the Close filter and then the Erode filter (the highlighted filter). The
Laplacian 5x5 filter had been highlighted then the Filtered Image field would have shown the
image as also filtered by that filter.
Remove a filter by highlighting it in the Operation List field and clicking the Delete Fil-
ter button.
Change the order of the filters in the Operation List field by highlighting a
filter and using the Up-Arrow and Down-Arrow buttons to move the
highlighted filter up or down respectively in the list. Changing the order of
the filters changes the order of the processing and thus affects the image.
A different order of the same filters will produce a different final image.
The user can observe the effects of the change on the image in the Fil-
tered Image field.
The table below lists all the filters that are available for image filtering. It should be noted that the
default filters shown for a specific tool are usually the only ones required but clicking on the Dis-
play all filter check box will display all the filters listed below and allow you to use any combina-
tion of these filters.
9 Tool Training
Training a tool builds a model image for comparison to the runtime images. Two types of image
models exist – a single image (Train) or a summed image (Train Stat) derived from several
images.
The Train button takes a single image and makes it the image to compare all runtime
images. Use Train in situations where the runtime images change little in structure or
gray scale. Each time you click Train, it replaces the model image with a new image.
The example below shows how statistical training (Train Stat) builds a model based
on the sum of the images.
The gray circles are different in each of the images. When statistically training images, a single
model image includes the circles from all the images. Using this model, a runtime image with 0,
1, 2, 3 or 4 circles in the positions shown on the composite model would pass an inspection when
compared to the composite model.
Use statistical training to provide a model for runtime images that show some changes in each
image, and these changes are within acceptable quality standards. This is a powerful tool for
passing acceptable quality images that would otherwise fail.
When using statistical training, select several images that are acceptable quality and show typi-
cal variations. As a rule, stat train a maximum of two to four images.
Exercise care when statistically training images. Incorrect statistical training can result in passing
poor quality images or failing good quality images.
Using more than 3 or 4 images for statistical training may build a model that provides undesirable
results. If more than 3-4 widely varying images are statistically trained, then runtime images of
marginal or poor quality will pass.
This case builds a model that will pass only perfect images. The images used should display the
variation anticipated during the inspection.
This case builds a model that will pass runtime images of unacceptable quality. The images
used for statistical training should display only the variation that is within acceptable quality limits.
Many tools allow the user to view the model resulting from statistical training. Green (default
color) indicates Regions of Depressed Weighting and represents the differences in all the sta-
tistically trained images. These green areas should not be allowed to grow larger than the
acceptable variation in the images. As a rule, if more than 10-15% of the model is green, train in
a new image and statistically train in several images with acceptable variations to develop a good
model.
Check the order the tools conduct the inspection when using multiple tools. The initial tool order
is the same order the tools are placed on the screen. Some tools need other tools to run prop-
erly. For example, a Locate tool is needed for the OCV tool to perform correctly and must run
before the OCV tool. Select Edit and Execution Order to check for proper order before starting
inspections. Arrange the order of the tools by selecting a tool on the list and using the up and
down buttons to position the tool.
After setting up tools and insuring they are in the correct order, test the tools with both
good and unacceptable images to ensure the tools are operating properly.
13 Running Tools
Once configured and tested, the tools are ready to run. Monitor the tools periodically
to insure the maintenance of quality inspections. Perform all changes required to
maintain inspection quality the Vision Edit mode.
14 Summary
Vision inspections work best when conditions and presentation of the image are uniform. The
general process for setting up a tool is:
15 Index
Symbols
.......................................................................................................................................................9
(CAL) ..............................................................................................................................................2
A
Add Filter Button
1 .............................................................................................................................................10
2 .............................................................................................................................................11
Add Filter Dialog Box
1 .............................................................................................................................................10
2 .............................................................................................................................................11
Adding Filters ...............................................................................................................................11
ANG ................................................................................................................................................2
Available Filter Types Field
1 .............................................................................................................................................11
2 .............................................................................................................................................14
B
BCR ................................................................................................................................................2
BLB .................................................................................................................................................2
Blur ...............................................................................................................................................17
Button
Add Filter ................................................................................................................................10
Delete Filter ............................................................................................................................10
Down-Arrow ...........................................................................................................................10
Image New ...............................................................................................................................5
Live ...........................................................................................................................................5
Location ....................................................................................................................................8
Up-Arrow ................................................................................................................................10
C
Calibration ......................................................................................................................................2
Camera Mounting ..........................................................................................................................5
CBP ................................................................................................................................................4
CCP ................................................................................................................................................4
CCV ................................................................................................................................................4
Circle ............................................................................................................................................19
Circular Color Pack Tool ................................................................................................................4
Close ............................................................................................................................................16
CLR ................................................................................................................................................2
CNR ................................................................................................................................................3
CNT ................................................................................................................................................3
Color Blister Pack Tool ..................................................................................................................4
Color Tool .......................................................................................................................................2
Index:
25
TIPS Vision Tool Manual
Introduction To Vision Tools
COM ...............................................................................................................................................2
Component Placement Verification Tool .......................................................................................3
CON ...............................................................................................................................................3
Contour Verificaiton Tool ...............................................................................................................3
Contrast ..........................................................................................................................................4
Core Vision Tools ...........................................................................................................................1
Corner ............................................................................................................................................3
CPV ................................................................................................................................................3
CVT ................................................................................................................................................1
CVT Tools ......................................................................................................................................2
D
Data Matrix Verification Tool
1 ...............................................................................................................................................2
2 ...............................................................................................................................................8
Delete Filter Button
1 .............................................................................................................................................10
2 .............................................................................................................................................15
Dialog Box
Properties .................................................................................................................................8
Tool Properties .........................................................................................................................6
Dilate ............................................................................................................................................16
DMV
1 ...............................................................................................................................................2
2 ...............................................................................................................................................8
Down-Arrow .................................................................................................................................16
Down-Arrow Button ......................................................................................................................10
E
Edges - All ....................................................................................................................................17
Edges - Horizontal .......................................................................................................................17
Edges - Vertical ............................................................................................................................17
Erode ............................................................................................................................................16
Execution Order ...........................................................................................................................22
F
FA2ST ............................................................................................................................................1
FA2ST Tools ..................................................................................................................................2
Field
Operation List .........................................................................................................................10
Fill Horizontal Gaps ......................................................................................................................18
Fill Vertical Gaps ..........................................................................................................................17
Filter Descriptions ........................................................................................................................16
Filter Operations Dialog Box
1 ...............................................................................................................................................8
2 ...............................................................................................................................................9
3 .............................................................................................................................................14
Filtered Image Field .....................................................................................................................14
Index:
26
TIPS Vision Tool Manual
Introduction To Vision Tools
1 ...............................................................................................................................................9
2 .............................................................................................................................................14
Filtering Images .............................................................................................................................8
Filters ..............................................................................................................................................8
Adding ....................................................................................................................................11
Ordering .................................................................................................................................16
Filters Button ..................................................................................................................................8
FiltersRemoving ...........................................................................................................................15
Font ................................................................................................................................................4
Functionally Adaptive Application Specific Tools ..........................................................................1
G
GAUGE ..........................................................................................................................................3
Gauge Tool ....................................................................................................................................3
Gaussian 3x3 ...............................................................................................................................17
Gaussian 5x5 ...............................................................................................................................17
H
Hipass 3x3 ...................................................................................................................................17
Hipass 5x5 ...................................................................................................................................17
I
Image .............................................................................................................................................5
Image Contrast ..............................................................................................................................4
Image New Button .........................................................................................................................5
Image Quality .................................................................................................................................4
Images, Filtering ............................................................................................................................8
Iterations Parameter ....................................................................................................................14
Iterations Slider ............................................................................................................................14
L
Laplacian 3x3 ...............................................................................................................................17
Laplacian 5x5 ...............................................................................................................................17
Lighting ...........................................................................................................................................4
Live Button .....................................................................................................................................5
LOC ................................................................................................................................................3
Locate
1 ...............................................................................................................................................2
2 .............................................................................................................................................22
Locate Tool ....................................................................................................................................3
M
Mask Tool .......................................................................................................................................3
Math Tool .......................................................................................................................................3
Max Filter .....................................................................................................................................16
Median Filter ................................................................................................................................16
Index:
27
TIPS Vision Tool Manual
Introduction To Vision Tools
O
OCR ...............................................................................................................................................2
OCV ................................................................................................................................................2
Open .............................................................................................................................................16
Operation List ...............................................................................................................................10
Operation List Field
1 ...............................................................................................................................................9
2 .............................................................................................................................................10
Operations List Field ....................................................................................................................14
Optical Character Recognition Tool ..............................................................................................2
Optical Character Verification Tool ................................................................................................2
Ordering Filters ............................................................................................................................16
Original Image ..............................................................................................................................15
P
PCR ................................................................................................................................................3
Pixel Map .....................................................................................................................................18
PQV ................................................................................................................................................2
Prewitt 3x3 Horizontal ..................................................................................................................17
Prewitt 3x3 Vertical ......................................................................................................................17
Print Quality ....................................................................................................................................4
Print Quality Verification Tool ........................................................................................................2
Properties Dialog Box ....................................................................................................................8
Q
Quality, Image ................................................................................................................................4
R
Radius Tool ....................................................................................................................................3
Regions of Depressed Weighting ................................................................................................21
Removing Filters ..........................................................................................................................15
ROI .................................................................................................................................................6
Run Tools .....................................................................................................................................22
S
Sharpen 3x3 .................................................................................................................................17
Show All Filters Check Box ..........................................................................................................11
Single Model Source Tool ..............................................................................................................3
SMS
1 ...............................................................................................................................................2
2 ...............................................................................................................................................3
Index:
28
TIPS Vision Tool Manual
Introduction To Vision Tools
T
Test the Tool ................................................................................................................................22
Threshold .....................................................................................................................................17
Timing ............................................................................................................................................5
Tool Execution Order ...................................................................................................................22
Tool Properties Dialog Box ............................................................................................................6
Toolbox ..........................................................................................................................................6
Tools, Run ....................................................................................................................................22
Tools, Testing ..............................................................................................................................22
Train .............................................................................................................................................20
Train Stat ......................................................................................................................................20
Training
Statistical ................................................................................................................................21
U
Up-Arrow ......................................................................................................................................16
Up-Arrow Button ..........................................................................................................................10
V
View Properties ..............................................................................................................................6
Vision Edit ....................................................................................................................................22
Vision Edit Screen ..........................................................................................................................8
Vision Scripting Tool ......................................................................................................................3
VST ................................................................................................................................................3
End of document.
Index:
29
SYSTECH International, Inc.
2540 Route 130, Suite 128
Cranbury, NJ 08512
Phone: (609) 395-8400 FAX: (609) 395-0064
www.systech-tips.com