VI User Manual - 第178页

Tools library 7 - 16 Vision 2007 4.10 User Manual Re v 01 5. To round the shape, pr ess button , then click on the wanted vertex or seg- ment and define the circle diameter. 6. To add or remove a vertex, and to remove a …

100%1 / 412
Tools library
Vision 2007 4.10 User Manual Rev 01 7 - 15
7.3.2.2 Vector tool model creator
Presentation
Option available on Vi-Pro model.
Vector tool model creator allows to create model by
using mouse on a real image.
It is really easy and
fast, you just have to click on vertex along the shape.
Vector tool model creator is helpful for the vector
model programming. It is easier and faster to program
new model and more accurate if you directly enter the
component size in vertex table.
In Train tab, click on Vectoral Editor button, this win-
dow appears:
In New shape (1) part, buttons allow to add different kind of shape using
the mouse.
Several continuous segment (opened or closed shape)
A rectangle
A circle
A triangle
A square angle
Or if you know the exact component dimensions, click on button to enter
directly component vertex position in a table.
In Edition (2) part, buttons allow to edit vector.
In Shape list (3) part, buttons allow to manage several different and discontinuous
shapes in one model.
How to use Vector tool model creator ?
1. In Model description tab, create a Vi-Pro model and select the image.
2. In Vi-Pro tab, go to Train tab and click on Vectoral Editor button.
3. Create the shape with New shape button. Draw the
shape by using mouse on the image.To finish the
shape, double click.
4. To see and move a vertex press
button, then drag and drop the vertex
by clicking on it and move it.
1
2
3
Vi-Pro
Tools library
7 - 16 Vision 2007 4.10 User Manual Rev 01
5. To round the shape, press button,
then click on the wanted vertex or seg-
ment and define the circle diameter.
6. To add or remove a vertex, and to remove a segment, several tools are available:
To add a vertex to the shape, press button, then click on the segment on which
the vertex is added, and move it to the wanted place.
To remove a vertex of the shape, press button, then click on the vertex to re-
move.
To remove a segment of the shape, press button, then click on the segment to
remove.
7. To edit the coordinates
of a vertex, press
button, the opposite
window appears in
which the vertex coor-
dinates are modified.
8. After the shape definition, press button to add it in the Shape list.
9. Click on Polarity button to reverse the vector polarity.
10. When the shape is OK, click on Train button to create the vector tool model.
For a same model, several shapes could be defined by using the Shape list.
Press button to remove a shape from the
Shape list.
Press button to remove all shapes from the
Shape list.
The old way of model programming used syn-
thetic image, so vector polarity was automati-
cally set during the training.
Example
This model is done with
2 shapes: 1 polygon
and 1 triangle.
The model is used like
a classical Vi-Pro mod-
el.
Model
with rouding vertex
Model
with rouding segment
Trained image
Vi-Pro
Tools library
Vision 2007 4.10 User Manual Rev 01 7 - 17
When to use Vector Tool Model Creator ?
Vector Tool Model Creator option can be used among other:
To create a model of complex shape.
To create model of opened shape. This ability could be very
useful for components whose part of edge is not visible.
To create model without certain segment (choose rep-
resentative segment for the model).
7.3.2.3 Vi-Pro test
Click on Test (A) button to apply all the inspection parameters to the
model, then a fiducial representing the center of the model will appear
in the camera window.
Score (B): score of the test-
ed tool (rate of detection suc-
cess).
dXY(mm) (C): position in X
and Y of the model found with
respect to the center of the
model’s encompassing area.
dT(d°) (D): position result in theta of the tested model.
FitErr
(Vi-Pro algorithm) (
E
): the closer the measurement is to 0, the better the model is.
Cntr (F): difference of a transition, in gray level values between background brightness
and component brightness. This value is the average of the transition contrast found dur-
ing the test.
Cv (
Vi-Pro
algorithm) (G): the coverage measures the percentage of vectors found in the
image of the search window with respect to the trained model:
The more vectors found, the closer the result will be to 1.
The fewer vectors found, the closer the result will be to 0.
ScXY (H): scale of the model found with respect to the trained model.
T (ms) ( I ): inspection time.
A
B C D E F G H I
Vi-Pro