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

Lighting Basics for Machine Vision

With these steps you are well on your way to finding the right light to highlight the features needed for a great image.

By Paul Powers
Darkfield versus bright field

Darkfield versus bright field: The “field” is the background or flat parts of the object. “Bright field” lighting refers to when the field is bright. In this case, the light comes from above the field and is reflected to the camera. “Dark field” is when the flat area is dark. This happens because the light is placed to the side of the field, which reflects the light away from the camera.

November 30, 2020

Much of the latest news surrounding machine vision is about machine learning and the innovations regarding algorithms. But those algorithms need data to perform correctly. The data in this case is the images. It is imperative to capture the best image possible so that the algorithms can perform at their highest level.

 

Sifting Noise to Find the Signal

Solid imaging begins by determining what is signal (the useful information) versus noise (the irrelevant, confusing information) in the image and using techniques to highlight the former by creating contrast.

Creating contrast requires understanding the flow of information for machine vision. First, the light source is scattered across an object, and the imager gathers that light to form a digital image. Only then can software begin extracting features (lines, edges, text) within the image to provide useful information (dimensions, part ID) and make a decision (pass, fail, sort). By manipulating the lighting, imagers can create contrast between the useful and irrelevant information.

Employing a simple scientific method makes it easy to figure out the best way to create the necessary contrast:

  • What is the part made of, and what will it do to light?
  • How will light get to the camera? What is the part geometry and path of the light?
  • What lighting type and lighting geometry will give the best contrast for the important features?
  • What is the timing of the measurement, and object motion?

By way of example, select a light source in the room, the object to be photographed, and use your eyes as a camera. Now keep two of those items in the same place and only move the third. For example, look at an object and keep your head still while paying attention to where an overhead light is positioned. Now move the object slightly. By doing this you can see certain features on the object highlight or disappear. The steps below expand on this concept.

 

Let the Part Guide Lighting Choice

The first step involves looking at the part to determine how light interacts with the surface. Is it specular, matte, absorptive, refractive, or a little of everything? Reflective parts such as polished metal will reflect the light at the same angle as the light coming at the object. Matte parts will take light and scatter it all different directions. Some parts have material that will absorb light, such as ink on paper. Glass or liquid objects can change the direction of the light (refraction). Most objects have more than one of these properties. Technicians can take advantage of these differences by setting the light to highlight specific features of interest as part of an automated inspection or sortation system. In short, they can choose to highlight the signal and minimize the noise in any given image.

The second step involves looking at part geometry and imagining the path of the light from the source to the part and from the part to the camera. If there is no path to the camera, that part of the image will be dark. If light reflects to the camera, that part of the image will be bright. Changing the path of the light will brighten or darken different features. A couple of terms that are used frequently for lighting geometry are bright field and dark field. The “field” is the background or flat parts of the object. “Bright field” lighting refers to when the field is bright. In this case, the light comes from above the field and is reflected to the camera. “Dark field” is when the flat area is dark. This happens because the light is placed to the side of the field, which reflects the light away from the camera.

Polarized filters

Polarized filters help to reduce glare from highly reflective surfaces such as printed circuit boards. In the first image, multicolored lights are used to illuminate the PCB to show the various hot spots created by direct, unpolarized illumination. The second photo shows the same board with cross polarized light, reducing glare and revealing hidden codes, characters and features.

Select the Best Lighting Method

Armed with the knowledge of what will happen to the light and the path of the light, technicians can decide on the type of light. There are six general ways to provide light to a part.

General bright field illumination. Imagine a ring of light surrounding the camera, looking straight onto the object. Features that are flat and reflective will appear brighter than those that are curved or absorptive. This is great for looking at print on objects.

Coaxial illumination. The camera looks straight at the object, and light comes in straight in-line with the camera. All the light that is in-line and hitting a flat surface will shine directly back up at the camera. Anything flat will be bright. Anything not flat will be dark because if the light hits an angled surface it reflects away from the camera. This method works really well for highlighting scratches or other surface defects.

Dome, or diffuse, illumination (also called cloudy-day illuminator). Think of dome lighting as a big bowl with a hole in the middle. The bowl sits upside down, so the camera is looking through the hole, and the light shines up into the bowl and scatters in every direction. Dome lighting is also called “cloudy-day illuminator.” Imagine being outside on a very cloudy but sunny day. Everything is bright and lit up, but there are no shadows because the clouds diffuse and disperse the light all over the place. This method works great for objects that have a lot of different angles, such as packaging (blister packs and poly bags).

General dark field illumination. The camera looks straight at the object, but the lighting comes in from the very lowest angles. Think of the part as the horizon and the lights as coming in right above the horizon. The light skims across the object and away from the camera. Any bump or dent is highlighted because the light hits it and bounces toward the camera. This method is very effective for highlighting objects with direct part markings.

Backlight illumination. This method uses a flat diffuse light that comes from behind the part and is aimed directly at the camera. The object will block the light so it will appear dark and the background white. This allows the image to have very clear edges. This method is great for measurements and checking the fill level of liquids.

Structured light. With structured lighting, a straight bright line or series of lines are projected onto the object. The bright lines will change depending on the object’s shape. Structured light is useful when the object has black-on-black parts. Black absorbs all the light and it is not visible to the camera. By using a concentrated beam of light, the camera sees the line of light and so can detect a black O-ring on a black plastic part, for instance. If the O-ring is there, the line will be in a certain position in the image, and if the O-ring is missing, the bright line will be in a different position.

four short wave infrared (SWIR) pictures

These four short wave infrared (SWIR) pictures show how machine vision designers can use this spectral band to see through paint and differentiate between materials. The two bottles show in images 1 and 2 show alcohol and water, with clear alcohol clearly differentiated in the second image. In the second pair of images, SWIR radiation is able to penetrate the paint on the plastic card, revealing the patterns underneath. This technique is widely used in ports for detecting altered storage containers.

Not All Light Is Good

When deploying any of the methods above there are a couple items to note because they can introduce noise. First, be aware of the ambient light. As much as lighting will help your image, unwanted light can hurt the image. Polarizers can reduce glare from non-metal parts. You should select a light that will be brighter than the factory lights. Be aware of any sunlight and if needed shroud the area to keep unwanted light away. Second, be aware that if you double the distance of the path of light the light is four times dimmer. The brightness of the lights is important because of the exposure time needed to capture an image. The exposure time is the time the camera collects light from the object. The longer the exposure time the fewer images a camera can collect in a given time. If the object is moving, the longer exposure will cause blur in the image. So having a dim light will likely have blurry features and reduce throughput. It is important to note in the instances where you need lights further away, consider using focused lights or lights that strobe (overdrive).

Lastly, we need to discuss color. Using colored lights or color filters with a monochromatic camera are a highly effective way of highlighting or hiding features in an image. Green objects are green because they reflect green wavelengths and absorb blue and red wavelengths. If you have not done so recently, please review a color wheel. It is helpful to know what colors are opposite each other on the wheel. You can use like colors to brighten an object and opposite colors to darken an object. For example, if you shine blue light at blue objects, they will appear white in the monochromatic image because they are reflecting all the blue light. The other colors absorb the blue light and will be darker. At the same time, CMOS imagers are more sensitive to red light, which also avoids potential UV eye damage issues from blue and shorter wavelengths. Color filters are used to exclude the noise. When filters are put in front of the camera they can cut out light wavelengths that are not needed or they can only allow the wavelength that is needed.

Even though there are infinite possibilities of objects to inspect, with these steps you are well on your way to finding the right light to highlight the features needed for a great image. V&S

KEYWORDS: illumination imaging lighting machine vision

Share This Story

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

Paul Powers, director of sales – Americas, Smart Vision Lights. For more information, visit https://smartvisionlights.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

Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios

Ensuring Product Quality in a Competitive Manufacturing Landscape

Visions Sensors Ebook

eBook | How AI-driven Vision Systems Are Transforming Automotive Quality Control

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
Quality Podcast Channel Custom Content

Related Articles

  • A smart camera and vision system

    A back-to-basics look at LED illumination for machine vision applications

    See More
  • metal bracket

    Engineered Lighting For Machine Vision: Part 1 of 3

    See More
  • a chromatic color wheel with marked wavelengths in nanometers (nm)

    Lighting Design for Machine Vision, Part 5

    See More

Related Products

See More Products
  • Machine Vision and Error Proofing DVD

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