This website requires certain cookies to work and uses other cookies to help you have the best experience. By visiting this website, certain cookies have already been set, which you may delete and block. By closing this message or continuing to use our site, you agree to the use of cookies. Visit our updated privacy and cookie policy to learn more.
This Website Uses Cookies
By closing this message or continuing to use our site, you agree to our cookie policy. Learn More
This website requires certain cookies to work and uses other cookies to help you have the best experience. By visiting this website, certain cookies have already been set, which you may delete and block. By closing this message or continuing to use our site, you agree to the use of cookies. Visit our updated privacy and cookie policy to learn more.
Quality Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
Quality Magazine logo
  • Home
  • The Magazine
    • Current Issue
    • Digital Edition
    • Archives
    • How To Guide
    • Industry News
    • Subscribe
  • Web Exclusives
    • Blogs
    • NDT Exclusives
    • Quality Exclusives
    • Vision & Sensors
  • New Products
  • Channels
    • Management
    • Measurement
    • NDT
    • Quality 101
    • Software
    • Test & Inspection
    • Vision & Sensors
  • Markets
    • Aerospace
    • Automotive
    • Electronics
    • Energy
    • Green Manufacturing
    • Medical
    • Plastics
  • More
    • Leadership 100 Survey
    • Plant of the Year
    • Professional of the Year
    • Job Board
    • White Papers
    • Quality Store
    • Software Downloads
    • eCards
    • Product Spotlights
    • Industry Links
    • Sponsor Insights
    • Market Research
  • Multimedia
    • eNewsletter
    • Podcasts
    • Videos
    • Webinars
    • Showcases
    • Image Galleries
    • Interactive Spotlights
  • Events
    • IMTS
    • Event Calendar
    • Quality Show
  • InfoCenters
    • Manage Quality, Risk & Compliance
    • Material Science Quality within Microscopy
    • Modern Quality Control with SPC
    • Process Control in Manufacturing
  • Directories
    • Buyers Guide
    • NDT Sourcebook
    • V&S Sourcebook
    • Take a Tour
  • Contact
    • Contact Us
    • Advertise
Home » Use Optical Filtering to Improve Machine Vision Repeatability
Vision & Sensors

Use Optical Filtering to Improve Machine Vision Repeatability

Optical filters have been used to help solve difficult machine vision challenges

machvis_sl1
Chromatic aberration can be corrected by a bandpass filter. The image on the left side is without a filter and the image on the right has a blue bandpass filter that provides a sharper and higher contrast image by correcting for chromatic aberration. Source: Cognex
machvis_sl2
Different types of bandpass filters. Source: Cognex
machvis_sl3
Use white light with bandpass filters to determine the optimal LED wavelength. Source: Cognex
machvis_sl4
Use white light with bandpass filters to determine the optimal LED wavelength. Source: Cognex
machvis_sl5
Monochrome camera with filter is often more efficient than color camera. The cartridge shown on the lower left image fluoresces blue. Using a color camera to look at the blue print would be inefficient because only 25% of the pixels in a color camera are configured to see blue light. Of the rest, 25% are configured to look at red and 50% to look at green. Half the pixels are set up to detect green light because our eyes are more sensitive to green light. On the other hand, a monochrome filter with a blue bandpass filter utilizes 100% of the pixels in the vision system while the bandpass filter passes about 90% of the blue light. The result is that in this application a monochrome light with a blue bandpass filter is 90% efficient compared to 25% efficiency for a color vision system. Source: Cognex
machvis_sl6
Wall plug with and without polarizing filter. Source: Cognex
machvis_sl7
Blue bandpass filter improves date and lot code reading [NOTE: in caption remove “white LED”, and keep only Blue Bandpass]. The next application involves reading the date and lot which consists of yellow text on a white background, resulting in a low contrast image. Source: Cognex
machvis_sl8
Color sorting results. The objective of this next application is to separate the red from the blue caps with a monochrome vision system. Source: Cognex
machvis_sl9
IR bandpass filter reduces interference. In the image shown here with no filter, the barcodes on the individual water bottles interfered with the barcode on the outside of the (shrink-wrap) package, which is the one that is supposed to be read. When an IR only filter is used, the barcode on the bottles disappears while the barcode on the package is passed, eliminating the interference problem. Source: Cognex
machvis_sl10
Counting LEDs. In the LED counting example shown here, with no filter the light was too intense for inspection even when the lens was stepped down to the smallest aperture setting. A neutral density filter that reduces intensity by about 50% made it possible to individually count each LED head. Source: Cognex
machvis_sl1
machvis_sl2
machvis_sl3
machvis_sl4
machvis_sl5
machvis_sl6
machvis_sl7
machvis_sl8
machvis_sl9
machvis_sl10
January 6, 2014
John Lewis and Jason Dougherty
KEYWORDS machine vision
Reprints
One Comment

Although optical filters are often viewed as an afterthought in machine vision applications, their  ability to optimize lighting and the entire vision system makes them so valuable that they should be considered from the initial planning stages of most applications. The value of optical filters arises from their ability to block all unwanted ambient lighting and pass only the output of light needed for inspection while increasing contrast and resolution. To select the right filter for a specific application, first define the imaging objective such as improving contrast, reducing glare, color sorting, and removing barcode interference. Determine the optimal light emitting diode wavelength by testing white light with various bandwidth bandpass filters. Once the appropriate light wavelength has been chosen, the corresponding bandpass filter can be used to control the variables. This article will provide more information on optical filter advantages and selection and provide real-world examples of how optical filters have been used to help solve difficult machine vision challenges.

Basics of Optical Filters

Optical filters are all about increasing or maintaining consistent image quality, which in turn can improve the accuracy and reduce inspection time of most machine vision applications. Filters improve image quality, by blocking interfering light that surrounds the application and only passing light that adds value to the machine vision application, which often results in higher contrast and resolution. Each color focuses at a different point on the imaging plane of a lens which limits the resolution of the resulting image due to an effect known as chromatic aberration. By using a bandpass filter that allows only one color to reach the lens, you can effectively increase the resolution.

Typical monochromatic LEDs have a total light output that spans 60 to 70 nanometers that generally have a ±10nm tolerance. Some machine vision bandpass filters are available that span 80-90 nm and are designed purposefully broad to accommodate the entire output of the LED (and their typical tolerance shifts). A narrow bandpass filter spans 40-50 nm and an acutely narrow filter spans 20 nm. The acute narrow filter, for example, blocks the maximum amount of ambient light; however, it also reduces the intensity of the wavelength of interest. On the other hand, some bandpass filters pass the entire wavelength of interest. Which filter will work best in a specific application depends largely on the degree to which ambient light is interfering with the inspection operation. A narrow bandpass filter (40-50nm) offers a good compromise for the majority of extreme ambient light applications.

Selecting Optical Filters

A good starting point when choosing a filter is to understand what the imaging objective is or what the imaging problem may be in order to help determine what filter is going to work best for the application. What are you trying to do? What do you need to look at? Does the contrast need to be increased? Do you have a lot of ambient light surrounding the area to be inspected? Are there different colors that you’re trying to separate?

Next, utilize white light with bandpass filters to determine the optimal LED wavelength for your application. Each bandpass filter highlights a different wavelength of light similar to the output of its corresponding LED. Viewing the image that is captured with each filter makes it possible to evaluate how different wavelengths (illumination) will affect image quality.

Filter test kits containing an assortment of bandpass filters are usually the fastest way to find the most suitable wavelength to optimize image quality. They can be used to quickly find the light source and bandpass filter that maximizes contrast and reduces interfering light to control the variability of the application.

Another common question to ask in the beginning phase of the application is whether to use a monochrome or color vision system. The first thought in applications where color is present is to use a color sensor but often a monochrome imaging system and filters can provide a more efficient way of optimizing the system. Consider this example (seen in Figure 5) where the cartridge shown on the lower left image fluoresces blue. Using a color camera to look at the blue print would be inefficient because only 25% of the pixels in a color camera are configured to see blue light. Of the rest, 25% are configured to look at red and 50% to look at green. Half the pixels are set up to detect green light because our eyes are more sensitive to green light. On the other hand, a monochrome filter with a blue bandpass filter utilizes 100% of the pixels in the vision system while the bandpass filter passes about 90% of the blue light. The result is that in this application a monochrome light with a blue bandpass filter is 90% efficient compared to 25% efficiency for a color vision system.

Polarizing filters are very useful in applications where glare is a problem. When light that is polarized in a specific direction hits a diffuse surface most of the light becomes randomly polarized and reflects in random directions. Areas where strong reflections exist, however, maintain much of the incident light angle of polarization. By placing another polarizing filter on the camera lens, rotated 90 degrees relative to the light source angle of polarization, the strong reflections of polarized light are absorbed by the camera lens filter. The diffused light from the non-glare area is transmitted to the camera lens and glare is greatly reduced.

Application Examples

The next application (shown in Figure 7) involves reading the date and lot which consists of yellow text on a white background, resulting in a low contrast image. Keeping in mind that blocking a particular color will darken it while passing a color will highlight it, a blue bandpass filter was used to block the yellow portion of the spectrum, causing the yellow text to appear as black. At the same time, the blue bandpass filter passes the blue portion of the white light, so the white text remains white. The result is that the contrast of the application is dramatically increased, improving the read rate and reducing the inspection time.

The objective of this next application is to separate the red from the blue caps with a monochrome vision system. With no filter there’s very little contrast between the red and blue caps. With a blue bandpass filter, the blue caps are highlighted due to the filter passing that specific wavelength and the red caps are darkened due to the filter blocking that specific wavelength. With a red bandpass filter, on the other hand, the red caps are highlighted and the blue caps are darkened. In this application, either filter improves the contrast between the red and blue caps to the point that they can easily be distinguished with image processing tools.

An optical filter that blocks the visible portion of the spectrum can be used to inspect parts using the infrared (IR) spectrum. Since we can’t see IR with our eyes, it’s difficult to predict the effectiveness of IR inspection in advance.

Neutral Density (ND) filters can help to resolve issues caused by oversaturation of light on the part being inspected. ND filters limit the intensity of light seen by the camera equally across the vision spectrum.

In summary, optical filters are often the simplest, fastest and most cost effective way to improve repeatability and stability in machine vision applications. By controlling the quality and quantity of light reaching the vision system, optical filters can block unwanted ambient lighting, pass only the light used for inspection and increase contrast and resolution. To achieve the highest possible machine vision performance, consider optical filters early in the development of machine vision applications. V&S

John Lewis is market development manager for Cognex Corp. For more information, email john.lewis@cognex.com or visit www.cognex.com

 Jason Dougherty is managing director of Midwest Optical Systems. For more information, email jd@midopt.com or visit www.midopt.com

subscribe to Quality Magazine

Recent Articles by John Lewis

How to Choose the Right Lighting for Machine Vision Applications

Using Optics to Optimize Your Machine Vision Application

Choosing the Appropriate Sensor Technology

John Lewis is market development manager of Cognex Corp. (Natick, MA). For more information, call (508) 650-3000 or visit www.cognex.com.

Related Articles

Using Optics to Optimize Your Machine Vision Application

Machine Vision 101: How to Use Machine Vision to Measure Edge Positions

How to Choose the Right Lighting for Machine Vision Applications

Color Imaging: Using Machine Vision to Monitor Product Color

Related Products

Machine Vision and Error Proofing DVD

The Non-Idiot's Guide to ISO 9001:2015: Understanding and Using the Quality Management System Standard to your benefit

Optimizing Factory Performance: Cost-Effective Ways to Achieve Significant and Sustainable Improvement

You must login or register in order to post a comment.

Report Abusive Comment

Subscribe For Free!
  • Print & Digital Edition Subscriptions
  • eNewsletters
  • Online Registration
  • Subscription Customer Service
  • Mobile Help

More Videos

Popular Stories

Speaking of Quality

No More Hamburger Helper

Lean manufacturing

Lean In to 5S

Quality cost chart

Prevention is the Key to Reduced Quality Costs

The Cost of Quality

Understanding How Management Involvement Impacts the Risk of Quality Cost

ASNT

ASNT Annual Conference Brings NDT to Las Vegas

Quality Leadership 100 Survey

Poll

Topics to Talk About

What topics would you like to see Quality cover more?
View Results Poll Archive

Products

Quality Brain Teasers: Real World Challenges to Build Your Manufacturing Skills (ebook)

Quality Brain Teasers: Real World Challenges to Build Your Manufacturing Skills (ebook)

Assessments and Training in the following areas...

See More Products

SoftwareDownloads

Quality Magazine

Quality December 2019

2019 December

Check out the December 2019 edition of Quality: Quality 4.0 for medical device manufacturing, automated metrology, gage trends, plastics, materials analysis and much more!
View More Create Account
  • Resources
    • Market Research
    • Custom Content & Marketing Services
    • List Rental
    • Partners
    • Manufacturing Group
    • Polls
    • Privacy Policy
    • Survey and Sample
  • Want More
    • Connect

Copyright ©2019. All Rights Reserved BNP Media.

Design, CMS, Hosting & Web Development :: ePublishing