Machine Vision Basics

Similar documents
Eight Tips for Optimal Machine Vision Lighting

ivu Series TG Image Sensor

APPLICATIONS FOR TELECENTRIC LIGHTING

ivu Plus Quick Start Guide P/N rev. A -- 10/8/2010

Machine Vision for the Life Sciences

flexible lighting technology

Quick Start Overview. Related Information. In addition, the sensor includes integrated Help.

Vision Sensors Inspector. The intelligent vision solution in an easy-to-use sensor package.

WLB32 Z C 285 PB QM B. Blank = Standard Diffuse E = Eye Shield Diffuse IP50. Family Voltage Color Cascadable WLB92 Z C 550 A CT. Lighted Length (mm)

Contrast Sensors. SICK The pioneer in contrast sensors for more than 60 years

SPECIFICATIONS Type Catalog listing Power supply Consumption current Detecting distance Focal distance Focal spot diameter Operation mode

Q4X Series. Versatile, Rugged Laser Distance Sensor

Technical Notes. Introduction. Optical Properties. Issue 6 July Figure 1. Specular Reflection:

ORIFICE MEASUREMENT VERISENS APPLICATION DESCRIPTION: REQUIREMENTS APPLICATION CONSIDERATIONS RESOLUTION/ MEASUREMENT ACCURACY. Vision Technologies

It s set up! VISOR. The vision sensor with which you can immediately get going.

LED Series Sealed High-Intensity Area Lights

INTRODUCTION TO VISION SENSORS The Case for Automation with Machine Vision. AUTOMATION a division of HTE Technologies

WORLD-BEAM QS30 Series

Smart vision and optical solutions for the food and beverage industry

Imaging Optics Fundamentals

Versatile Camera Machine Vision Lab

Exercise questions for Machine vision

DIRECT PART MARKING THE NEXT GENERATION OF DIRECT PART MARKING (DPM)

As the manufacturing world becomes more and more automated, industrial sensors have become the

E3S-CR62/67. Ideal for detecting transparent glass and plastic containers. Transparent bottle sensor. Features

Basics of Light Microscopy and Metallography

Vision Lighting Seminar

Photography PreTest Boyer Valley Mallory

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

COLOR CONTRAST AND LUMINESCENCE SENSORS

Using Curves and Histograms

EC-433 Digital Image Processing

the RAW FILE CONVERTER EX powered by SILKYPIX

Introduction. Lighting

ACRYLITE. for Lighting Technologies

General-Purpose Photoelectric Sensor

Applying Automated Optical Inspection Ben Dawson, DALSA Coreco Inc., ipd Group (987)

Opto Engineering S.r.l.

Models included: GEO EDGE

The Xiris Glossary of Machine Vision Terminology

Considerations: Evaluating Three Identification Technologies

Histograms& Light Meters HOW THEY WORK TOGETHER

QL55 Series Luminescence Sensor

Color and More. Color basics

ME 6406 MACHINE VISION. Georgia Institute of Technology

This histogram represents the +½ stop exposure from the bracket illustrated on the first page.

Make Machine Vision Lighting Work for You

LFV3-100SW LFV3-40SW. Transmittance rate (High) LED side. Move to LED side. LED side. Default position LFV3-CP-13RD. Wavelength/ color.

DATAVS2 series.

DRILL AND TAP KITS. Features O V E R V I E W. TTT001 Tap Guide for Optical Tables and Breadboards. XE25TG Tap Guide for 25 mm Rails.

Hartmann Sensor Manual

The Elegance of Line Scan Technology for AOI

WHITE PAPER. Sensors for Packaging & Filling Machines

The Bellows Extension Exposure Factor: Including Useful Reference Charts for use in the Field

Aperture. The lens opening that allows more, or less light onto the sensor formed by a diaphragm inside the actual lens.

FRAUNHOFER AND FRESNEL DIFFRACTION IN ONE DIMENSION

Elements Of Art Study Guide

Technical Note How to Compensate Lateral Chromatic Aberration

ONE OF THE MOST IMPORTANT SETTINGS ON YOUR CAMERA!

Sensors for Automated Assembly

White paper. Wide dynamic range. WDR solutions for forensic value. October 2017

NELA Brüder Neumeister GmbH

Photography Help Sheets

Vandal Proof Camera: v-cam 500 (D-WDR, 650 TVL, Sony Effio-E, 0.05 lx) Vandal Proof Camera: v-cam 500 (D-WDR, 650 TVL, Sony Effio-E, 0.

Section 2 concludes that a glare meter based on a digital camera is probably too expensive to develop and produce, and may not be simple in use.

Facial Biometric For Performance. Best Practice Guide

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

1. LIGHT AS AN ELEMENT OF EXPRESSION

Aperture: Circular hole in front of or within a lens that restricts the amount of light passing through the lens to the photographic material.

Technical Report Synopsis: Chapter 4: Mounting Individual Lenses Opto-Mechanical System Design Paul R. Yoder, Jr.

efector dualis Vision Sensor Part verification for error-proofing efector dualis Vision Sensor Product / Application Guide

Model OB-ITF Infrared Through-Beam Fiber Optic Optical Barrier Operator s Manual. Version

EECS490: Digital Image Processing. Lecture #12

TABLETOP WORKSHOP. Janet Steyer

Difrotec Product & Services. Ultra high accuracy interferometry & custom optical solutions

FUNDAMENTALS OF PHOTOELECTRIC SENSING. Beam Make. Beam Break SECTION 1. Light State. Dark State. Dark State. Light. State 1-1

DEFINING A SPARKLE MEASUREMENT STANDARD FOR QUALITY CONTROL OF ANTI-GLARE DISPLAYS Presented By Matt Scholz April 3, 2018

AgilEye Manual Version 2.0 February 28, 2007

Using Optics to Optimize Your Machine Vision Application

Understanding and Using Dynamic Range. Eagle River Camera Club October 2, 2014

Introduction to Machine Vision for New Users

The Science Seeing of process Digital Media. The Science of Digital Media Introduction

DATAVS2 series.

Speed and Image Brightness uniformity of telecentric lenses

Whether for quality control, sorting, or

Making Industries Smarter

Image Capture and Problems

TAKING GREAT PICTURES. A Modest Introduction

High Dynamic Range (HDR) Photography in Photoshop CS2

Sensor Accessories Retroreflectors and Retroreflective Tape 8-2

User Manual Laser distance sensor. series OWLE. Welotec GmbH Zum Hagenbach Laer Manual_OWLE _EN 1/20

English PRO-642. Advanced Features: On-Screen Display

Models included: GEO/GEO 1.3 EDGE/EDGE 1.3 BCR/BCR 1.3 AREA/AREA 1.3 OMNI/OMNI 1.3

Analog output type for diverse applications

Communication Graphics Basic Vocabulary

High Quality Automotive Glass

Fig Color spectrum seen by passing white light through a prism.

Applications of Optics

MEASUREMENT OF ROUGHNESS USING IMAGE PROCESSING. J. Ondra Department of Mechanical Technology Military Academy Brno, Brno, Czech Republic

Coaxial Lights LFV3 series

Transcription:

Machine Vision Basics bannerengineering.com

Contents The Four-Step Process 2 Machine Vision Components 2 Imager 2 Exposure 3 Gain 3 Contrast 3 Lens 4 Lighting 5 Backlight 5 Ring Light 6 Directional Lighting 6 On-Axis Lighting 7 Diffused Lighting 7 Image Analysis 8 Region of Interest 8 Edges 8 Blobs 9 Pattern Matching 9 Bar Code Reading 9 OCR/OCV 9 Color Analysis 9 Red, Green, Blue (RGB) 9 Hue, Saturation, Intensity (HSI) 10 Considerations for Harsh Environments 11 MACHINE VISION BASICS 1

Machine vision is a technology used to replace or complement manual inspections with image processing. The technology is used by industries such as food and beverage, packaging, pharmaceutical, and automotive to automate production and help these industries improve product quality and reduce waste. Before designing an automated machine vision solution for an application in a harsh or rugged environment, there are some basic concepts you ll need to understand. Capture Image Machine vision can be described by a four-step process: Take Action Transmit Result Analyze Image 1. 2. 3. 4. Capture an image. Analyze the image. Transmit the result of the analysis to the controlling system. Take action depending on the result (for example, initiate a reject mechanism to reject a bad part). Machine Vision Components The number one goal for every successful vision application is to capture a high-quality image of an object, or part. There are several components involved in this process: Pixels have two properties: Imager Lens Lighting Image Analysis Imager Grid Location Grayscale Value At its heart, a vision sensor is essentially an electronic light meter. The sensor uses an imager chip to measure light levels across an area. The imager chip is made up of hundreds of tiny light-sensitive elements, each of which creates an electrical signal proportional to the amount of light striking that element. These light intensity values are measured on an 8-bit scale which varies from 0 (darkest) to 255 (brightest). Each of the light-sensitive elements on the imager chip is called a picture element or pixel. Each pixel has only two MACHINE VISION BASICS 2

properties: a location (X and Y coordinates) and a gray scale value (between 0 and 255). The image that comes from the sensor is made up of hundreds of individual light measurements. Exposure Just like an everyday camera used to take any picture, exposure is the amount of light detected by the imager. The exposure amount is determined by the exposure time, which is the amount of time the camera allows light to energize the image chip. Increasing the exposure time allows more light to energize the imager chip, which brightens the image. Overexposure and underexposure result in less detailed images. Overexposed images have too much light and appear mostly white, whereas underexposed images are very dark. This is why correct lighting is so important to the success of a machine vision inspection. Gain Gain is an electronic boost to the image signal. Increasing gain is a simple way to increase image brightness without increasing exposure time. Contrast A successful vision application is almost all about creating contrast between the feature of interest and the background. In this usage, contrast essentially means the pixels making up the feature of interest have different gray scale values from the surrounding background pixels. The greater the difference, the better. Most commonly, contrast is created through proper lighting. Generally it does not matter whether the feature of interest looks bright against a darker background or vice versa. Only the fact that they are different enough in gray scale value matters. If conditions allow backlighting a part is almost always the best choice, as there is a stark contrast between the dark silhouette and the bright backlight itself. MACHINE VISION BASICS 3

Lens The lens focuses the light that enters the camera in a way that creates a sharp image. An image in focus means that the object edges appear sharp. If the object is out of focus, the image is blurred. An important consideration when choosing a lens is the focal length of the lens. The focal length is the distance between the rear nodal point of the lens (the point where the light rays leave the rear of the lens) and the camera s imager. Focal Length Lens Imager Camera Model PPCAM The lens focal length sets up the (fixed) relationship between the Field of View (FOV) and the working distance. FOV is the area of the inspection captured on the camera s imager. The size of the FOV and the size of the camera s imager directly affect the image resolution (one determining factor in accuracy). Working distance is the distance between the back of the lens and the target object. Camera 480 pixels (vertical FOV) Working Distance Lens 640 pixels (horizontal FOV) Imager Field of View MACHINE VISION BASICS 4

Lighting Lighting is crucial to any machine vision application. The goal of lighting in machine vision is to enhance the features of the object being inspected and to make sure that the quality of the captured image is repeatable in the environment. The following are some general lighting considerations for vision applications: Keep the lighting constant (unchanging over time). Keep the lighting consistent (no shadows or hot spots). Capture the shape and form of the target object with lighting that optimizes its contrast and separates it from the background. Keep the effects of room lights, sunlight, or other ambient light sources to a minimum. Choose a lighting technique and light source appropriate for the size, shape, texture, color, transparency, reflectivity, and heat tolerance of the target object. Adjust for the best exposure time of the camera. Adjust for any physical constraints in the inspection area. Lighting Options There are many lighting options for vision applications. The following highlights some of the common ones. Backlight Generally the first choice for most machine vision applications, backlighting provides even, low-intensity illumination. The backlight is placed behind the target object and aimed directly back toward the camera, and the resulting silhouette can be inspected for proper size or shape. Advantages Shows the diameter of rounded target objects. Shows through-holes in target objects. Provides a clean image. MACHINE VISION BASICS 5

Disadvantages Does not reveal surface qualities. Since the backlight creates a silhouette, the light must be larger than the object. Application Examples Detect foreign material on a clear web. Sort parts by size and shape. Measure spacing between the leads of an IC chip. Measure the height of a cap on a clear bottle. Inspect for cracks or holes in sheet metal. Ring Light A ring light provides diffused illumination over a small area. With the lens axis through the center opening of the ring light assembly, the ring light illuminates the area directly in front of the camera. Advantages Provides even illumination for small objects. Reduces shadows on images with protrusions. Centers the light on the image. Can be mounted directly to the camera. Disadvantages With large objects, the corners of the image may lose illumination intensity, creating a halo of dark pixels along the outer edge of the image. With highly reflective surfaces, the image may contain a circular glare pattern of reflected light. Application Examples Verify date or lot codes on labels. Detect label presence. Detect double sheets. Directional Lighting Directional lighting provides even illumination in a concentrated area. Well-placed area, linear array, or spot lights can purposely create shadows and glare, allowing the camera to detect the presence or absence of a feature. Advantages Creates shadows to detect changes in depth. MACHINE VISION BASICS 6

Illuminates specific surface angles for detection. Avoids glare of reflective surfaces when directed at an angle away from lens. Provides lighting at distances greater than 12 inches. Disadvantages May create unwanted glare and shadows. May create hot spots or glare from highly reflective surfaces. Application Examples Detect notches in ceramic rings. Detect dents in metal tubing. Verify printing on reflective surfaces. Distinguish between rough and smooth surfaces. On-Axis Lighting On-axis lighting provides even, diffused illumination. A beam splitter directs the light rays along the same axis as the camera lens. Reflective surfaces perpendicular to the camera appear bright. Surfaces at an angle to the camera and non-reflective surfaces appear dark. beam splitter diffuser light source Advantages Provides more even illumination than a ring light. Fills in the hole of light that is created with a ring light. Disadvantages The light level received by the camera lens is only 25% of the light output. The light source must be close to the target object. The light must be larger than the target object. Application Examples Detect markings on brushed metal surfaces. Verify date codes on reflective materials. Diffused Lighting Highly-diffused lighting, such as a domed light, provides soft illumination from multiple directions. Diffused light minimizes glare and shadows. Advantages Minimizes glare and shadows (with a domed light, glare and shadows are almost eliminated). Illuminates curved surfaces softly and evenly. MACHINE VISION BASICS 7

Minimizes texture. Disadvantages Brings out surface features less distinctly than direct light. The area of illumination must be three times larger than the area of inspection. Minimizes texture. Application Examples Verify date-code ink on curved metallic surfaces, such as soda can bottoms. Read printing on clear plastic. Verify printing on plastic bottles. Image Analysis After an image is captured, the next step in a vision application is to analyze the image. This is where the desired features are evaluated. light source (off axis) BANNER light source (off axis) A feature is the general term for information in an image, for example a dimension or a pattern. Region of Interest A Region of Interest (ROI) is a selected area of concern within an image. The purpose of using ROIs is to restrict the area of analysis. Edges Many tools look for edges, or locations where the gray scale value of neighboring pixels is drastically different. In a good high-contrast image, these edge pixels are present at the boundaries between the feature of interest and the background. Thus, if we can identify the edge pixels, we can identify the feature of interest. The first class of tools concerned with finding edge pixels are the linear vision tools. The linear tools include the Locate tool, the aptly named Edge tool, and the Object tool. All are variations on a single theme: the user defines a line of pixels that they would like to investigate and then the tool examines the pixels along that line for abrupt changes gray scale value. By changing the linear tools Threshold method a user can define how drastic a change is necessary to constitute an edge. MACHINE VISION BASICS 8

Blobs A Blob stands for Binary Large Object and is any area of connected pixels that fulfill one or more criteria, for example having a minimum area and intensity within a gray value interval. Pattern Matching Pattern matching is the recognition of a previously taught pattern in an image. Pattern matching can only be used when there is a reference object and the objects to inspect are (supposed to be) identical to the reference. Pattern matching can also be used to locate objects, verify their shapes, and to align other inspection tools. Bar Code Reading Bar Codes are printed on products and packages to enable fast and automatic identification of a product. Bar Codes are taught to a sensor, thus allowing the sensor to inspect and verify them at extreme speeds. OCR/OCV Optical Character Recognition (OCR) and Optical Character Verification (OCV) are used when text reading is used in packaging to inspect print quality and verify or read a printed message. Color Analysis A color vision sensor has an imaging chip that, rather than providing just a gray scale value along with the grid location, actually provides a color intensity value for each of the primary colors of light: red, green, and blue. Variations of color intensity for each of these primary colors provide all other shades of colors. Red, Green, Blue (RGB) Red, Green, and Blue (RGB) is a representation of additive color space where red, green and blue are combined to create MACHINE VISION BASICS 9

G+ S R+ B+ W other colors. This is the primary method for showing color on monitors and televisions. The RGB color space is represented as a cube with the three primary colors whose axes are perpendicular to each other. Black is the absence of all primary colors; that is, the intensity of all three primary colors is zero [0,0,0]. White is the presence of of all primary colors; that is the intensity of all three primary colors is 255 -- [255,255,255]. B- G- W A color value is specified with three numbers between 0-255, each representing Red, Green and Blue. For example, the particular green in the example below is [75,200,100]. R+ 255 R 75 W R 75 G 200 B 100 S B 100 G 200 255 255 Hue, Saturation, Intensity (HSI) Another way to look at color is not in terms of red, green, and blue, but as hue, saturation, and intensity (HSI). We generally do not see things as quantities of primary colors mixed in certain proportions. Rather, we see things as colors, or hues, that either are washed-out or vivid. This means having low or high saturation, respectively. Hue, saturation, and intensity, then, are three dimensions that MACHINE VISION BASICS 10

provide a representation of color space that is closer to human perception of color dynamics. Colors are defined as H, S, and I ratios are represented as a cone. The cone shape has one central axis representing intensity. Along this axis are all the gray values, with black at the pointed end of the cone and white at its base. The greater the distance along this line from the pointed end, or origin, the brighter or higher the intensity. Color Analysis involves looking at all colors in a ROI and reducing them to the average of the combined colors in the ROI, or to group adjacent pixels within the same color range together to form a color BLOB and to analyze parts with color variations that cannot accurately be detected by gray scale sensors. Considerations for Harsh Environments Vision sensors are often deployed in harsh environments; that is, environments that are dusty, where there is a lot of heavy equipment and therefore lots of vibration, or environments where vision components can be exposed to fluids, such as those environments that require periodic washdowns. Generally, these conditions can damage a vision sensor or one of its components. One approach that is used to protect vision sensors in harsh environments is to build custom enclosures. While custom enclosures can improve the overall protection of the sensor, they can be expensive and also increase the overall size of the sensor, making it difficult to use in space-constrained applications. Additionally, custom enclosures can negatively affect optical performance by deforming the image or by introducing illumination problems such as unwanted reflections or stray light. Vision sensor manufacturers have developed cost-effective ways to make more robust vision components for these environments. The sensor electronics and lens can be sealed in a singlebody, ruggedized housing, such as die-cast nickel-plated MACHINE VISION BASICS 11

aluminum with an acrylic or glass lens cover. For example, the Banner Engineering PresencePLUS P4 Sealed OMNI is a single-body vision sensor available in several models for a wide range of vision applications in harsh environments. Locking screws can be used to prevent vibration from unthreading the lens from the camera and thereby altering the focus. Threaded connectors and high-flex cables can be used where there may be repetitive motion. Lighting can be sealed in a ruggedized housing such as diecast nickel-plated aluminum and stainless-steel. Banner Engineering has a variety of sealed lights for a wide variety of applications including ring lights, area lights, and linear array lights. Banner Engineering Corp. 9714 Tenth Avenue North Minneapolis, Minnesota 55441 (763) 544-3164 Fax: (763) 544-3213 Toll-free: 888-373-6767 www.bannerengineering.com Email: sensors@bannerengineering.com Act now to save up to $1500 in premium inspection tools. Sealed Vision Sensors Vision Value Event Models Models Vision Tools Lens Cover Premium Tools P4ORS-P-BCOC P4ORS-G-BCBD OMNI Gray Scale NOTE: Lighting, lenses and cordsets ordered separately. Plastic Glass Bar Code Reader & OCR/OCV Bar Code Reader & Bead * No Charge Powerful Inspection Capabilities in a Compact, Robust Housing Sealed IP68 housing and connectors to withstand dust, moisture and washdown Compact and durable nickel-plated aluminum housing to tolerate shock and vibration A complete suite of location, inspection, analysis and geometric tools; all can be used simultaneously for inspecting multiple features and complex applications Proven user interface common to all Presence PLUS sensors Intuitive Wizard-like setup procedure and common graphical interface; supports nine languages Ethernet, serial, flexible discrete I/O and real-time video output in the same full-featured sensor ActiveX utilities for exporting inspections, images and results Take advantage of this special offer now! www.bannerengineering.com/buyp4 2009 Banner Engineering Corp. All rights reserved. * Offer ends December 31, 2009.