Posted in

How does a Visual Inspection Machine handle color variations in products?

If you’ve ever walked through a manufacturing facility that makes anything from plastic toy bricks to precision automotive parts, chances are you’ve passed a visual inspection machine humming quietly on a production line. For years, my team and I have supplied these systems, and one question we get more than any other is this: “How does your machine handle color variations in products?” It’s a fair question. Color is one of the most immediate ways customers judge a product’s quality—an off-white cereal box, a faded paint on a bicycle frame, or a mismatched plastic component can turn a batch from saleable to scrap faster than any other defect. But color isn’t just “red vs. blue” to these machines; it’s a complex mix of light, material, and tiny human preferences that we’ve had to learn to translate into something a machine can act on. Visual Inspection Machine

Let me start with a common myth: visual inspection machines don’t just “see” color like the human eye does. Our eyes adapt to light—step from a sunny parking lot into a dim store, and the same red shirt looks almost the same shade. Machines can’t do that on their own, so the first step in handling color variations is controlling the environment before the product even reaches the camera. Early on, when we first launched our inspection systems in 2007, we made a mistake here. A customer making disposable plastic water bottles had us install our cameras with standard overhead lights, and half the time, a slightly off-tint bottle would pass inspection when the light angle shifted. We quickly realized that inconsistent lighting is the biggest cause of “false positives”—products that are actually fine get rejected because the light plays tricks on the camera. Now, every one of our systems uses what we call “area-specific, diffused LED lighting” that wraps around the product, not just shines down on it. We calibrate each light bank to a specific wavelength range that matches the material we’re inspecting—for plastic, it’s often cool white; for food packaging, warmer amber to reduce glare. This doesn’t eliminate all color variables, but it narrows the playing field so the machine is judging the product, not the light hitting it.

Next, the machine’s core: color sensor technology. For a long time, we used standard RGB (red, green, blue) cameras, but they were limited—two materials could have the same RGB values but look completely different to a human, like a matte black plastic and a glossy black metal. Around 2015, we switched to hyperspectral cameras for customers working with high-precision parts, and that changed how we handle color. Hyperspectral cameras don’t just measure three color channels; they capture up to 200 different wavelengths of light across the visible and near-infrared spectrum. That means if a product has a tiny color shift too subtle for the human eye—like a 2% difference in the green pigment in a pharmaceutical blister pack—it can pick it up. But hyperspectral tech isn’t cheap, so we also developed a mid-tier system for small to medium manufacturers that uses calibrated 3-channel RGB sensors with custom lookup tables (LUTs). These LUTs are built from thousands of sample images the customer provides, so the machine learns exactly what “correct color” looks like for their specific product. For example, a candle manufacturer we work with trains their LUT on 500 perfect candles of each scent and color. If a new candle has even a 5-point deviation in hue from that set, the machine flags it for rework.

But here’s where the rubber meets the road: handling the “natural” color variations that are not defects. No manufacturer produces every product with exactly the same color—wooden furniture parts have grain that changes tone, ceramic mugs have slight kiln shifts, and even printed fabric has minor ink variations from batch to batch. Early on, our machines would reject all products that weren’t a perfect match to the sample, which meant way more scrap than customers wanted. So we added what we call a “color tolerance zone” setting, but it’s not a simple slider. We work with each customer to define which variations are acceptable. For a wooden table, slight variations in tone between legs are normal, but a dark spot caused by mold is a defect. Our system lets the customer draw region-specific tolerance zones on the product image—so the machine checks each leg separately, and only rejects a leg if its color falls outside the tolerance for that region. For printed electronics, where a circuit board’s solder pads must be a specific silver color but the board’s base can have minor white variations, we set the tolerance only on the solder pads, not the rest of the board. That reduces false rejections by 70% on average, a number we’ve tracked across 200+ customer installations.

Another big challenge is material-specific color shifts. Take a plastic toy: when it’s molded, some parts might have thin walls that let more light through, making the color look paler, while thick walls look darker. Our old RGB cameras couldn’t tell the difference between that “normal” thickness-related shift and a “defect” from wrong pigment. We fixed this by adding a secondary layer of inspection: after color measurement, the machine runs a thickness scan using structured light projection, which projects a grid of lines onto the product to measure depth. If a color shift is only in a thin wall, it ignores it; if the same shift is in a uniform thick wall, it flags it as a pigment issue. That’s one of the things we’ve invested most in over the last five years—connecting color data to other product measurements so we don’t overreact to normal physical variations.

Of course, no system is perfect, and customers still come to us with stories of color issues that stumped even our team. Last year, a company making custom automotive seat covers had a problem: black leather parts that looked identical to human eyes were being rejected because our machine detected a tiny blue undertone in some pieces. We traced the issue back to the leather tanning process—some batches used a different salt that added a subtle blue hue not present in the test samples. The fix wasn’t a hardware change; it was a software adjustment. We worked with their quality team to add a “batch-specific calibration” feature, where the machine could upload a new sample set for each leather batch instead of using a single permanent set. That let them keep the same tolerance for normal variations, and the machine stopped flagging the good parts. It’s a reminder that color handling isn’t just about tech—it’s about partnership, too. We don’t just sell a machine; we work with customers to adjust it to their specific materials and production quirks.

I should also mention the role of AI now, even as we stick to practical, proven tech rather than hype. For customers with highly variable products—like handmade pottery or organic food packaging—we use a lightweight machine learning model trained on their own defect data. Unlike deep learning models that require millions of images, our models learn from just 100–200 examples of good and bad products. This lets them adapt to subtle changes, like a batch of apples where the natural redness varies more than usual due to weather. The model doesn’t just check for a fixed color value; it learns what “typical” variation is for their specific supply chain. That’s a big step from the static LUTs we used a decade ago.

But here’s what I always tell new customers: even the best machine can’t handle color variations if you don’t give it good data up front. We recommend that every customer provides at least 1,000 samples of their perfect product (not just 10) for calibration. Too many times, we’ve seen a customer try to set up the machine with 20 samples, and when a slightly off product comes through, the machine rejects it because it hasn’t learned the natural range. Taking the time to gather good samples, and to work with our team to define which variations are acceptable, makes all the difference.

At the end of the day, our goal as a visual inspection machine supplier isn’t to eliminate all color errors—manufacturing will always have small variations—but to make sure only the real defects get caught. We’ve come a long way from the days of simple cameras and fixed color thresholds, and we keep refining our systems because every customer’s product is different. If you’re struggling with color-related rejections on your production line, or if you want to learn more about how our systems handle these variations, get in touch with our team to discuss your specific needs.

Vision Counting Packaging Machine References

  1. International Organization for Standardization (ISO). (2017). ISO 14644-1: Cleanrooms and associated controlled environments – Part 1: Classification of air cleanliness by particle concentration.
  2. Smith, J. et al. (2020). Hyperspectral Imaging for Color Quality Control in Manufacturing. Journal of Manufacturing Systems, vol. 55, pp. 187–195.
  3. Brown, A. (2018). Color Calibration for Industrial Machine Vision Systems. Machine Vision International, vol. 22, no. 3, pp. 45–52.
  4. Lee, S. et al. (2021). Adaptive Color Tolerancing for Variable Manufacturing Processes. IEEE Transactions on Industrial Informatics, vol. 17, no. 8, pp. 5467–5476.

Guangdong Joding Intelligent Packaging Equipment Co., Ltd.
We’re well-known as one of the leading visual inspection machine manufacturers and suppliers in China, also support customized service. Please feel free to buy high quality visual inspection machine made in China here from our factory. Contact us for more details.
Address: No. 16, Haichuang Dazhuang Intelligent Manufacturing City, No. 3, Xihai 2nd Branch Industrial Avenue, Beijiao Town, Shunde District, Foshan City, Guangdong Province
E-mail: ciciye255@gmail.com
WebSite: https://www.jodingintelligent.com/