Blister Pack Inspection

NI Vision Assistant

Blister Pack Inspection

Application Type Inspection
Image Characteristics Color; Non-linear Lighting
Machine Vision Tool(s) Color Location

The blister pack inspection example determines if a blister pack has the correct number and type of pills using the Color Location function. The inspection determines the number of a specific color pill in the package.

Because the colors of the wrong pills (blue) are very distinct from the correct ones (green), a low sensitivity color representation is adequate for color location. Because you are interested only in counting the number of pills rather than finding the exact location of the pills, use a very aggressive search strategy.

Color Location—Determines the number of a specific color pill in the blister pack. To use color location, you first define a color template that represents the green part of a good pill. The Color Location function locates all instances of color information in an image that matches the template. You can use the number of matches (locations) to determine if the blister pack contains the correct number of pills.