Quality Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
Quality Magazine logo
  • NEWS
  • PRODUCTS
    • FEATURED PRODUCTS
    • SUBMIT YOUR PRODUCT
  • CHANNELS
    • AUTOMATION
    • MANAGEMENT
    • MEASUREMENT
    • NDT
    • QUALITY 101
    • SOFTWARE
    • TEST & INSPECTION
    • VISION & SENSORS
  • MARKETS
    • AEROSPACE
    • AUTOMOTIVE
    • ENERGY
    • GREEN MANUFACTURING
    • MEDICAL
  • MEDIA
    • A WORD ON QUALITY PUZZLE
    • EBOOKS
    • PODCASTS
    • VIDEOS
    • WEBINARS
  • EVENTS
    • EVENT CALENDAR
    • IMTS
  • DIRECTORIES
    • BUYERS GUIDE >
      • Supplier Insights
    • NDT SOURCEBOOK
    • VISION & SENSORS
    • TAKE A TOUR
  • INFOCENTERS
    • Digital Quality Management Systems
    • NEXT GENERATION SPC & QUALITY ANALYTICS
  • AWARDS
    • ROOKIE OF THE YEAR
    • PLANT OF THE YEAR
    • PROFESSIONAL OF THE YEAR
  • MORE
    • Expert Columns
    • NEWSLETTERS
    • QUALITY STORE
    • INDUSTRY LINKS
    • SPONSOR INSIGHTS
  • EMAG
    • eMAGAZINE
    • ARCHIVES
    • CONTACT
    • ADVERTISE
  • SIGN UP!
Vision & Sensors

Vision & Sensors | Optics

Core Concepts of Machine Vision Lighting

Proper lighting design is essential to assure a successful machine vision project. Ignoring this is one of the most common causes of machine vision project failures.

By Fred Turek
VS 0123 Optics Machine Vision Lighting

Source: grdenis / Creatas Video+ / Getty Images Plus via Getty Images

January 13, 2023
✕
Image in modal.

Machine vision lighting is a broad topic but a short article can be useful because some core concepts are not widely known. It’s been said “If you can't explain it simply, you don't understand it well enough,” so we’ll make an effort to leave out impressive math and jargon.

We’ll start with three core statements:

  • The mission of machine vision lighting isn’t to “light it up,” it is to create reliable differentiation suitable to enable the intended inspection program to work. For conventional rules-based machine vision (vs. deep learning) the created differentiation generally needs to also be of “simple rule” type.
  • Machine vision lighting design isn’t just about the light source. It’s a three-way geometric relationship between the light source, the camera or imaging system and the workpiece. Choosing a camera or workpiece location and orientation is often a part of “lighting” design, and the geometric relationship between those three items always is a part of lighting design.
  • Proper lighting design is essential to assure a successful machine vision project. This statement goes beyond the routine platitude that it looks like; ignoring this is one of the most common causes of machine vision project failures.

Let’s simplify our discussion by narrowing it to 2D imaging and traditional rules-based (vs. deep learning) machine vision.

You already intuitively know some of the main concepts of machine vision lighting design, even if you don’t recognize them or apply them to machine vision. Let’s take a look at recognizing and describing them in order to apply them to machine vision solutions.


VS 0123 Optics Machine Vision Lighting Figure 1

Figure 1 | Source: FSI Technologies Inc.


For our example, we’ll use the glossy printed item shown in Figure 1. We also introduced a defect: a crease/dent that goes through the yellow and orangish-yellow segments of the color wheel. The STAR acronym covers the four main fates of a light ray that hits the workpiece (Scatter, Transmit, Absorb, Reflect). Understanding and using those behaviors is at the core of machine vision lighting design. Scatter and reflect are the ones that we care about today and are shown in Figure 2.


VS 0123 Optics Machine Vision Lighting Figure 2

Figure 2 | Source: FSI Technologies Inc.


The flat portions of the shiny surface make part of the beam reflect in the opposite direction at the same angle as the angle of incidence. The reflected beam is very intense. The shiny surface behaves somewhat like a mirror. If you put your eye into the beam and looked at the surface, you would see an image of the light source rather than the product. A common name for that would be glare.

The dull card under the gloss converts the light into whatever color that portion of the workpiece is and scatters it in all directions. In any given receiving point, this scattered light from that spot is much weaker than the reflected light.

The first inspection mission is to measure the approximate length of the crease/dent that we put into the segment on the color wheel to see if it is severe enough to reject the product. While the lighting used for Figure 1 is nice by most standards, it is the worst possible lighting for this mission; it makes the dent completely invisible. But, if we handed you the card, you will intuitively know how to create a suitable lighting solution to accomplish the mission. You’d select a light source in the room with a large emissive area such as a 2’ x 4’ diffused ceiling light or a window letting in bright light from the outside. By holding the card flat, you can see the glare from the light source on it and you’d adjust it so the glare covers the entire area of interest. This adjustment creates ‘’simple rule’’ differentiation. That rule being, “the good areas light, the bad areas dark.” Your sight picture will look something like Figure 3 where glare covers the entire image. From there, your brain or machine vision program can easily separate the defect by lightness/darkness and evaluate it. The glare area is called a specular lighting solution.


VS 0123 Optics Machine Vision Lighting Figure 3

Figure 3 | Source: FSI Technologies Inc.


You probably chose the optimal methods to create reliable, simple-rule differentiation for the dent, but there are others. One might be to bring light in at such a low angle that the dent creates a shadow for the area inside of it. This effect is one of the many meanings of the term “dark field.” Another method would be to place your eye/camera so there is no glare from the flat surface and rely on a shiny part inside the dent to be at the right angle to give you a bright specular reflection (Figure 4).


VS 0123 Optics Machine Vision Lighting Figure 4

Figure 4 | Source: FSI Technologies Inc.


The second mission is to measure and verify the area of the yellow segment. To accomplish this, we need to separate the yellow segment from its neighbors. Thinking ahead, you’ll use color analysis software tools to do that. With casual random light, there are some areas of the workpiece that will have glare. Note how the colors in the glare area in Figure 3 are hard to see, which would make for a non-robust machine vision solution. If you were handed the card, you would intuitively create the proper lighting solution by moving the card so that there is no glare in the area of interest, making it look like Figure 1. Then your machine vision camera and software can easily separate, measure and verify the yellow area.

Here are three more tips learned from that process:

  1. As is commonly the case with the machine vision process, design starts with a later phase and works backwards from there. That doesn’t mean pre-designing the entire program. It does mean choosing the core method of the program that utilizes the lighting solution. For our examples, those are software tools that separate by color or lightness/darkness.
  2. In our main solution, we didn’t exactly see the dent. What we saw was an area where specular reflection from the flat surface was missing.
  3. What mattered most about the nature of the light source was its emissive area, the geometry of the area that is emitting light.

The flat surface made our color identification mission simple. The surface is all at the same angle so avoiding glare was simpler, and a flat surface does not create shadows on itself. For more complex shapes, these two effects become more difficult to avoid. One technique for those is to use an extremely diffuse light source where a low level of light is provided from all directions. A classic example is a dome light of the right size and placement. It behaves like a cloudy day outside, where there is no direct light from the sun and every piece of the sky is a lit-up cloud (a low-level light source).

What people know how to do intuitively they often don’t know how to apply to machine vision. One customer had a long-term problem reading characters on a glossy surface and sought an extra machine vision software training course to resolve it. We saw the image and replicated the problem, which was that someone thought that putting a ring light on the camera was a nice way to light it up which did the exact opposite of what was needed for the mission. We switched the light off, put a hardware store flashlight in the right place and their two-year problem went away. This further reinforces the importance of applying the underlying principles to lighting design. Hopefully this article has provided a useful introduction to some of them.

KEYWORDS: 2D imaging deep learning (DL) lighting machine vision manufacturing metrology

Share This Story

Looking for a reprint of this article?
From high-res PDFs to custom plaques, order your copy today!

Fred Turek (BSEE University of Illinois) is COO of FSI Technologies Inc., Lombard, IL, which was founded in 1959. He has been doing machine vision engineering and training for 22 years following decades of experience in other factory automation fields. For more information, email [email protected] or visit www.fsinet.com.

Recommended Content

JOIN TODAY
to unlock your recommendations.

Already have an account? Sign In

  • 2024 Quality Rookie of the Year Justin Wise 1440x750px banner with "Quality Rookie of the Year" logo inset

    Meet the 2024 Quality Rookie of the Year: Justin Wise

    Justin Wise is an exceptional individual who has been...
    Aerospace
    By: Michelle Bangert
  • Man with umbrella and coat stands outside while it rains at night looking at a building.

    Nondestructive Testing: Is there an ethics problem?

    I was a whistleblower who exposed fraudulent activities...
    NDT
    By: Dale Norwood
  • Unraveling Deflategate: Football stadium with closeup of football on field

    Unraveling the Tom Brady Deflategate

    The Deflategate scandal erupted following the 2014 AFC...
    Measurement
    By: Greg Cenker and Henry Zumbrun
Manage My Account
  • eMagazine Subscriptions
  • Newsletters
  • Online Registration
  • Subscription Customer Service
  • Manage My Preferences

More Videos

Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the Quality audience. All Sponsored Content is supplied by the advertising company and any opinions expressed in this article are those of the author and not necessarily reflect the views of Quality or its parent company, BNP Media. Interested in participating in our Sponsored Content section? Contact your local rep!

close
  • Key Takeaways for Quality Leaders
    Sponsored byComplianceQuest

    Key Takeaways for Quality Leaders from the 2026 Gartner Magic Quadrant™ for QMS

  • This image shows a person seated next to a Bobcat T66 compact track loader.
    Sponsored byPolyWorks by InnovMetric

    Supercharging Digital Gauging at Bobcat North America

  • Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios
    Sponsored byDorsey Metrology International

    Ensuring Product Quality in a Competitive Manufacturing Landscape

Popular Stories

iStock-1352825159-jpg.jpg

U.S. Should Substantially Boost Support for Manufacturing USA Program, Issue National Industrial Manufacturing Strategy, Says New Report

a factory floor during what appears to be a training session or a daily briefing

The Root Cause of Defects We Rarely Name or Address

Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios

Ensuring Product Quality in a Competitive Manufacturing Landscape

2026 Quality Professional of the Year!

Events

June 22, 2026

Automate 2026

Automate is North America's largest robotics and automation event — and the best place to take your ideas from insight to impact.
 
Our show floor features the world’s leading automation solutions, from AI and robotics to motion control, vision systems, and more. Plus, our educational conference is second to none, led by the brightest minds in automation today.
 
Ready to transform the way you work? Take the next step at Automate.
July 14, 2026

Quality Leaders Forum: Better Communication, Better Quality Data

The Quality Leaders Forum is a quarterly, editor-moderated fireside chat series hosted by Quality Magazine, featuring candid conversations with senior manufacturing and operations executives shaping enterprise-level quality.

View All Submit An Event

Products

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

See More Products
Rookie of the Year Custom Content

Related Articles

  • Microscope lens close-up of digital camera micro medical technology focus.

    Why Machine Vision Lighting is So Hard and What You Can Do About It

    See More
  • VS 0522 Lighting feature photo

    Three Challenges In Machine Vision Lighting Today And How To Solve Them

    See More
  • VS 1222 Machine Vision 101 Backlight

    Machine Vision Lighting and Why It’s Important

    See More

Related Products

See More Products
  • Machine Vision and Error Proofing DVD

  • Measurement and Gaging DVD

  • principles of quality costs.jpg

    Principles of Quality Costs, Fourth Edition

See More Products

Related Directories

  • Machine Vision Store

    Machine Vision Store has a laser-sharp focus on machine vision imaging. We deliver a select group of components - cameras, lenses, lights, industrial vision PC's - from leading manufacturers known for quality. Components we understand, support and stand behind. Components and consulting services that will power your success.
  • Phoenix Imaging Machine Vision

    Porosity Inspection of machined metal components using 3D image acquisition. High resolution laser-based scanning optimizes Porosity detection. Phoenix-Middle-Man™ software package provides image storage and database, SQL query and visual display of defects. High-Speed Surface Inspection Systems from Keyence, Omron and Phoenix Imaging for the tough ICE, BEV & Battery projects.
×

Stay in the know with Quality’s comprehensive coverage of
the manufacturing and metrology industries.

Newsletters | Website | eMagazine

JOIN TODAY!
  • RESOURCES
    • Advertise
    • Contact Us
    • Directories
    • Manufacturing Division
    • Store
    • Want More
  • SIGN UP TODAY
    • Create Account
    • eMagazine
    • Newsletters
    • Customer Service
    • Manage Preferences
  • SERVICES
    • Marketing Services
    • Market Research
    • Reprints
    • List Rental
    • Survey/Respondent Access
  • STAY CONNECTED
    • LinkedIn
    • Facebook
    • YouTube
    • X (Twitter)
  • PRIVACY
    • PRIVACY POLICY
    • TERMS & CONDITIONS
    • DO NOT SELL MY PERSONAL INFORMATION
    • PRIVACY REQUEST
    • ACCESSIBILITY

Copyright ©2026. All Rights Reserved BNP Media, Inc. and BNP Media II, LLC.

Design, CMS, Hosting & Web Development :: ePublishing