Feature Weighting. In cases in which several image features must be measured to interpret an image, a simple factor
weighting method can be used to consider the relative contribution of each feature to the analysis. For example, the image
area alone may not be sufficient to ensure the positive identification of a particular valve stem in a group of valve stems
of various sizes. The measurement of height and the determination of the centroid of the image may add some additional
information. Each feature would be compared with a standard for a goodness-of-fit measurement. Features that are known
to be the most likely indicators of a match would be weighted more than others. A weighted total goodness-of-fit score
could then be determined to indicate the likelihood that the object has been correctly identified.
Template Matching. In this method, a mask is electronically generated to match a standard image of an object. When
the system inspects other objects in an attempt to recognize them, it aligns the image of each object with that of the
standard object. In the case of a perfect match, all pixels would align perfectly. If the objects are not precisely the same,
some pixels will fall outside of the standard image. The percentage of pixels is two images that match is a measure of the
goodness-of-fit. A threshold value can then be assigned to test for pass (positive match) or reject (no match) mode. A
probability factor, which presents the degree of confidence with which a correct interpretation has been made, is normally
calculated, along with the go/no-go conclusions.
Variations on these two approaches are used in most commercially available vision systems. Although
conceptually simple, they can yield powerful results in a variety of manufacturing applications requiring the identification
of two-dimensional parts with well-defined silhouettes.
With either method, a preliminary session is usually held before the machine is put into use. During this session, several
sample known parts are presented to the machine for analysis. The part features are stored and updated as each part is
presented, until the machine is familiar with the part. Then, the actual production parts are studied by comparison with
this stored model of a standard part.
Mathematical Modeling. Although model building, or programming, is generally accomplished by presenting a
known sample object to the machine for analysis, it is also possible to create a mathematical model describing the
expected image. This is generally applicable for objects that have well-defined shapes, such as rectangles or circles,
especially if the descriptive data already exist in an off-line data base for computer-aided design and manufacture
(CAD/CAM). For example, the geometry of a rectangular machined part with several circular holes of known diameters
and locations can be readily programmed. Because more complex shapes may be difficult to describe mathematically, it
may be easier to teach the machine by allowing it to analyze a sample part. Most commercial systems include standard
image-processing software for calculating basic image features and comparing with models. However, custom
programming for model generation can be designed either by the purchaser or by the vision system supplier. Off-line
programming is likely to become increasingly popular as CAD/CAM interface methods improve.
Although the techniques described above apply to many, if not most, of the machine vision systems that are commercially
available, there are still other approaches being used by some suppliers, particularly for special-purpose systems for such
applications as printed circuit board (PCB) inspection, weld seam tracking, robot guidance and control, and inspection of
microelectronic devices and tooling. These special-purpose systems often incorporate unique image analysis and
interpretation techniques that exploit the constraints inherent in the applications.
For example, some PCB inspection systems employ image analysis algorithms based on design rules rather than feature
weighting or template matching. In the design rule approach, the inspection process is based on known characteristics of a
good product. For PCBs, this would include minimum conductor width and spacing between conductors. Also, each
conductor should end with a solder pad if the board is correct. If these rules are not complied with, then the product is
rejected.
Interfacing
A machine vision system will rarely be used without some form of interaction with other factory equipment, such as
CAD/CAM devices, robots, or host computers. This interaction is the final element of the machine vision process, in
which conclusions about the image are translated into actions. In some cases, the final action may take the form of
cumulative storage of information in a host computer, such as counting the number of parts in various categories for
inventory control. In other situations, a final action may be a specific motion, such as the transfer of parts into different
conveyors, depending on their characteristics. Vision systems are being increasingly used for control purposes through the
combination of vision systems and robots. In this case, the vision system greatly expands the flexibility of the robot.