Professional Documents
Culture Documents
Corner (CNR)
Tool
Module Release Version Date
6.20.003 11/14/00
TIPS Vision Tool Manual
Corner (CNR) Tool
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 SYSTECH product or service information at:
1-800-TIPS-HELP.
SYSTECH Information
ii
TIPS Vision Tool Manual
Corner (CNR) Tool
Table of Contents
SYSTECH International Information ........................................................ ii
Table of Contents
iii
TIPS Vision Tool Manual
Corner (CNR) Tool
Please read the Introduction to Vision Tools manual before preceding with this tool.
Table of Contents
iv
TIPS Vision Tool Manual
Corner (CNR) Tool
1 Introduction
The Corner Tool locates the intersection point of two edge features. The tool com-
putes the intersection point of a vertical and horizontal edge. The x-y result is
exported, along with other elements of the best-fit line equations as computed by the
tool. Primary operational considerations are home point training and edge finder tun-
ing.
The Corner Tool has the core of CPV Tool-type functionality at the heart of its operation. The
edge detection mechanism is based on the typical one dimensional convolution kernal method of
gray value differentiation. A pixel-weighting filter designed to yield gray value rate-of-change is
applied transverse to the expected edge feature to be analyzed. Local maxima are then com-
pared to a minimum gray value rate of change threshold in determining edge validity.
The Corner Tool is designed specifically for finding the exact corner of an object as defined by
two intersecting lines and can be used for the following purposes:
1. If the object to be inspected can move outside of the CNR tool’s ROI, open and setup
either the Locate or CPV tool, then open and setup the CNR tool ROI. Use one tool
to locate each edge that forms the corner. If the object to be inspected cannot move
outside the CNR tool’s ROI, select the CRN Tool and draw the ROI around the image
of the object to be inspected.
2. Select and set the threshold for segregating objects from the background using the
Setup tab.
3. Select and set the number, width and area to be covered by the detectors in order to
acquire sufficient points to determine edges regardless of orientation and position of
the object.
The following sections will describe each step in the setup process.
Introduction:
1
TIPS Vision Tool Manual
Corner (CNR) Tool
ColorFail is red.
ColorInfo is yellow.
ColorPass is green.
Edge Threshold is a property used to set a gray scale value that determines whether an edge is
present.
Edge Tuning is the means by which edges are located and separated from the background.
First Derivative is the rate of gray scale change derived from the gray scale intensity plot.
Line Fitting is a numerical method of fitting a set of edge points to a best fitting line equation.
Region of Interest (ROI) is the rectangular area within which a tool conducts it’s inspection.
The tool is setup and adjusted in the Vision Edit (SENTRI Non X-Series system software) or
Builder (ADVISOR X-Series, SENTRI X-Series, SENTRI BLISTER, and ADVISOR Non X-
Series system software) screens.
Select the CNR Tool and draw a rectangular box (ROI) around the feature edge to be inspected.
This rectangle should not include any extraneous marks or objects inconsistent with the normal
scene appearance. The ROI should contain both edges that you are inspecting for intersection.
Size the tool to account for any anticipated variation in position of the inspected objects.
Double-click within the ROI of the tool, or select View then Properties or right-click within the
ROI of the tool and click the Properties button to display the Cnr Properties dialog box.
4 CNR Properties
The Edge Strength Plot above shows the magnitude of change (first derivative) of each detec-
tor’s brightness. Position the green lines (labeled Edge Threshold in above picture) by using
the Edge Threshold setting. Note that this is for Detector 26.
Edge Position
This shows the average strength of the pixels within a detector. It is another way of viewing gray-
scale changes to validate the property settings.
Edge Position
This shows the brightness values after filtering. The shape of this plot is governed by the Filter
Size setting. Adjust the filter size using this plot.
4.1.4 Detector #
Detector #28
Detectors are pairs of either vertical or horizontal lines shown on the tool. Detectors are num-
bered starting with the left most pair, which are numbered 1, proceeding in sequence from left to
right through the vertical pairs of lines (detectors) and then from the highest pair of horizontal
lines to the lowest pair of horizontal lines. In the above picture Detector 28 was chosen and the
Edge Strength Plot is shown for that detector. The 28th detector pair is shown in a light color on
the tool in the preceding picture. The selected detector’s (Detector 28) color on the monitor’s
screen is yellow. Selectors that do not contact the object are red on the monitor’s screen. The
detectors that contact the object are blue on the monitor’s screen.
Use this setting to define an edge using the Edge Strength Plot. Peaks above the positive and
below the negative threshold limits are detected as an edge. Anything between the positive and
negative threshold limits fail to meet the threshold defining edges. The default is 100 with a
range of 0 to 255. Lowering the number increases the tool’s sensitivity to detect an edge. Adjust
the Edge Threshold by positioning on the Edge Strength Plot to intersect with the peak or val-
ley corresponding to the edge position. It is recommended that the peak or valley slightly exceed
the threshold to ensure edge detection. Once the initial setting is determined, select several other
detectors to ensure the setting is valid for most detectors. Check and readjust the Edge Thresh-
old as necessary after adjusting the Filter Size and Filter Gap settings.
Filter Size is the magnitude of the edge filter in pixels. Use this property along with Filter Gap to
obtain a well-defined edge on edges that are jagged. The default is 5 with a range of 0 to 20.
Raising the number will smooth a jagged edge or filter out weaker edges. Adjust the filter size
upward or downward on the Filtered Plot to develop a smooth curve without spikes and position
the vertical edge indicator line to coincide with the edge position. Filter Size and Filter Gap are
used together to define the position of the edges. It may be necessary to adjust both properties
several times to optimize them.
Filter Gap filters out the pixels showing the greatest change (peaks of an Edge Strength Plot).
Use this property to increase the tool’s sensitivity to find weak edges or to minimize the effect of
slight changes in edge location. The default is 2 with a range of 0 to 20. Adjust the Filter Gap by
positioning the vertical edge indicator line to coincide with the position of the edges.
Select the number of detectors to use. The detectors are automatically placed at equal intervals
to cover the full range as defined by Horizontal Position and Horizontal Width for the horizon-
tally oriented detectors and by Vertical Position and Vertical Width for the vertically oriented
detectors. For well-defined edges, smaller numbers (3-5) of detectors can be used. As a rule,
use an odd number of detectors to insure the image is sampled in the middle and at the edges.
Use larger numbers of smaller width detectors to detect jagged or less pronounced edges. The
default for Number of Detectors is 5 with a range of 1 to 20. The number of detectors selected
is the number of both the horizontally oriented detectors and the vertically oriented detectors.
Select the horizontal position of the horizontal detectors. This sets the ROI position of the hori-
zontally oriented edge finder group. The default value is 50 with a range of 0 to 100.
Select the horizontal width of the area covered by the horizontal detectors. This sets the width of
the ROI of the horizontally oriented edge finder group. The default value is 25 with a range of 0
to 100.
Select the width of the detectors. In general, adjust the width so that the detector nearly touches
the adjacent detector. Detectors are set to overlap slightly when inspecting for small angular
changes or less pronounced edges. The default value is 15 with a range of 1 to 100. This value
sets the width of the edge finders.
Select the vertical position of the vertical detectors. This sets the ROI position of the vertically
oriented edge finder group. The default value is 50 with a range of 0 to 100.
Select the vertical width of the area covered by the vertical detectors. This sets the width of the
ROI of the vertically oriented edge finder group. The default value is 25 with a range of 0 to 100.
Ellipsis Button
4.3.1 Name
The system automatically names the tool Cnr or Cnr n, where n is an integer number starting
with 1. Deleting the name and typing in a new name can change the name of the tool. If the
name of the tool is left blank, the name Tool will be assigned.
Use this property to assign the tool to an output line. Click the Ellipsis button and
select an output line number. See the Vision Editing section of the TIPS System
Software Manual for further details regarding selecting an output line number.
4.3.3 Location
X is the position in pixels from the extreme left limit of the image to the left bound-
ary of the ROI.
Y is the position in pixels from the extreme top limit of the image to the upper
boundary of the ROI.
5 Tool Training
The Corner Tool does not require training per se. Training can be used as follows: Acquire an
image of the calibration standard. Layout the ROI, tune the setup tab parameters to get good
edge points along the edge to be measured. Set the Runtime tab parameters to position the
edge finders to measure the edge feature of interest. Training the tool will store the found corner
point as a ‘home’ x-y coordinate and this x-y value is available to other tools such as the Math
Tool. The following pictures show this feature:
The preceding picture shows the tool property parameter data before training. Note all values
are default values. The next picture shows how the values have changed after training:
See the Tool Training section of the Introduction to Vision Tools manual for details regarding
tool training.
See the Statistical Training Considerations section of the Introduction to Vision Tools man-
ual for details regarding statistical tool training.
6 Display Graphics
Minimum The tool ROI is displayed in either colorPass (Default value is usually green.)
Graphics or colorFail (Default value is usually red.), depending on the successful com-
pletion of all calculations by the tool. The coordinates of the X-Y location (in
pixels) are shown at the top of the ROI in green if the corner is found. The
words “Missing Edge” are displayed in red at the top of the ROI if not enough
edges are found. The following picture shows a passed inspection with the X-
Y coordinates in green at the top of the ROI.
Minimum The following picture on the right shows a failed inspection with words “Miss-
Graphics ing Edge” in red.
(continued)
Normal The minimum graphics are displayed plus: The best fit lines shall be indi-
Graphics cated by dotted lines along each corner edge.
Maximum The Normal graphics are displayed plus: The found corner coordinate val-
Graphics ues in pixels are displayed in the upper left corner of the ROI in colorInfo
(Default value is yellow.). Boxes outlining the bounding regions for the
edge finders and additionally a line indicating where an edge was found
are shown. If no edge was found, the edge finder is displayed in colorFail,
otherwise the edge finder will be displayed in colorInfo.
The tool should be placed after any reference providing tools in the Execution Order list. Nor-
mally use either the Locate Tool or the Component Placement Verification Tool to provide
location referencing.
See the Editing Tool Order section of the Introduction to Vision Tools manual for details
regarding execution order.
The characteristics in the following table can be tagged using Tag Editor in SENTRI Non X-
Series system software or Builder in ADVISOR X-Series, SENTRI X-Series, SENTRI BLIS-
TER, and ADVISOR Non X-Series system software.
These tags can be displayed by clicking on Performance on the Builder screen tool bar, View,
Counts tab, and CNR. The tags can also be displayed on any screen using the Screen Edit fea-
ture.
The tags can also be displayed on any screen using the Screen Edit feature.
Size The Filter Size setting in pixels. The range is 0 to 20. See the
Filter Size property on the Setup tab.
Gap The Filter Gap setting in pixels. The range is 0 to 20. See the
Filter Gap property on the Setup tab.
Detectors The Number of Detectors. The range is 1 to 20. See the Num-
ber of Detectors property on the Runtime tab.
DetectorWidth The Detector Width setting in pixels. The range is 1 to 100. See
the Detector Width property on the Runtime tab.
Trained Trained is an enabling bit value. 0 is the bit value for not trained
and 1 is the value of the bit for a trained tool. See the Tool
Training section of this manual.
In this example, a rectangle is inspected for calculation of its upper right-hand corner. The tool is
adjusted to prohibit getting a false corner from a rounded corner.
1. Set the graphics mode to Maximum to display segmentation of objects and help in
troubleshooting during tool training. Return the property to None, Normal or Mini-
mum when conducting inspections to make the system more responsive to operator
requirements after training is complete.
2. Jog the packaging line until an object to be inspected is in the inspection area. Use
only good objects in their proper location.
3. Select the CNR tool and draw an ROI around the blister format. Size the ROI to sur-
round the inspection area. Size the tool to account for any anticipated movement of
the web. The following picture shows the CNR ROI constructed around the corner of
the object to be inspected for existence and location of the upper left-hand corner.
The tool correctly finds the corner using all default values in the Cnr Properties dia-
log box.
4. Test the tool on variations in position and orientation that might be expected during
operation. The size of the tool is not adequate to find the corner in some circum-
stances as shown in the following two pictures. Making the tool large enough to pick
up the right corner might allow it to “find” a different or wrong corner.
5. Open a CPV Tool ROI for the left vertical edge and one for the top horizontal edge.
Change the order of the tool inspections to have the CNR Tool inspect last. The
CNR Tool ROI now follows the object to be inspected as shown in the next picture:
6. Increase the number of detectors slightly and increase the percentage area within
the ROI that the detectors cover. The example has smooth edges so a high density
of detectors is not necessary. Making the CNR Tool ROI larger without the CPV
tools could possibly cause the CNR tool to find the wrong corner of the rectangle.
The changed detector properties are shown in the following picture of the Cnr Prop-
erties dialog box:
7. The CNR tool now finds the corner regardless of orientation and position as shown in
the following two pictures:
10 Index
A
Adjustment .....................................................................................................................................2
ADVISOR Non X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
ADVISOR X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
Average Pixel Plot ..........................................................................................................................4
B
Blue ................................................................................................................................................6
Builder
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
Screen ....................................................................................................................................15
Button
Ellipsis ......................................................................................................................................9
Properties .................................................................................................................................2
C
CNR Properties ..............................................................................................................................3
Cnr Properties Dialog Box .............................................................................................................2
ColorFail
1 ...............................................................................................................................................2
2 .............................................................................................................................................11
3 .............................................................................................................................................13
ColorInfo
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
ColorPass
1 ...............................................................................................................................................2
2 .............................................................................................................................................11
Component Placement Verification Tool .....................................................................................14
Corner Tool
Based On .................................................................................................................................1
Description ...............................................................................................................................1
Used For ..................................................................................................................................1
Counts ..........................................................................................................................................15
CPV Tool ........................................................................................................................................1
D
Detector # .......................................................................................................................................5
Detector Width ...............................................................................................................................8
Index:
27
TIPS Vision Tool Manual
Corner (CNR) Tool
Detectors ........................................................................................................................................7
Dialog Box
Cnr Properties ..........................................................................................................................2
Display Graphics ..........................................................................................................................11
E
Edge Strength Plot
1 ...............................................................................................................................................3
2 ...............................................................................................................................................6
Edge Threshold
1 ...............................................................................................................................................4
2 ...............................................................................................................................................6
Description ...............................................................................................................................2
Edge Tuning ...................................................................................................................................2
Ellipsis Button ................................................................................................................................9
Example .......................................................................................................................................18
Execution Order ...........................................................................................................................14
F
Failed ............................................................................................................................................15
Filter Gap .......................................................................................................................................6
Filter Size
1 ...............................................................................................................................................5
2 ...............................................................................................................................................6
Filtered Plot ....................................................................................................................................5
First Derivative ...............................................................................................................................2
FoundCornerX .............................................................................................................................15
FoundCornerY .............................................................................................................................15
FoundHoriA ..................................................................................................................................15
FoundHoriB ..................................................................................................................................15
FoundHoriC ..................................................................................................................................15
FoundVertA ..................................................................................................................................15
FoundVertB ..................................................................................................................................16
FoundVertC ..................................................................................................................................16
G
Graphics .......................................................................................................................................11
Maximum ................................................................................................................................13
Minimum
1 .......................................................................................................................................11
2 .......................................................................................................................................12
Normal ....................................................................................................................................13
Gray Scale
Change .....................................................................................................................................2
Value ........................................................................................................................................2
Gray Value .....................................................................................................................................1
Green .............................................................................................................................................2
Index:
28
TIPS Vision Tool Manual
Corner (CNR) Tool
H
HomeX .........................................................................................................................................16
HomeY .........................................................................................................................................16
Horiz(ontal) Position ......................................................................................................................7
Horiz(ontal) Width ..........................................................................................................................7
I
Inspected ......................................................................................................................................15
K
Kernal .............................................................................................................................................1
L
Line Fitting ......................................................................................................................................2
Locate Tool ..................................................................................................................................14
Location ..........................................................................................................................................9
M
Math Tool .....................................................................................................................................10
Maximum Graphics ......................................................................................................................13
Minimum Graphics
1 .............................................................................................................................................11
2 .............................................................................................................................................12
N
Name ..............................................................................................................................................9
Normal Graphics ..........................................................................................................................13
Number of Detectors ......................................................................................................................7
P
Parameter Tags ...........................................................................................................................17
Passed .........................................................................................................................................15
Performance .................................................................................................................................15
Performance Counts ....................................................................................................................15
Pixel-Weighting Filter .....................................................................................................................1
Position ..........................................................................................................................................7
Properties .......................................................................................................................................3
Properties Button ...........................................................................................................................2
Property Information ....................................................................................................................15
R
Red .................................................................................................................................................2
Region of Interest ...........................................................................................................................2
Result Lines ...................................................................................................................................9
Index:
29
TIPS Vision Tool Manual
Corner (CNR) Tool
ROI
1 ...............................................................................................................................................1
2 ...............................................................................................................................................2
3 ...............................................................................................................................................9
Runtime Tab .................................................................................................................................10
S
Screen Edit
1 .............................................................................................................................................15
2 .............................................................................................................................................17
SENTRI BLISTER
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
SENTRI Non X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
SENTRI X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................15
Setup ..............................................................................................................................................2
Setup Tab
1 ...............................................................................................................................................1
2 ...............................................................................................................................................3
Station Parameter Tags ...............................................................................................................17
T
Tab
Runtime ....................................................................................................................................7
Setup ........................................................................................................................................3
Tag Editor
1 .............................................................................................................................................15
Tags
1 .............................................................................................................................................15
2 .............................................................................................................................................17
Threshold .......................................................................................................................................6
Tool Adjustment .............................................................................................................................2
Tool Execution Order ...................................................................................................................14
Tool Name ......................................................................................................................................9
Tool Property Information ............................................................................................................15
Tool Setup ......................................................................................................................................2
Tool Training ................................................................................................................................10
Training ........................................................................................................................................10
V
Vert(ical) Position ...........................................................................................................................8
Vert(ical) Width ..............................................................................................................................8
Vision Edit Screen ..........................................................................................................................2
Index:
30
TIPS Vision Tool Manual
Corner (CNR) Tool
W
W ....................................................................................................................................................9
Width
1 ...............................................................................................................................................7
2 ...............................................................................................................................................8
Y
Y .....................................................................................................................................................9
Yellow .............................................................................................................................................2
Z
H .....................................................................................................................................................9
X .....................................................................................................................................................9
End of document.
Index:
31
SYSTECH International, Inc.
2540 Route 130, Suite 128
Cranbury, NJ 08512
Phone: (609) 395-8400 FAX: (609) 395-0064
www.systech-tips.com