Professional Documents
Culture Documents
Hoang Masalar
Hoang Masalar
Hoang Masalar
„INTERDISCIPLINARITY IN ENGINEERING”
SCIENTIFIC CONFERENCE WITH INTERNATIONAL PARTICIPATION,
TG. MURES – ROMANIA, 10 -11 November 2005.
Abstract:
The study of a vision camera implantation on a 3D measuring machine took place at the University of
Liege, in Belgium. This kind of measurement has the advantage to be contactless, for example, it
reduces stresses on a classical probe.
A software written in C# language has been developed in order to allow the existing equipment to be
compatible with the camera and therefore to allow to measure mechanical parts.
1. Introduction.
The 3D measuring machine is an ideal tool to measure different kind of parts and at the same
time it is compatible with the CAO. The measuring machine is working usually with a contact
sensor.
323
In place of it, a camera has been installed.
Consequently it allows having artificial vision
measurements, therefore without contact. For
example, we could detect defective colour,
measure printed circuit, verifying parts quickly,
as well in static and dynamic mode (moving
pieces), …
Furthermore, contactless feature decreases error
coming from probe bending. Obviously, there are
other contacless solutions like the laser. Even if it
allows smaller uncertainties, about 0.3 µ m , it is
not required because the uncertainties of the 3D
measuring machine equipped with the classical
probe are about 3 µ m .
Fig.1. 3D measuring machine.
Previously, when the measuring machine was equipped with a probe, it used the program
called “Metrosoft”. Its current released version is not compatible with the “Euresys Picolo
PCI video capture board” which allows acquiring the images from the camera. Consequently,
all the measurement process has been designed: the measuring machine control, data
acquisition, the calibration, image processing and measurements. The oriented object
language C#, successor of C++ has been chosen for its syntax and its potential in the software
development.
The mainly advantage of the oriented object programming is the program can easily evolve
and be modified without having to rewrite down the entire program. You only have to change
some object features and it is done. By the way, using an oriented object language is not
oriented object programming. The programmer has to design, to think object and interactions
between objects. This kind of approach fits particularly with our study because the software
will necessary evolved. The program structure global schema is presented in figure 2.
machine software
controlling Parameters
Serial ports
communications Main Camera
User interface
Fig.2. Program structure global schema.
With the classical probe, the Metrosoft software is launched to measure parts with physical
contacts. The communications between the computer and the measuring machine use two
324
serial ports (COA, 05). Unfortunately, the communication protocols and the configuration of
the ports are not provided. Those are then deducted by reverse engineering and by analysing
commands from Metrosoft (port initializing, measuring machine initializing, camera moving,
manual mode …). They are then implemented in a new program. So far at this development it
is possible to handle the measuring machine in a software way.
5. Frame grabbing.
6. Image processing.
Once an image is acquired, image processing is used to improve its quality and thus to
facilitate its utilisation. Several filters such as the average filter, the low-pass filter, the Sobel
filter, the Median filter … were programmed (BEG and Al, 99). The filter selected consists in
acquiring a series of after-images and to average the images to reduce the noises.
Here are some results from several filters on a normal image and an image with noises, as
presented in the figure 4. As you see, the noise introduces difficulties in the edge detection.
325
7. Measurement strategies.
The basis of artificial vision measurement with a camera consists in that the edges of an
object are represented by lines on an image which have to be detected. In an image, the reality
is represented by a distribution of points in a plane having various light intensities. In our
case, the edges can be located because of their great variation of light intensity. Some edge
detections and edge follow-up approaches have been developed (BRIS et al., 05, GRA, 02 et
ZEC, 05). However, the real parts often have irregularities (breaks, not homogeneity,
textures…) and the personal algorithms are not robust enough.
Another approach is thus developed, it is no more only based on images from the camera but
also on the positions of the 3D measuring machine. While an image is available, a matrix of
coordinates is calculated. Therefore, the camera moves on each one of these positions and
records the averages of the light intensities of the central pixels of the image. It results in an
image of the reality having a resolution that can reach the measuring machine resolution even
if the acquisition time increases. The resolution of the camera is only involved in the filter
size. This method also limits the aberrations due to the camera and the influence of
nonuniform lighting. The coordinates are as well as possible chosen in order to constitute
several segments perpendicular to the edge. On each one of these segments, a point of the
edge is estimated by interpolation according to a threshold experimentally chosen. All the
memorized points are distributed around a line representative of an edge.
Line 2
Line 1 Line 3
Fig.6. Measurement examples.
326
8. Measurement uncertainties.
The main sources of uncertainties come from the measuring machine, the camera (non
linearity, perspective error due to the thickness of the object…), the method, the operator, the
environment and the material.
The total standard deviation is estimated at:
(u ) + (u ) + ( uméthode ) + ( ubruit )
2 2 2 2
u= perspective calibration = 1.965 ≈ 2µ m (eq. 1)
In our case, the values are decreased by 3 µ m because of the systematic errors due to the
view and the method used.
Côté
considéré
9. Results
7.006000
4 µm 6.996000
Parameters: 6.994000
6 segments. 6.992000
n u mé r o d e la m e s u r e
The results are coherent with the theory. The values are well dispersed around the average
value in the interval of expanded uncertainty.
327
For measurements of very thin parts, the expanded uncertainty would be only about 2.6 µ m
while it would be impossible to measure with a classical probe.
10. Conclusion.
Measurements by artificial vision could have been done on a 3D measuring machine. The
principle of measurement is different from the one with a classical probe because it is based
on the light intensity. The utilisation of a camera allows measuring new kinds of lengths
which were not possible to measure before.
However, it is only possible to have good results if the edges are characterized by an
important light intensity variation. In other words, when there is a bad lighting or when the
edges are not discernible, the measurement by artificial vision with the camera is not very
efficient. The worked out techniques for the follow-ups of the edges on static images are not
robust enough, another means of edge follow-ups combining the camera and the 3D
measuring machine thus was thought out and carried out. Applied to parts like gauge of 7
mm, the measurement by artificial vision combined with the 3D measuring machine offers
results which are better than those expected in the beginning of the study. For a probability of
95%, expanded uncertainty can be lower than the resolution of the camera which is about 10
microns.
So far, it is possible to measure lengths between two rectilinear edges and to locate points of
an unspecified edge in any plane parallel with the verification table. In the will to increase the
possibilities of the measuring machine, it will be necessary to enable him to take measures in
different planes. In fact, it will mainly consist in transformations of coordinate systems using
the matrix algebra, the program was developed in this perspective. Even if the project is in the
early stages of its development, the positive results are rather good and encourage the
development of the measurement by artificial vision on the 3D measuring machine.
11. References.
328