On a produce line, a color camera may grade skin color reliably and still miss a fresh bruise. At a different station, the same camera may see an unwanted leaf but struggle to distinguish a pale scrap of plastic from the cut vegetable underneath. The two stations need different contrast. Choose optical filters for food inspection by identifying the distinction each station must make and finding a wavelength range that makes it repeatable.
Use visible light for color and appearance decisions. Consider near-infrared (NIR) or short-wave infrared (SWIR) when a defect or foreign material is hard to separate in the visible image. Then check that the camera and lighting deliver a usable image through the chosen filter at operating speed.

Start with the inspection decision
Surface color and appearance
A visible camera is a sensible starting point for color grading, peel blemishes and label checks. These jobs depend on the visible appearance of the product. Choose the lighting and camera settings together, especially when a color threshold determines which grade an item receives. A good image of one sample under laboratory lights gives little information about color variation between lots, reflections from wet surfaces or shadows as items roll on the belt.
For a surface defect with distinct color, compare the contrast in the camera’s existing red, green and blue channels before adding a separate wavelength channel. If the grayscale signal from one band already separates the defect, a single filtered monochrome camera may be enough for that station. Color grading itself still needs the color information required by the grading rule.
Low contrast defects and material differences
When bruised and sound tissue look similar under visible light, test infrared wavelengths against actual samples. In controlled studies, different wavelengths helped separate bruised tissue on apples and pears. The useful contrast depends on the fruit, bruise age and illumination. Start with the samples likely to challenge the line, including new bruises and normal surface variation. Then check whether the apparent contrast survives changes in orientation and lot. USDA research on apple bruises and spectral imaging of pear damage illustrate why trial wavelengths should follow the sample.
Foreign material calls for its own comparison. A fragment may look dark in one spectral image, but darkness alone is a weak reject rule on a belt that also carries shadows, dark produce or overlapping pieces. Test known materials against the food and the background. Compare their responses in several bands before deciding whether one filter gives enough separation or whether two measurements are needed. USDA research on foreign material in fresh-cut vegetables shows how waveband selection can be evaluated for a defined set of materials.

Moisture illustrates why the right band depends on the question. A water-sensitive band can make tissue differences stand out, yet it can also reveal water sitting on top of an otherwise sound item. If the production line washes the product before inspection, use a mix of dry, drained and visibly wet samples. Try a second band where the surface-water response differs, then see if the two images together separate the defect more consistently than either image alone. A band selected for fresh produce should be tested again before using it for a different commodity.
Match the filter to the camera and lighting
Preserve color in the visible channel
A color channel may need an infrared cutoff to preserve the response intended by its camera and calibration. Check the response of the camera as supplied, including any factory filter. If a separate infrared station adds illumination that falls inside the visible camera’s residual sensitivity, compare color values with that illumination on and off. Use the resulting error to decide how much rejection is needed. Recheck the red channel after changing the cutoff so the rejection does not remove useful visible signal.
A thin-film filter applies one or more dielectric or metallic layers to a substrate to change the transmitted spectrum. A short-pass filter can suppress wavelengths above an edge, while a bandpass filter isolates a selected interval. Coating and substrate must both suit the intended band. A substrate that transmits the useful wavelengths gives the film a clear optical path to work with. BoDian Optical develops optical thin-film products for machine vision and food safety applications across visible and infrared ranges.
Isolate the infrared signal
For a monochrome infrared channel, choose a passband where the illumination delivers power, the detector responds, and the sample contrast is strong. A silicon detector can cover part of the near infrared. Longer SWIR wavelengths generally call for a detector chosen for that region, such as InGaAs. Look at the actual response curve and lens transmission. A camera advertised as infrared sensitive may have little usable response in the exact passband under consideration.
Bandpass width changes both the contrast and the signal level. A narrower band can exclude unrelated light, but it can also leave too little signal for a short exposure. Start with a candidate band that captures the contrast, then evaluate whether unwanted wavelengths need tighter blocking. BoDian’s infrared narrow bandpass filter family illustrates how a bandpass specification separates the useful band from the blocking interval. Custom wavelength, size and coating design can be discussed for a food inspection channel with a known target spectrum.

Specify something the supplier can measure
Specify the band edges or center wavelength and bandwidth, the transmission required in the usable band, and the rejection required within the wavelengths the camera still detects. Treat the size and shape as separate requirements from the optical opening. BoDian can develop filters from drawings or samples, with shape, dimensions and optical aperture selected around the intended application. Include the camera, lens and light source in the request so the filter is evaluated in the proposed arrangement.
Spectral testing can measure transmittance, reflectance and absorbance over a wavelength interval. For a food camera the transmission curve is usually the first deliverable to compare with the illumination and detector curves. Reflectance becomes relevant when a blocked wavelength might return toward the source or another optical surface. BoDian uses spectrometers for visible and infrared characterization. The curve review can follow the same measurement terminology used for infrared filter spectral testing.
A removable filter for a lab trial may have a different shape or mounting arrangement from a production part. Mark the surface quality and dimensional tolerances on the drawing. BoDian checks part size against tolerances with calipers or micrometers and can inspect surface and edge condition visually or with microscopy. These checks belong alongside the optical aperture and spectral limits when a prototype is being transferred to a drawing-based order.

Prove the filter on the line
Compare candidates using the same sample set
Use representative good product and known defects, with samples from more than one lot. Set up the camera and lights at the planned working distance. Compare the unfiltered or current channel against candidate filters using the same items and viewing positions. Record defect contrast, normal product variation and background response. If a candidate needs a longer exposure to compensate for low transmission, check motion blur and signal variation before declaring it the winner.
Repeat under production conditions
Run the preferred filter at the actual line speed. Include likely changes in product temperature, surface wetness, orientation and lighting. If a decision depends on two images of the same item, verify that those images still line up as items move. A small timing error or a different viewing angle can make an apparent spectral difference where the images simply cover different parts of the sample.
Judge each candidate by missed defects and false rejects on a separate set of samples. Record the commodity, defect types and conditions used to make the decision. The filter is ready to specify when its signal remains useful at the intended exposure and its reject decisions hold across the test conditions. Bring those results and the target transmission curve to a custom filter discussion so the prototype can be checked against the same criteria.










