10. Test a complete range of good and bad samples to make sure that the sensor accepts good parts and rejects bad parts.
Figure 259. Edge02 ROI
Figure 260. Edge02 ROI
9.2
Measure Tool
Use the Measure tool to determine distances, calculate angles, and create points and lines for use as inputs to other Measure tools.
The Measure tool
operations
are:
• Measure from a point to a point
• Determine the
intersection
between two lines
• Measure from a line to a point
The points used in these
operations
are generated by a variety of vision tools and the lines are created by other Measure tools.
Example
applications:
• Determine the distance between blobs
• Measure the width of a label
• Determine if two edges are parallel to each other
9.2.1 Measure Tool:
Operations
Measure from a Point to a Point
In this
operation,
the distance between two points is calculated. In
addition,
the x and y components of that distance
calculation
are
returned.
Along with distance, the following results are generated in this
operation:
• A line from point 1 to point 2
• The angle of that line
(relative
to the x-axis)
• The midpoint
location
halfway between point 1 and point 2
How the Tool Measures Two Points
The inputs to the Measure tool for measuring two points are any two points that vision tools generate.
The results include the total distance between the points and the x and y component distances. In
addition
to
finding
these distance
values, the Measure tool also calculates the line between the two endpoints. The angle between this line and the camera’s horizontal
plane, as well as the coordinates for the line’s midpoint, are also provided.
For example, a Measure01 measurement between the two points Edge01 and Edge02 appears as a dashed line. The actual measured
distance between the points is a solid green line labeled Measure01 and an arrowhead indicates the
direction
of the measurement
operation
(from Edge01 to Edge02, in this case). A blue circle is the midpoint. Two shorter dashed lines represent the x and y
components. The angle between Measure01 and the horizontal plane is a curved arrow. The results show the angle in degrees.
See
Using the Edge and Measure Tools
on page 94 for a Measure tool example.
Intersect Two Lines
In this
operation,
the results of the
intersection
of two lines is generated. These results are:
• The angle of
intersection
between the two lines, measure from line 1 to line 2
• The
intersection
point, even if this point is not in the image
How the Tool Measures Two Lines
This mode
finds
the angle between two lines. Both inputs are the line outputs from
existing
Measure tools. The order in which these
tools are input
matters.
The
intersection
point can be
off
of the screen. This angle provides the ability to measure two lines for parallelism.
VE Series Smart Camera
130
www.bannerengineering.com - Tel: 763.544.3164