Bandpass Filters
Bandpass Filters in Machine Vision: A Practical Guide
What Is a Bandpass Filter?
A bandpass filter is an optical filter that allows only a specific range of wavelengths to pass through while blocking everything outside that range. Think of it as a precise "window" that lets in just the light you want your camera to see – nothing more, nothing less.
Every bandpass filter is defined by two key specifications:
- Center Wavelength (CWL) – The midpoint of the wavelengths the filter transmits. For example, a filter with a 530nm center wavelength is optimized for green light.
- Bandwidth (FWHM) – The width of the transmission window, measured as "Full Width at Half Maximum." A 530nm filter with a 30nm bandwidth transmits light from roughly 515nm to 545nm.
In machine vision, this selectivity is powerful. By controlling exactly which wavelengths reach your sensor, you can dramatically improve contrast, eliminate interference from ambient light, and make defects or features "pop" that would otherwise blend into the background.
Why Use a Bandpass Filter in Machine Vision?
Machine vision systems perform best when the feature you're inspecting stands out clearly from its surroundings. In an ideal world, your target would be bright and your background would be dark (or vice versa). Bandpass filters help you get closer to that ideal by giving you control over what your camera actually "sees."
Here's what a well-chosen bandpass filter can do for your system:
Match your illumination for maximum efficiency
When you pair a bandpass filter with a specific LED wavelength – say, a 660nm red LED with a 660nm bandpass filter – your camera captures only the light you're actively providing. Ambient light from windows, overhead fixtures, or adjacent workstations gets blocked. The result is consistent imaging regardless of environmental changes.
Enhance contrast between materials
Different materials reflect and absorb wavelengths differently. A red apple and a green apple look similar under white light, but under red illumination with a red bandpass filter, one appears bright and the other dark. The same principle applies to industrial inspection: choosing the right wavelength can make surface defects, contamination, coatings, or printed markings far more visible than they would be under broadband lighting.
Reduce noise and simplify processing
By blocking unwanted wavelengths, you're effectively removing visual clutter before it ever reaches your sensor. This means cleaner images, better signal-to-noise ratios, and often simpler – and faster – image processing algorithms downstream. In some cases, a good optical filter can eliminate the need for complex software corrections entirely.
Improve consistency across production runs
Ambient light changes throughout the day. Seasons change. Bulbs age and shift in color. A bandpass filter paired with a stable LED light source isolates your imaging system from all of these variables, giving you repeatable results shift after shift, day after day.
Common Applications for Bandpass Filters
Presence/absence detection
One of the simplest but most valuable applications. A narrowband filter matched to your light source ensures your sensor responds only to items illuminated by your system – not to reflections, shadows, or stray light. This is especially useful on fast-moving production lines where split-second decisions matter.
Surface inspection and defect detection
Scratches, dents, stains, or coating inconsistencies often become visible only under specific wavelengths. For example, organic contamination on a metal surface might fluoresce under UV light – a UV-passing bandpass filter paired with a UV LED can make invisible residues glow brightly against a dark background. Similarly, shallow scratches on polished surfaces may only show contrast under particular angles and wavelengths.
Code and character reading (OCR/OCV)
Whether you're reading laser-etched serial numbers on metal, inkjet-printed lot codes on cardboard, or embossed date stamps on plastic, the right bandpass filter improves edge definition and character contrast. This is particularly valuable when the marking and background are similar in color but respond differently to specific wavelengths.
Color sorting and differentiation
When you need to distinguish between items that look nearly identical under white light, a bandpass filter tuned to the wavelength where they differ most can simplify your system dramatically. Instead of requiring an expensive color camera and complex processing, a monochrome camera with the right filter can make a binary bright/dark distinction – faster, cheaper, and more reliable.
Fluorescence imaging
Some materials naturally fluoresce (emit light at a different wavelength) when excited by UV or specific visible wavelengths. Bandpass filters are essential here: one filter on your light source to deliver only the excitation wavelength, and another on your camera to capture only the emitted fluorescence while blocking the excitation light. This technique is widely used in detecting adhesives, lubricants, coatings, and biological contamination.
Laser profiling and 3D measurement
In laser triangulation systems, a bandpass filter centered on your laser's wavelength (commonly 635nm, 660nm, or 450nm) ensures the camera sees only the laser line – not ambient light or reflections from other sources. This is critical for accurate height measurement and 3D surface reconstruction.
How to Choose the Right Bandpass Filter
Step 1: Start with your light source
Your filter should match – or be very close to – the wavelength of your illumination. If you're using an 850nm infrared LED, start with an 850nm bandpass filter. If you're using a 470nm blue LED, look at filters centered around 470nm. This pairing maximizes the light your camera receives while rejecting everything else.
Step 2: Decide on bandwidth
- Narrow bandwidth (10–25nm) offers maximum selectivity. It's ideal when you need to isolate a very specific wavelength, such as in fluorescence or laser applications. The trade-off: less light reaches your sensor, so you may need brighter illumination or longer exposure times.
- Medium bandwidth (30–50nm) balances selectivity with light throughput. This is a good general-purpose choice for most inspection tasks.
- Wide bandwidth (60–100nm) lets in more light and is more forgiving of slight wavelength mismatches. Useful when you need speed and brightness but don't require razor-sharp spectral isolation.
Step 3: Consider your environment
High ambient light or mixed lighting conditions (like a factory floor with skylights and fluorescent overheads) call for tighter filtering. A well-controlled enclosure with dedicated lighting may allow you to use broader filters and faster exposures.
Step 4: Test before you commit
Whenever possible, image your part under different single-wavelength LEDs first. The wavelength that gives you the best natural contrast between your feature of interest and the background is likely your ideal filter center wavelength. Once you've identified that, selecting the right bandpass filter becomes straightforward.
A Few Practical Tips
- Don't forget about filter mounting. Make sure your filter size matches your lens thread or housing. Common machine vision sizes include M25.5, M27, M30.5, and M35.5 threads, as well as various drop-in and slip-on mounts.
- Check optical density (OD) for blocking. For demanding applications, especially fluorescence, you want high OD (3.0 or greater) outside the passband to ensure stray light is truly eliminated – not just reduced.
- Consider anti-reflection coatings. A good AR coating reduces surface reflections that can cause ghosting or reduce transmission efficiency.
- Mind the temperature. Some filters shift their center wavelength slightly at extreme temperatures. If you're operating in a high-heat environment (near furnaces, ovens, or in direct sunlight), ask about thermal stability.
Bringing It Together
A bandpass filter is one of the most cost-effective upgrades you can make to a machine vision system. For a relatively small investment, you gain control over your imaging environment, improve contrast, reduce processing complexity, and achieve more consistent results.
The key is matching your filter to your light source and application. When those elements align, your camera sees exactly what it needs to see – and nothing it doesn't.
Ready to find the right bandpass filter for your application? [Explore our Bandpass Filter range → https://www.kupooptics.com/en/collections/bandpass-filters] or contact us for application support.