Professional Documents
Culture Documents
Session 14
Optics
1
Types of Lenses
Wide Angle
• Focal length less than standard 50 mm. Ex: 16 mm
• Wide depth of field, closer focusing distance.
Telephoto
• Focal length greater than standard. Ex: 75 mm
• Shallow depth of field; enlarges distant objects.
Zoom
• Range of focal lengths. 35-70 mm
Macro
• Size of image = size of object (1:1)
Telecentric
• No perspective distortion.
Depth of Field
2
Lens Advisor
http://www.cognex.com/ExploreLearn/UsefulTools 5
Lighting
3
Lighting Considerations
Is the surface finish specular (smooth and glossy) or diffuse (rough and dull)?
Does the surface exhibit directional reflectance (reflects light in a specific
direction)?
Does the appearance of the part change under different colors of light (darken
or lighten)?
Is the part’s surface flat or 3-dimensional? Curved? Irregular? Etched?
Embossed? Raised?
Is the surface of the part stable or will it change over time (tarnish, oxidize,
fade)?
7
Light
• Definition: Light, or visible light, electromagnetic radiation that
can be detected by the human eye. eye Electromagnetic radiation
occurs over an extremely wide range of wavelengths, from
gamma waves, with wavelengths less than about 1 × 10−11
meter, to radio waves measured in meters. Within that broad
spectrum the wavelengths visible to humans occupy a very
narrow band, from about 700 nanometers (nm; billionths of a
meter)) for red light
g down to about 400 nm for violet light.
g The
spectral regions adjacent to the visible band are often referred
to as light also, infrared at the one end and ultraviolet at the
other.
from Britannica.com
4
Image Spectrum
• Visible light
• If all frequencies are present, then the light is considered white
light
• Refracting the white light results in the spectrum above
• This
Thi allows
ll ffor edges
d or texture
t t to
t
become prominent
5
Lighting Options
• Placement of part with respect to light and camera
• Angle
g and direction can greatly
g y change
g appearance
pp of part
p
Lighting Options
Same Part -
Different Light Position
6
Bright Field
Ambient Light
Bright Field Lighting
7
Dark Field
8
Dark Field Application
Near
9
Dark Field and Bright Field
• Advantage
• Shows surface detail on veryy low contrast p
parts
• Disadvantage
• Not good for light absorbing surfaces or applications with high
accuracy requirements
• Applications
• Very low contrast parts (gray-on-gray, metal-on-metal)
• Shinyy ((specular),
p ), metallic parts
p
Diffuse Light
Frosted Glass or Plastic
10
Diffuse Light
• Advantages
• Softer,, more even,, less likelyy to cause g
glare and shadows
• Covers a larger area without creating hot spots
• Disadvantages
• Diffusers lower light intensity, which may be critical when using low
intensity sources, such as LEDs
• Applications
• Illuminating
g shinyy metallic p
parts
• Hints
• Choose the material based on how much light is lost vs. diffused
• Bouncing light off reflective, rough surfaces also diffuses light
11
Collimated Light
Condenser Lens
Collimated Light
Parabolic Reflector
Light Source
12
Collimated Light
• Advantages
• Intensifies the light
g to allow a higher
g output
p further from the source
• Disadvantages
• More likely to cause glare and hot spots on shiny surfaces
• Applications
• To improve the sharpness of edges, measurement accuracy of back
lit parts, or project an image of a feature onto a surface
• Used at a distance from object
j to avoid colliding g with moving
g parts
p
• Hints
• Many lamps have reflectors built into them
• Use a toric lens with a ring light
13
Lighting Sources
Halogen
• Pros
• Veryy bright
g
• Adjustable
• Cons
• Cannot be strobed
• Hot
• Degrades
g over time
Hints:
• Run at 80%
• Keep voltage constant
• Use fiber optics
14
Incandescent
• Pros
• Inexpensive
p
• Easily available
• Cons
• Cannot be strobed
• Degrades over time
Fluorescent
• Pros
• Various shapes
p and sizes
• Diffuse – minimal glare
• Cons
• Cannot be strobed
• Flicker
• Degrades
g over time
• Difficult to dim Hint:
Use high frequency ballasts
to reduce flicker
15
Laser
• Pros
• Highly
g y collimated
• Diode lasers can be strobed
• Can show 3D (z dimension)
• Cons
• Expensive
• Grainyy texture
• Fragile Hint:
• Safety is an issue Use fiber optic line light
to increase safety
Xenon
• Pros
• Can be strobed
• High intensity for short periods
• Con
• Degrades over time
Note:
Older strobes were Xenon
16
LED (Light Emitting Diode)
• Pros
• Long-lasting
g g (10,000+
( hours))
• Can be strobed
• Available in specific
wavelengths (colors)
• Con
• Lower intensity (in the past)
Note:
Intensities of LEDs have
increased dramatically over
the last few years
Halogen
l Poor Fair Good
d Poor Poor
17
Lighting Techniques
Techniques
Diffuse On-Axis
Diffuse Off-Axis Structured
18
Back Light
• Creates optimal contrast
• Very little light lost
Back Light
• Pros
• Maximum contrast
• Simplifies image by creating silhouette of part
• Cons
• Surface detail lost
• Difficult to use with objects in a fixture
Hints:
• Applications • Keep light clean
• Gauging and measuring • Use collimated film
dimensions (especially holes)
for high accuracy
19
Back Light Applications
20
Direct Front Light
• Cons
• 3D parts will cast shadows
• Causes specular reflection on shiny parts Hints:
• Use 2 or more
spotlights to
• Applications minimize shadows
• Maximum contrast for low contrast images
• Shadows can be
• Used as a strobe to freeze movement
used to improve
contrast
21
Direct Front Light Application
Structured Light
Uses laser or fiber optic line light
22
Structured Light
• Pros
• Inexpensive
p for measuringg height/depth
g p
• Shows surface profile on low contrast
• Cons
• Lasers are expensive and must be handled
with care
• Z direction is not highly accurate
Hint:
• Applications Use fiber optic as
• Gauging continuous features opposed to laser
• Very low contrast part (line deformation) when possible
23
Diffuse On-Axis Light (DOAL)
• Con
• Thickness of mirror can produce a
double image
• Applications Hint:
• Detecting flaws on flat, shiny surfaces Use with another
• Illuminating small cavities source for
fill light
24
Diffuse On-Axis Light (DOAL) Applications
25
Diffuse Off-Axis Light
• Cloudy Day Illumination or Dome Light
• Cons
• Dead spot due to hole for camera
• Reduced intensity
Hints:
Hints:
Hi
• Use with DOAL toto
fillfill the
• Applications • Use with
dead
DOAL
spot
the
• Detecting flaws on rounded,
dead spot
shiny surfaces
• CDI devices
• Cloudy are available
Day Illumination devices
in a variety of sizes
are available in a variety of sizes
26
Diffuse Off-Axis Light Applications
27
Diffuse Off-Axis Light Applications
Review of Techniques
Back Light
Ring Light Diffuse On-Axis
(DOAL)
28
Filters and Colored Light
Filters
29
Polarized Light
59
Polarized Light
Advantages
• Allows you to separate specular and diffuse reflection.
Di d t
Disadvantages
• Requires higher light intensity due to filters.
Applications
• Control amount of specular reflection from shiny parts.
Hints
• Leave one filter fixed and rotate the other.
other
• Specular reflection is minimized when polarizing filters are
crossed (aligned perpendicular to each other).
60
30
Polarized Light Application
61
Color Filters
White Light
Red Filter
Blue Object
Red Background
62
31
Color Filters
Advantages
• Enhances contrast in color scenes.
• Relatively simple and inexpensive technique.
technique
Disadvantages
• May require increase in light intensity.
• Depending on saturation, color filters may not always help.
Applications
• Increase contrast in scenes where the color of object and background
are different, but they appear to be the same when converted to grey
values
values.
Hints
• Red filter darkens blue and green objects.
• Blue filter darkens red and green objects.
• Green filter darkens blue and red objects.
• Colored lights can be used instead of color filters.
63
Color
• Use colored light to create
contrast
32
Color Application
33
Infrared Light (850 - 940 nm)
34
Ultraviolet Light (365 - 400 nm)
35
Lighting Use
Constant Strobed
36
Use: Constant or Strobed
37
Quick Quiz…
Question 1
What lighting technique is best suited to illuminate
round metal shinyy p
parts?
A. Dark Field
B. Back Light
C. Bright Field
D. Diffuse Off-Axis (Cloudy Day Illumination/Dome)
38
Question 2
• If you had this part to inspect and was only concerned about
the blue vertical p
print,, what color light
g would yyou use?
A. Red
B. Green
C. Blue
D. Infrared
Question 3
• One lighting technique will inspect all parts in any application.
• True
• False
39