Download as pdf or txt
Download as pdf or txt
You are on page 1of 49

INTRODUCTION TO MACHINE VISION

Thibaut van Baer | February 2018

1 © 2018 Cognex Confidential


Agenda

▪ What is machine vision?


▪ Why use machine vision?
▪ Machine vision applications
▪ Types of machine vision systems
▪ Vision system components
▪ Machine vision terms
▪ Improving vision system performance
▪ Summary
▪ Q&A

2 © 2018 Cognex Confidential


What is machine vision?
The camera lens and sensor
capture images…

Cognex advanced vision tools


interpret what’s being seen

3 © 2018 Cognex Confidential


Evolution of machine
vision
3D Displacement
Sensors
Vision
Sensors

Barcode
Readers

Modular
Vision
PC Vision
Embedded
Boards

Proprietary Box

1982 Today

4 © 2018 Cognex Confidential


Simple examples
Machine vision systems:
1. Analyze images
2. Makes decisions and returns results about each image

Good Oil Filter:


All holes are
open

Bad Oil Filter:


Some holes
The center tab on this bracket is
are blocked
37.255 mm wide

5 © 2018 Cognex Confidential


Image analysis
The primary purpose of machine vision is image analysis

Decision

Answer
Image
Location

6 © 2018 Cognex Confidential


Where is machine vision used?

Automotive
Industry Electronics
Semiconductor
Industry

Food Packaging
Industry
Consumer
Medical Products
Pharmaceutical

Shipping Graphic Arts/


Transportation Packaging

7 © 2018 Cognex Confidential


Why is machine vision used?

▪ Automate manufacturing ▪ Overcome inefficient manual


processes inspection processes
▪ Improve product quality ▪ Increase manufacturing throughput
▪ Protect brand image
▪ Reduce material waste
▪ Reduce operational costs
▪ Minimize the risk of recalls

8 © 2018 Cognex Confidential


Critical for achieving strategic goals

▪ High speed production lines


▪ Clean room environments
▪ Hazardous environments
▪ Microscopic inspection
▪ Closed-loop process control
▪ Robot guidance
▪ Precise non-contact
measurement

9 © 2018 Cognex Confidential


Benefits of machine vision

Manufacturing Goal Machine Vision Applications


Improved product quality Inspection, measurement, gauging, and
assembly verification
Increased productivity Repetitive tasks done manually are
automated with machine vision
Production flexibility and Automatic product changeovers
less machine downtime
Increased manufacturing High-speed inspection keeps up with the
throughput fastest production lines
Reduce manufacturing Detecting defects earlier in the process
waste prevents adding value to defective
products

10 © 2018 Cognex Confidential


MACHINE VISION APPLICATIONS

11 © 2018 Cognex Confidential


What does machine vision do?

GUIDE INSPECT GAUGE IDENTIFY


12 © 2016
2018 Cognex Confidential
Guidance
Determines part position (x, y, and angle)

Automates handling of parts for machines:


▪ Alignment & Placement
▪ 2D & 3D Picking
▪ Eliminates need for fixturing &
improves robot flexibility

Vision tool alignment, fixturing


▪ Locate at least one feature on a part for
the purpose of calculating the (x, y)
position and rotation of the part to
position other vision tools precisely

13 © 2018 Cognex Confidential


Geometric pattern matching

Trained Image Confusing Background Out of focus

Rotation and Scale Changes Occlusions Uneven Lighting

14 © 2018 Cognex Confidential


Part location challenges

Appearance Changes

15 © 2018 Cognex Confidential


Part location challenges
Variation in part appearance

16 © 2018 Cognex Confidential 1


Inspection
Correct location
▪ Orientation
▪ Skew
Quality
▪ Defect Detection
▪ Surface Inspection
▪ Contaminants
Completeness
▪ Fill Level
▪ Feature Presence
▪ Counting
▪ Assembly Verification

17 © 2018 Cognex Confidential


Gauging
Precise dimensioning
▪ Automated metrology and
data recording

Ensures tolerances
▪ Diameters
▪ Gaps
▪ Bushings
▪ Threads, etc.

18 © 2018 Cognex Confidential


Identification
Read Codes
▪ Printed 1-D Barcodes & 2-D Matrix
▪ Direct Part Mark

Read Characters
▪ OCR / OCV

Recognize Objects
▪ Based on color, shape, or size

19 © 2018 Cognex Confidential


MACHINE VISION PRINCIPLE

20 © 2018 Cognex Confidential


1D machine vision
▪ 100% continuous web
inspection and classification
▪ Uses line-scan cameras
▪ Materials inspected include:
Metals, non-wovens
Plastics, Paper

21 © 2018 Cognex Confidential


Four reasons to use line scan
1. Unwrap cylindrical objects for
inspection

2. Add vision to space-constrained


environments

3. Meet high-resolution inspection


requirements

4. Inspect objects in continuous


motion

22 © 2018 Cognex Confidential


2D machine vision – area scan

23 © 2018 Cognex Confidential


3D Machine Vision

24 © 2018 Cognex Confidential


Profiler principle of operation

25 © 2018 Cognex Confidential


Displacement sensor

26 © 2018 Cognex Confidential


VISION SYSTEMS AND SENSORS

27 © 2018 Cognex Confidential


COGNEX VISION SENSOR
Powerful, proven In-Sight®
vision tools for reliable
inspection performance
Field changeable, high power,
diffuse illumination

Field changeable
lenses and filters
for optimal image
quality
Compact, modular
body design fits into
tight spaces
Step-by-step setup
with EasyBuilder®

28 © 2018 Cognex Confidential


Cognex 2D Vision

▪ Industry-leading image acquisition and optical character


recognition
▪ Powerful and precise pattern matching algorithms
▪ Most reliable and flexible inspection systems

29 © 2018 Cognex Confidential


Cognex 3D Vision

▪ 3D laser displacement sensors provide three dimensional inspection of


products to optimize quality
▪ Measure height, volume or tilt with cross section and plane fitting tools –
regardless of contrast or light variations
▪ Expanded range of 3D sensors, factory calibrated to deliver real-world values

30 © 2018 Cognex Confidential


SYSTEM COMPONENTS

31 © 2018 Cognex Confidential


Key parts of a vision system
Light Source

Communication

I/O Comm. INPUT INPUT O UTPUT


SLC50/4CPU
RUN FORC 0 4 0 4 0 4
POWER FLT DH+ 1 5 1 5 1 5
BAT RS232 2 6 2 6 2 6
RUN REM PROG 3 7 3 7 3 7

Lens Camera Vision Software A -B


ALLEN -BRADLEY

Vision System

Inputs/Outputs: switches, PLCs, robots, lights

32 © 2018 Cognex Confidential


Putting it all together

Parts

Light Source

Lens Camera
Input: Monitor
Output:
•Serial •Serial
•Parallel •Parallel
•ISA, PCI, VME busa •ISA, PCI, VME bus

Vision System

Operator Pointing Device


(Trackball, Mouse, Touchscreen)

33 © 2018 Cognex Confidential


How the system works
1. Part arrives at inspection station

2. Sensor detects part and sends a trigger to the vision system


3. Strobe is flashed to
illuminate part 4. Vision System acquires the image from the sensor.

5. Software algorithms running on vision system


FAIL performs image processing and/or image analysis
on acquired image

6. Vision system sends signal along a discrete output


line which activates a diverter if the part is bad

7. Operator can view rejected parts and ongoing statistics on display,


and can take system off-line if necessary

34 © 2018 Cognex Confidential


Machine vision algorithms

Algorithms used by Vision Tools transform raw numbers into


useful higher level features …

- Raw numbers turned into edges, colors, characters, and


other characteristics

… then makes decisions


- Returns answers such as position, similarity, distance,
presence, quality

All within just one to tens of milliseconds!

35 © 2018 Cognex Confidential


TERMINOLOGY

37 © 2018 Cognex Confidential


Vision definitions
Field of View (FOV)

▪ The part which can be


seen by the machine
vision system at one
moment.
▪ The field of view
depends on the lens of
the system and the
working distance
between object and
camera.
5” x 7”

38 © 2018 Cognex Confidential


Field of view
What is my field of view?
3”

4”

8”

15”

39 © 2018 Cognex Confidential


Working distance and resolution

Working Distance (WD)


▪ Distance between the
FRONT of the lens and the
target
10”
Resolution
▪ The minimum feature size of
the object under inspection.

40 © 2018 Cognex Confidential


Correlation working distance/FOV

41 © 2018 Cognex Confidential


Depth of field
Depth of Field (DOF)
▪ The distance in front of and
behind the object which
appears to be in focus

3”

More DOF with a small aperture


(high f/number) than with a large
aperture (low f/number)

42 © 2018 Cognex Confidential


SYSTEM COMPONENTS

43 © 2018 Cognex Confidential


Different lens … same image?
▪ Lighting
▪ Depth of field
▪ Working distance
▪ Line speed
▪ Exposure time
▪ Aperture
▪ Budget

44 © 2018 Cognex Confidential


Lighting techniques
Light can be structured in different ways. Angle and direction of the
light determine how the mark and space is seen by the camera.

Back Lighting Axial Diffuse


Structured

Dark Field Bright Field Diffuse Dome

45 © 2018 Cognex Confidential 4


Optics

To learn more about choosing the right optics go to


Cognex.com > Resources > On-Demand Webinars

46 © 2018 Cognex Confidential


Filtering techniques

▪ Control quality and quantity of


light
▪ Block all unwanted
ambient lighting
▪ Pass only the output of
lighting used for inspection
▪ Increase contrast
and resolution

For more on optical filters, go to Cognex.com >


Resources > On-Demand Webinars

47 © 2018 Cognex Confidential


Image pre-processing tools

To learn more about image pre-processing,


go to Cognex.com > Resources > On-Demand
Webinars

48 © 2018 Cognex Confidential


Summary

▪ Make products better, faster, and less expensively


▪ Gauging, Inspection, Guidance, and Identification are
the key applications
▪ Key components are the lens, camera, lighting, vision
software and communications
▪ Learn more about optics, lighting, filters and image pre-
processing to improve system performance
▪ Don’t go it alone…get help from experts!

49 © 2018 Cognex Confidential


QUESTIONS?

Contact.eu@Cognex.com | www.Cognex.com

50 © 2018 Cognex Confidential

You might also like