62
Industrial Computer Vision i.e. Machine Vision 02504 Computer Vision, Spring 2020 Rasmus A. Lyngby, Ph.D.

Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

  • Upload
    others

  • View
    18

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

Industrial Computer Visioni.e. Machine Vision

02504 Computer Vision, Spring 2020

Rasmus A. Lyngby, Ph.D.

Page 2: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

2

Who I am

Swim Coach

Diploma Coach, Level 3Aalborg Trænerakademi

BSc

Electronics and ITAalborg University

MSc

Vision, Graphics, and Interactive SystemsAalborg University

PhD

Image Analysis and Computer Graphics

Technical University of Denmark

ProInvent

Head of Machine Vision

2009 2012 2014 2018 2020

Page 3: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

3

Who we are at ProInvent

Page 4: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

4

Our team

Rasmus MortensenHead of Machine Design

Rasmus Ahrenkiel LyngbyHead of Vision

Henrik SøndergaardDepartment Manager

Robotics & Automation

Peter AhlbergSenior Partner

Head of Project Management

Lasse JensenHead of Assembly

René Ferm NybergHead of Product Development

Page 5: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

5

Page 6: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Projected Machine Vision Market Growth

USD 9,90 Billion

USD 14,00 Billion

2019 2024

6Source: MarketsandMarkets Market Research Report 2919/12/02

Page 7: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Machine Vision vs. Computer Vision02504 Computer Vision, Spring 2020

Page 8: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

8

Computer Vision

Machine Vision

Page 9: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Computer Vision

Autonomous cars

In most Computer Vision applications, we are in limited control of the environment

Surveilance

Robots working “in the wild”

Source: Willow Garage, FiveAI, Eniversity of Edinburgh

Page 10: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Machine Vision

Product quality inspection

In most Machine Vision applications, we are in almost full control of the environment

Advanced multi-ray, multi-wavelength quality inspection

Industrial robots for geometrical tolerancing

Source: Metrology News, Cognex, New Atlas

Page 11: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

A Project Model for Machine Vision02504 Computer Vision, Spring 2020

Page 12: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

12

Page 13: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

The Pre-Project Model

Pick and choose concept evaluation criteria together with the customer.

Evaluation Criteria

The key idea generation process. Brainstorm individually and in groups to generate solutions.

Conceptualization

Test the key concept idea either through calculation, mock-up, or both. Likely to generate

new ides.

Fast Prototyping

Gathering of information on customer supply chain and analyze data.

Investigation

Generate a trustworthy design which “visualizes” the final concept.

Basic Design

0603

05

Identify strengths, weaknesses, and possible pitfalls of the technological ideas. Use the

evaluation criteria together with the customer.

Evaluate Pros and Cons

02

13

01

04

05

Page 14: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Designing a Machine Vision System02504 Computer Vision, Spring 2020

Page 15: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

15Lyngby, R. A. (2019). Autonomous Optical Inspection of Large Scale Freeform Surfaces. Kgs. Lyngby, Denmark: Technical University of Denmark. DTU Compute PHD-2018, Vol.. 486

Page 16: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

SoftwareHow will the image be processed and how is the

result going to be communicated?

IlluminationWhat kind of light?

LensWhat lens is necessary?

CameraWhich camera do we need?

Task and ObjectWhat do we have to do and on what?

Page 17: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Task and Object

• What are we going to do?– Geometrical measurement

– Inspection

– Detection

– Reading

• What is our feature size?

• How is the shape of the workpiece?

• What material is the workpiece made of?

17

Page 18: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Feature size

18Source: inspect world of vision

Page 19: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

19

Material

• For dielectric medias:𝐼0𝐼𝑅+𝐼0𝐼𝑇+𝐼0𝐼𝐴= 1

• Where:𝐼0: Incoming irradiance [ Τ𝑊 𝑚2]𝐼𝑅: Reflected radiance [ ΤΤ𝑊 𝑠𝑟 𝑚2]𝐼𝑇: Transmitted radiance [ ΤΤ𝑊 𝑠𝑟 𝑚2]𝐼𝐴: Absorbed radiance [ ΤΤ𝑊 𝑠𝑟 𝑚2]

Source: Hyll, C. (2012). Infrared Emittance of Paper: Method Development, Measurements and Application (Doctoral dissertation, KTH Royal Institute of Technology).

Page 20: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Specular vs Diffuse reflection

20Sources: Lyngby, R. A. (2019). Autonomous Optical Inspection of Large Scale Freeform Surfaces. Kgs. Lyngby, Denmark: Technical University of Denmark. DTU Compute PHD-2018, Vol.. 486

Page 21: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Subsurface scattering

21Sources: Lyngby, R. A. (2019). Autonomous Optical Inspection of Large Scale Freeform Surfaces. Kgs. Lyngby, Denmark: Technical University of Denmark. DTU Compute PHD-2018, Vol.. 486

Page 22: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Example

22Sources: Lyngby, R. A. (2019). Autonomous Optical Inspection of Large Scale Freeform Surfaces. Kgs. Lyngby, Denmark: Technical University of Denmark. DTU Compute PHD-2018, Vol.. 486

Page 23: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

SoftwareHow will the image be processed and how is the

result going to be communicated?

IlluminationWhat kind of light?

LensWhat lens is necessary?

CameraWhich camera do we need?

Task and ObjectWhat do we have to do and on what?

Page 24: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

The electromagnetic spectrum

24Sources: O’Connor, B., & Secades, C. (2013). Review of the use of remotely-sensed data for monitoring biodiversity change and tracking progress towards the Aichi Biodiversity Targets.

Page 25: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

CCD sensor CMOS sensor

25

Image sensor types

Source: Edmund Optics

Page 26: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Camera types

26Source: Metrology News

Page 27: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

27

Color camera

Source: Accu-Scope, JTH Online

Page 28: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

28

Color camera

Source: Accu-Scope, JTH Online

Page 29: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Quantum Efficiency

• The percent of photons converted to electrons at a specific wavelength

29Source: Trisys, Edmund Optics

Page 30: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Sensor resolution• The highest frequency which can be resolved by a sensor, the

Nyquist frequency, is effectively two pixels or one line pair• Needed resolution:

𝑅 =𝑊FoV

𝑊obj(2𝑛p) =

𝑊FoV

𝑊obj𝑛lp

• Where:𝑊FoV: Width of the Field-of-View [mm]𝑊obj: Width of the object [mm]𝑛p: Number of pixels on the object𝑛lp: Number of line pairs on the object

• 𝑛lp is often at least five times the minimum feature size

30Source: Edmund Optics

Page 31: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Shutter types: Global and Rolling

31Source: reddit /r/educationalgifs

Page 32: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Shutter speed for moving objects

• Maximum shutter time:

𝑆max =𝑊obj

𝑛lp𝑣obj

• Where:𝑣obj: Velocity of the object [ Τ𝑚 𝑠]

• Use global shutter for moving objects

32

Page 33: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

SoftwareHow will the image be processed and how is the

result going to be communicated?

IlluminationWhat kind of light?

LensWhat lens is necessary?

CameraWhich camera do we need?

Task and ObjectWhat do we have to do and on what?

Page 34: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

34

Lens types

Source: Edmund Optics

Page 35: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Index of refraction:

𝑛 =𝑐

𝑣Snell’s law:

sin(𝜃2)

sin(𝜃1)=𝑣2𝑣1

=𝑛1𝑛2

35

Snell’s law

Source: Wikimedia

Page 36: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

36

The thin lens model

Source: LibreText

• A lens is thin if its turning radius is much larger than its width

•1

𝑑𝑜+

1

𝑑𝑖=

1

𝑓

• If 𝑑𝑜 ≫ 𝑑𝑖 then:1

𝑑𝑖≈1

𝑓⟺ 𝑓 ≈ 𝑑𝑖

Page 37: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Aperture

37Lyngby, R. A. (2019). Autonomous Optical Inspection of Large Scale Freeform Surfaces. Kgs. Lyngby, Denmark: Technical University of Denmark. DTU Compute PHD-2018, Vol.. 486

Page 38: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

f-number (or f-stop)

38

The f-number N is given by:

𝑁 =𝑓

𝐷Where:f: Focal length [mm]D: Pupil diameter [mm]

Usually, the f-number is written:Τ𝑓 𝑁 (or Τ𝑓 #)

which form an expression for the entrance pupil diameter

Source: Creative Photography, Skylum

Page 39: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

f-number (or f-stop)

39

The f-number N is given by:

𝑁 =𝑓

𝐷Where:f: Focal length [mm]D: Pupil diameter [mm]

Usually, the f-number is written:Τ𝑓 𝑁 (or Τ𝑓 #)

which form an expression for the entrance pupil diameter

Source: Creative Photography, Skylum

Page 40: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

40

Issues with having only one lens element

Source: B&H Photo Video, Wikipedia

Page 41: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Compound and complex lenses

41

Source: Lertrusdachakul, Intuon & Fougerolle, Yohan & Laligant, Olivier. (2011). Dynamic (de)focused projection for three-dimensional reconstruction. Optical Engineering. 50.

113201-1;113201. 10.1117/1.3644541.

Page 42: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

• Pinhole model:2𝑓

𝑤sen=

2𝐷

𝑤𝐹𝑜𝑉

𝑓 =2𝐷

𝑤𝐹𝑜𝑉𝑤sen

• Lens resolution should at least be equal to the sensor resolution

42

Selecting a lens

Source: Basler

Page 43: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Minimum Object Distance (MOD)

43Source: Vision Doctor

Page 44: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

SoftwareHow will the image be processed and how is the

result going to be communicated?

IlluminationWhat kind of light?

LensWhat lens is necessary?

CameraWhich camera do we need?

Task and ObjectWhat do we have to do and on what?

Page 45: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

45

Light types

Source: Vital Vision

Page 46: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Light polarization

46Source: Physics Stackexchange, Baumer

Page 47: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Light polarization

47

This happens only for dielectric medias

Source: Physics Stackexchange, Baumer

Page 48: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

48

Example objects

Page 49: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

49

Front light

Page 50: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

50

Co-axial front light

Page 51: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

51

Narrow angle light (dark field)

Page 52: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

52

Back light

Page 53: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

53

Polarized light source and polarizing filter

Filter at 90°No filter Filter at 0°

Page 54: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

54

Polarized light source and polarizing filter

No filter Filter at 0° Filter at 90°

Page 55: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

55

Polarized light source and polarizing filter

No filter Filter at 0° Filter at 90°

Page 56: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Elements in a Machine Vision system

SoftwareHow will the image be processed and how is the

result going to be communicated?

IlluminationWhat kind of light?

LensWhat lens is necessary?

CameraWhich camera do we need?

Task and ObjectWhat do we have to do and on what?

Page 57: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

57

Software suits

Page 58: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Communication protocols

58Source: Pinterest

Page 59: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

Applications02504 Computer Vision, Spring 2020

Page 60: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

60

Machine vision application areas

Robot Guidance

Geometrical Metrology

Process Control

AutomaticQuality

Inspection

Text/Code Reading

Page 61: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

61

Benefits of Machine Vision

Fast inspection Improved precision Reduced cost

Page 62: Industrial Computer Vision i.e. Machine VisionComputer Vision Autonomous cars In most Computer Vision applications, we are in limited control of the environment Surveilance Robots

ProInvent….. your technology partner

62

Quality control for pharmaceuticals