Optimize Machine Vision Inspection Results with Dedicated Lighting | Automation.com

Optimize Machine Vision Inspection Results with Dedicated Lighting

Optimize Machine Vision Inspection Results with Dedicated Lighting
By Brent Evanger
Applications Engineer
Banner Engineering

Many engineers use machine vision equipment in quality control inspection processes. To attain accurate results from these inspections, however, the user must ensure sufficient lighting. A dedicated lighting configuration allows vision sensors to yield high-contrast images that dramatically improve the repeatability, reliability and accuracy of a visual inspection.

To determine the ideal lighting technique and configuration for an application, the user must consider the target object/feature of interest, as well as the plant environment and the mounting requirements.

These applications traditionally apply one of three main lighting techniques—or three different arrangements of how the light is positioned relative to the target object. Each method offers distinct advantages. In the first lighting technique, backlighting, the light source is located behind the target object, with the light directed into the camera. Backlighting delivers the highest contrast of the three lighting techniques, but requires space behind the part to mount the light (not possible in some setups).

When the light source is positioned to shine perpendicular to the object, the most common lighting technique is being employed: bright-field illumination. Bright-field lighting is easy to set up but such installations can suffer from lighting “hot spots” or glare; especially if the target part is shiny or has a smooth finish. In dark-field illumination, on the other hand, the light source is positioned at a low angle, relative to the camera. This setup causes the light to reflect off the smooth surfaces of the target object, away from the camera. In this way, the object is lit indirectly. Only raised or lowered features stand out when this lighting technique is used: flat portions of the part appear dark in the image.

The most important factor in selecting a lighting strategy for a vision application concerns the optical properties of the target object/feature of interest. Consideration should be given to the target object's shape, texture, color and translucency. Understanding and exploiting what differentiates the target object from the background is crucial to creating contrast and securing an accurate inspection.

Lighting based on shape is one of the most common ways to solve applications. Change in height, width, length or edge features all fall under the “shape” category. Since backlighting creates the highest contrast, producing a binary image that is easy to process, engineers should first consider this technique for applications that rely on the optical property of shape.

In addition to selecting a lighting technique that will detect irregularities in shape, engineers should consider the need for highlighting differences in the target object's surface texture, such as flaws or other features including cuts, embossing, scratches and difference in surface finish. For inspections that focus on surface texture, backlights, which aren't affected by changes in texture, shouldn't be used. Instead, a dark-field lighting technique can be employed.

Dark-field lighting causes the smooth surfaces of an object (perpendicular to the camera) to appear dark, and is useful in making surface defects, raised or lowered features and textures to appear bright. Area lights, a source of dark-field lighting when positioned correctly, provide even illumination in a concentrated area. Additionally, these lights can be mounted at any angle to provide a solution for many otherwise challenging applications. Light rays are reflected differently by various surface textures. While smooth, flat surfaces reflect away from the lens, diffuse surfaces reflect a portion of the light rays into the lens. To effectively utilize this technique, engineers should experiment with placing area lights at different angles from the target object.

To differentiate one color from another—a capability that proves valuable in many vision inspection applications—contrast must be established between a correct and incorrect color, instead of an object and its background. Many times this sort of lighting problem is solved with a well chosen colored ring light.

A type of bright-field lighting, ring lights surround the camera lens, directing light straight to the target object and creating even illumination of the surface so that the vision sensor can accurately detect the color of the object. Useful for providing general, diffused illumination over a small area, colored ring lights can also be used to create contrast between color differences in various parts of an object.

A light source color that is similar to the color of the target object will make the part appear brighter. On the other hand, when a light source color is complimentary to the color of the part, the part will appear darker. Because of this, colored lights and/or colored lens filters can create the necessary contrast.

Translucency refers to the objects ability to transmit light. Since detecting the presence of translucent portions of a part can be difficult with a bright-field light, a backlight should be used for these applications. In backlighting, the highest contrast lighting technique available, the light source is positioned behind the object, shining directly into the camera, causing only transparent features (like holes) to be visible. A polarizing filter can also be used with a backlight, particularly when the objective is to detect flaws in otherwise clear materials.

In addition to the properties of the target object, consideration should be given to certain aspects of the surrounding plant environment. Inconsistent lighting from ambient fluorescent bulbs as well as windows or skylights interferes with the repeatable contrast needed for accurate vision sensing. Inspection failures due to inconsistent lighting conditions can be eliminated by either suppressing the ambient light or shrouding the inspection area. The first method involves utilizing a light source much brighter than the ambient light, and placing it in close proximity to the target object, which can be accomplished through the dedicated lighting techniques described above. The effects of ambient light can also be suppressed by the use of filters.

The second method of preventing inconsistent lighting conditions involves mechanically shrouding an inspection area. This is accomplished through positioning a physical barrier between the ambient light source and the inspection area. An area can be shrouded with an opaque material such as a steel plate or a semitransparent material such as a tinted polycarbonate.

All lighting equipment should be rated according to the environmental requirements, such as dust and dirt, as well as washdown. For example, high frequency tubular lighting rated NEMA 4, IP67 can be used in harsh environments, and numerous additional options are available for diverse requirements.

Even when a dedicated lighting technique provides the capabilities required by a specific application, mounting requirements may make it impractical for that particular application. For example, while backlighting provides ideal contrast for many applications, placing the light behind the target object may be physically unfeasible. Backlighting also requires the area of illumination to be larger than the area of inspection, which may not fit the parameters of some set-ups.

Low-angle lights—a dark-field technique that directs light nearly parallel to the imaged surface of the target object, casting shadows that emphasize changes in elevation and enhancing the contrast of surface features—can also pose logistic problems for some applications. These lights must be set-up with the light source close to the target object, which may be impossible in some vision inspection layouts.

To accommodate mounting restrictions within the application environment, engineers can select a configuration that better meets their requirements, such as ring lights. These lights provide even illumination for small objects and can be mounted directly on the sensor, providing a viable option when space is at a premium.

Dedicated lighting can guarantee constant, consistent conditions that can be manipulated to create a high-contrast image for vision inspections. By considering the optical properties of the target object as well as the environmental and mounting requirements, a lighting configuration can be determined to best meet an application's needs.
Did you Enjoy this Article?

Check out our free e-newsletters
to read more great articles.

Subscribe Now