Escolar Documentos
Profissional Documentos
Cultura Documentos
Correspondence Course -
An Introduction to Vision Systems
Vol.1 What Is an Optimum Image for Vision Inspection?
Vision inspection can be divided into the four main processes shown below.
Image capture ➝ Data transfer ➝ Processing (image enhancement and measurement processing) ➝
Output (transferring data to another device)
In actuality, the most important of these processes is “image capture.” In order to obtain the optimum result, it is first necessary to
display the optimum image. This seminar will explain the CCD, lighting, and lens that are used to capture images and “image
enhancement.”
2 megapixel camera
1600 (X) × 1200 (Y) pixels
Y pixels
5 megapixel camera
2432 (X) × 2050 (Y) pixels
The CCD (Charge Coupled Device) image receiving element is a semiconductor element that outputs an electrical
signal converted from the image, based on the light that strikes it. It is approximately 1 centimeter square and is
made of small pixels arranged in a square block. The number of pixels determines the inspection accuracy.
CA-LM0510
“Focal distance” is one of the standard lens specifications. Typical lenses for FA have focal distances of 4 0.16",
8 0.31", 16 0.63", 25 0.98", 35 1.38", 50 1.97", and 75 mm 2.95". The position that matches the focal point—the
working distance (WD)—can be determined from the field of view and the focal distance that are required for
the target to capture.
Example 1
Lens 3.6 mm
0.14"
16 mm
Viewing angle 0.63"
CCD size
45 mm
1.77" WD = 200 mm
7.87"
WD Focal distance
100
and Working Distance (WD) on the horizontal 3.94"
5
5 15
20
10 5
5 10 10
30
0.39" 11
10
15
20 40
15 20
Numbers on the 20 30
60
40
100
60
1/3-inch, 640 × 480 (when the CV-020, CV-070, CV-035M/C, or CV-H035M/C is attached)
[Lens selection method 3: Lens performance differences] [Lens selection method 4: Depth-of-field]
(1) The more the aperture is closed, the deeper the depth range.
CA-LH16 CV-L16
(2) The shorter the focal distance of the lens, the deeper the depth
range.
(3) The larger the distance to the target, the deeper the depth range.
The most commonly used light sources are LEDs. The largest advantage of LEDs is their long service life, as
shown in the above graph. It is also possible to create these lights in a variety of shapes and colors, as shown in
the photographs. There are also cases where it makes sense to use fluorescent lights, which have excellent light
exposure over a wide range, and optical fibers/strobe lights, which can perform exposure with extremely bright light.
1 Determine how the light will strike the target (specularly reflected light, diffuse reflected light, or transmitted light).
iew the characteristics of the part to detect (such as the scratches on and
V Movement of light Diffuse Specularly
shape or presence of the part). reflected light reflected light
View the surface to determine whether it is flat, curved, or uneven.
Specularly reflected light example Transmitted light example
Incident
light
Workpiece
Absorption
The stamped The edges of The foreign particle The shadow of
characters are the stamped appears indistinctly the foreign Diffuse Transmitted
indistinct. characters are transparent. particle is clearly transmitted light light
noticeable. visible.
Determine these items according to the workpiece’s three-dimensional and installation conditions.
(For example, determine whether to use a ring, low angle, coaxial, or dome light.)
With a coaxial light (on-axis) With low angle light
Determine the color according to the materials and colors of the part and background. (For example, select blue, red, or white.)
Wavelength Complementary color circle
Green
Non-visible Non-visible
light Visible light light Yellow Blue
Ultra-violet
light
Purple Blue Verdigris Turquoise Green Pea green Yellow Orange Red Infrared light Orange Purple
Red
380 430 480 490 500 560 580 595 650 780
(Unit: nm)
Different wavelengths cause light to appear as different colors. The different wavelengths lead to Complementary colors are those that are arranged opposite
light having different characteristics such as it transmitting easily (red light with a long each other on this circle. Mixing light having complementary
wavelength) or diffusing easily (blue light with a short wavelength). colors will result in a color that is close to black.
The trick for selecting light lies in carrying out the three steps shown above in order and in a theoretical manner.
First, view the workpiece and select the exposure method (specularly reflected light, diffuse reflected light, or
transmitted light) that will make the characteristics to detect stand out. Then, select the optimum shape and color
of the light to match the application according to the color and brightness of the part and background.
4 Optimizing images for vision inspection using image enhancement filters
The key concept of vision inspection is capturing a clean image (one that is in focus and has clear contrast).
Additionally, using image enhancement filters makes it possible to optimize images to extract the detection
details. Capturing the best possible image and, when necessary, applying image filters with tools, such as stain
detection or dimension measurement, increases the possibility of performing stable inspections.
Maximum
Expanding intensity value
One typical image enhancement process is
2 5 9 using the intensity data (0 to 255) of neighboring
pixels to calculate and replace the data of the
Input image 4 9 3 pixel being examined. Resultant images, when
using the “expand” and “shrink” filters, are shown
0 1 2
on the left. The conversion process is executed
White emphasized on all the pixels within the inspection area to
replace the image with one that is optimum for
Shrinking the main inspection. In the next addition,
advanced image enhancement methods will be
2 5 9
introduced, including image calculation using
4 0 3 multiple images, like the examples shown below.
0 1 2
Minimum
intensity value
Black emphasized
Using a shading correction filter Using a blur filter + shading correction filter
Image prior to filter processing Image after filter processing Image prior to filter processing Image after filter processing
Image prior to filter processing Image after filter processing Image prior to filter processing Image after filter processing
www.keyence.com
Copyright (c) 2016 KEYENCE CORPORATION. All rights reserved. CVMachineVisionIntro-KA-OT-US 1096-1 E 611C98