METHOD AND SYSTEM FOR GEOMETRY MEASUREMENT

Abstract: Method and system for determination of relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders or spheres, or combined objects like robot arms or other industrial production equipment, based on the use of one or more cameras based on electro-optical sensors, in combination with permanently mounted light sources, projected light spots, illuminated reflectors, or probing tools having light sources or reflectors attached thereto. The camera (1) is arranged to measure the projection of light spots on the cameras sensor (4) in a number of camera locations, and measurements are made such that each light source or light reflection (18; 14; 15; 16) is observed from two or more camera locations (1; 8), by the observations being registered as image coordinates relates to a camera fixed coordinate system. Based on the observed images of the light sources (14; 15; 16) or reflecting points of the measurement tool, the corresponding image coordinates of the touch point of the measurement tool are calculated in the camera fixed coordinate system. Among the measurement points there is a minimum of two points at a known mutual separation distance to be used for determination of correct length scale. The positions of the individual points relative to an arbitrary coordinate system are calculated by bundle adjustment, and where the computational method also comprises a mathematical modelling of the optical properties of the cameras to compensate for distortion errors in the camera lens, and where the mathematical descriptions of geometrical objects are based on analysis of a number of points on the object.

Description: METHOD AND SYSTEM FOR GEOMETRY MEASUREMENT. The present invention relates to a method, as well as a system for determination of relative position and/or orientation of a number of points or geometrical objects as planes, lines, holes, cylinders or spheres, or combined objects as robot arms or other industrial production equipment, based on the use of one or multiple cameras based on electro optical sensors in combination to fixed mounted light sources, projected light spots, illuminated reflectors or probing tools having light sources or reflectors attached to it. The present patent application describes a further development of the inventions described by the inventors in Norwegian patents 165 046, 164 946 and 169 799, as well as patent application 913994. Norwegian patent 165 046 describes a system based on two high resolution electro optical cameras which are calibrated for angle measurements, methods for such calibration, a system for geometry measurements based on the cameras, as well as application of this system. Norwegian patent 164 946 describes systems for measurements of points on a surface, by projecting a pattern of light spots onto the surface, and by determining the coordinates for these light spots by the use of electro optical sensors. Norwegian patent 169 799 describes tools for marking points on a surface, to be measured by the use of electro optical cameras. Norwegian patent application 913994 describes a system for measurement of spatial coordinates by the use of a single electro optical cameras as well as tools having light source or reflecting points attached to it. The system that is described in Norwegian patent 165 046 has limitations related to the fact that each individual point is registered simultaneous by two cameras. That leads to requirements for simultaneous free visibility in directions to both cameras. Furthermore the system is based on determination of the position of the cameras by a separate procedure before coordinate measurements can be started. The system accuracy is basically determined by the resolution of the sensor. This means that the accuracy is limited in large volumes. The system described in Norwegian patent application 913994 functions essentially as a theodolite, in that spatial directions are determined with high accuracy. In addition the distance to the measurement tool is determined with moderate accuracy. As a stand alone system it gives limited accuracy in distance determination, which means that the number of possible applications is limited. The present patent application describes a further development of method and means for coordinate measurement that gives full flexibility with respect to: - the number of cameras, whether the cameras are calibrated for direction measurements or not, the methods used for marking the measurement points, where, and in how many positions the cameras are located during the measurement process, - which methods that are used to relate the measurements to a selected coordinate system. By the use of this further development full flexibility to optimize the system and the method with respect to the measurement task in question, and to questions like accuracy requirements and exterior limitations like visuality limitations is achieved. Regarding applications, the system is competing to existing technology like theodolites and conventional photogrammetry, as well as mechanical coordinate measurement machines. Coordinate measuring machines have strongly limited functionality, as they are not portable and have a limited measurement volume. Large machines are very expensive, have low accuracy, and require dedicated rooms due to the need for stability and temperature control. Theodolites have significant limitations related to operator dependencies (in conventional instruments an operator is aiming towards the measurement point through the monocular of the theodolite), time consuming measurements, and to strong requirement for free visibility between the measurement point and the instru¬ ment. In addition theodolites must be levelled accurately. Conventional photogrammetry is limited to the use of film based cameras. The measurement points are marked by attaching reflecting measurement elements called targets, to the object. It is not possible to measure geometrical objects like holes, planes, spheres, lines, etc. without marking these by the use of targets. Calculation of spatial coordinates based on theodolite measurements or conventional photogrammetry is done by iterative methods. Both measurement methods are two dimensional, i.e. they give the direction towards the measurement points only. Estimated spatial coordinates for a number of the measurement points are needed as initial values for the iterative calculations. The system described in Norwegian patent application 913994 gives spatial coordinates, which gives sufficiently accurate initial values for the similar calculations related to the present method and system. Figure 1 illustrates camera and imaging of a light spot on the sensor of the camera. Figure 2 illustrates the principle of coordinate determination from the imaging of a common point in two or more cameras. Figure 3 illustrates the configuration of a complete measurement system. Norwegian patent no. 165 046 describes a fully automatic and accurately calibrated angle sensor based on CCD camera. Such a camera 1 , as shown in figure 1 , comprises essentially a camera house 2, a lens unit 3, and a two dimensional sensor matrix 4. The lens unit is an objective with standard, spherical optics. The angle sensor is developed to measure the direction towards points being active light sources or points illuminated by active light sources. This gives a secure identification of the measurement points, and hence enables a fully automatic use, as well as gives a very high signal to noise ratio. High accuracy is furthermore ensured by the use of accurate procedure for calibration of the angle sensor. This is described in Norwegian patent 165 046. The measurement principle is illustrated in figure 2. The coordinates for a number of points 5 shall be determined relative to a spatial coordinate system X, Y, Z. This is done by locating two or more cameras 4 in arbitrary and initially unknown positions and orientations relative to the same coordinate system. The spatial direction to a point 5 is determined by registering its projection 6 through the projection center 7 of the lens unit as shown in figure 1 B. The projection is registered as the image coordinates x, y of the point image relative to a camera fixed coordinate system as illustrated in figure 2. The calculation of the unknown spatial coordinates is based on setting up the equations for the projections for a number of cameras. This calculation may also include determination of the position and orientation of the cameras, as well as including parameters for correction of possible lens distortions. This means that even non-calibrated cameras may be applied. Each additional point that is introduced in the calculation gives three additional unknown coordinates X, Y, Z to be determined, at the same time as 2 x n new observations are included in the calculation (n is the number of camera locations). The calculation requires the distance of at least one distance between two points to be known to give correct scale information to the system of equations. The method of calculation is based on minimizing errors (least squares method), such that redundant information is used. The necessary mathematical foundation is found in H.M. Kamara (Ed.): Non-topographic photogrammetry. Second Edition, 1987, page 37-55. Generally, if the number of unknown parameters is increased, a similarly increased number of observations as additional points or additional cameras/camera locations is required. Figure 3 illustrates a system for spatial geometry measurements based on one or multiple cameras 1 , 8, a system control unit 9 consisting of data processor 10, camera control unit 11 and light source control unit 12. The system can be attached to different light sources for marking points: - Reference bar 14 comprising a number of light emitting diodes at known mutual separation distances. Light pen 15, which is a probing tool described in Swedish patent no. 456454, possibly having exchangeable tools as described in Norwegian patent no. 169 799. Light emitting diodes and/or lasers 16. Light emitting diodes are attached permanently in the measurement field to be imaged from multiple camera locations. Lasers are used to project fixed light spots onto the measurement object. Light emitting diodes / lasers are connected to the system via a connector unit 17. Reflecting points 18 which are illuminated by a lamp 19. Driving and control of the light sources is done by the control unit 12 to ensure optimum signal to noise ratio, and to synchronize to the cameras via the camera control unit 11. The systems data processor 10 is doing the analysis of measurement data from the cameras. The data processing mainly consist of: control of imaging time and exposure time to optimize the signal to noise ratio, identification of the individual light sources, i.e. which point in the image that corresponds to which light source, calculation of the spatial direction for each individual light source from the image information, calculation of spatial coordinates for the probing tool (light pen). The user is communicating with the system via an operator terminal 13. In addition to the observations from the cameras, the method of calculation requires one or more known distances to give the correct scale to the calculated spatial coordinates. This can be achieved by the use of the specially designed reference bar 14, or by measuring points in a known separation distance. The length of the reference bar or the known distances may be typed in by the operator at the terminal 13. The present invention proposes to apply one or more cameras in combination with one or more types of light sources or illuminated reflecting points to achieve high flexibility to solve various measurement problems with respect to the dimension of the measurement volume, - the accessibility to the measurement volume, definition of coordinate systems, accuracy requirements, available time for measurements, frequency of repeated controls, combination of different types of cameras and instruments for direction measurements. The characteristic features of the invention are described in the accompanying patent claims, as well as in the following description of non-limiting examples of use of the invention, with reference to the enclosed drawings. Figure 4 illustrates the further developed principle for the use of the probing tool "light pen". Figure 5 illustrates how to establish and measure a network of help reference points. Figure 6 illustrates measurement of a number of geometrical objects based on a number of help reference points. Figure 7 illustrates an application based on a transportable reference structure / pallet. Figure 8 illustrates a permanent measurement station based on a reference structure. The computation method that is described above and that is related to figure 2, is based on the possibility of seeing the same point from a number of different camera positions. Generally light sources, generated by direct emission from a light emitting diode or indirect as a reflection from a reflecting material or a projected laser spot, can be seen from "one side" only. Optimum accuracy in the computation method is achieved if the directions of observations are uniformly distributed. This is achieved by the light pen. The light pen 15 that by itself is known from Norwegian patent application 913994, is in this context used differently as only the direction to the touch point of the light pen is to be registered and to be used for coordinate determination. The principle for use of the light pen is shown in figure 4. The light pen is registered on the sensor as a number of image spots 6 corresponding to the light emitting diodes 5. The direction to the light pen should be related to a touch point 20. This corresponds to an image point 21 on the sensor. As the sensor is registering the image of light sources only, this will be a virtual image spot. The image coordinates of the image point 21 will be calculated from the registered image coordinates for each light source, as well the knowledge of the mutual position of the light sources 5 and the touch point 20 in a probe fixed, local coordinate system. The calculation methods are further described in Norwegian patent application 913994. If the touch point of the light pen is kept in a fixed position, the light pen itself can be rotated to be aimed towards the different camera positions in question. Hence, this gives the necessary geometry for the computation method. The fact that the light pen has a number of light emitting diodes makes the accuracy in determining the projection of the touch point better than for a single light emitting diode. Figure 5 illustrates the use of the system to determine the geometry of an object 22. The positions of a number of points or geometrical objects (holes, planes, cylinders etc.), in the figure marked with capital letters A - C, are to be determined with high accuracy relative to the resolution of the cameras, the size of the measurement volume, its accessibility etc. The method consist of distributing a number of help reference points (in the figure marked with lower case letters a - u) all over the measurement volume. These can be light emitting diodes, projected laser spots, reflecting points or marked points that can be touched with the light pen. By registering the projection of these points on the camera sensors for a number of different camera locations, this will give data for calculation of the mutual position of all points, as described above with reference to figure 2. The computation is flexible with respect to: the number of cameras or camera locations, the number of points observed in each camera location (a minimum number is required, depending on the number of camera parameters to be deter- mined), the number of observations for each individual point. In general the accuracy is improved if the number of observations (points) in each camera location is increased, and if the number of camera locations is increased. A single camera or multiple cameras can be used. If the cameras are not calibrated with respect to the imaging properties of the lens, it is advantageous to have as few different cameras as possible. If, on the other hand, it is necessary to do the measurements fast, the data acquisition can be made efficient by using multiple, calibrated cameras in fixed locations, and by using as few locations and points as possible. The relation to an object fixed coordinate system requires some points that are defining the coordinate system by their coordinate values being known along one or more of the coordinate axes, or by doing a best fit of defined values to the calculated positions. Figure 6 illustrates how to start from a number of points in known positions relative to an object fixed coordinate system and then to measure additional points within or outside the object by the use of two or more cameras. If a network of points is avai¬ lable, as shown by letters a - u, it is possible by the use of only two cameras 1 ,8 to locate these such that they are seeing not more than the area of interest. At first the position and orientation of the cameras relative to the object fixed coordinate system are determined by registering the projection of the known points a, b, c. The coordinates of these points relative to the coordinate system X, Y are known from a measurement as described above with reference to figure 5. This method gives a quick measurement, having a high accuracy. An application of this method is illustrated in figure 7 a, b, which as an example may describe a welding station in a production line for car bodies as shown in figure 8 a.b. The under part of the car body is based on a fixture 24, while the side parts of the car body are held in place by fixtures 23. The mount of the car body parts to the fixtures are made by the use of steering pins and clamping mechanisms 27. These are controlling the location of each different component during the welding process, and have to be in the correct location to ensure correct shape of the assembled car body. Control of each individual object is efficiently made by the method described above (figure 6) by having a number of fixed help reference points distributed all over the whole station. An alternate solution is shown in figure 7 a, where the help reference points a - u are attached to a portable jig 24 that can be moved into the station when a measurement is to be made. The location of this jig is in such a case controlled by the main references 25, 26 of the station (e.g. steering pins) that are holding the jig in a fixed position. The positions and orientations of the two cameras 1 , 8 relative to the object fixed coordinate system are first determined by registering the directions towards the known points a - u. The advantages of this method is that each individual station in the whole production line is based on a single jig with a fixed and well known geometry, such that a unique, accurate geometry is ensured all along the production line. Hence, the error propagation through the production line is kept to a minimum. Furthermore, it will not be necessary to have an extensive network of points in each individual station. Figure 9 shows another application of the same principle. In this case the reference points are permanently mounted in a structure 28, while the object 29 to be measured is transported into this structure. As an example this method can be applied in a production line based on transportable jigs for transport of components into the welding stations. Control of these jigs on a regular basis can be done in fixed measurement stations. Figure 10 shows an example of this, where the object 30 is an aircraft that is brought to a measurement station where the reference points are placed on the floor or in a surrounding fixture. The system known per se shown in figure 3 must, to cover the methods described above, be extended with respect to the data processor 10, the camera control unit 11 and the light source control unit 12. In this context it is required that these units shall be able to take into account: different types and number of cameras, different types and number of light sources and help tools, different calculation methods depending on the configuration of cameras and light sources that are used and which type of known information (defined coordinate values in a local coordinate system or given distances between points) that should be included in the calculation. Some examples of applications are described above. These shall be considered as examples only, as a large number of different other objects may be measured by the same methods and the same system. This includes large as well as small objects within automotive, aerospace or other mechanical industry.

Claims: 12 P a t e n t c l a i m s: 1. Method for determination of relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders or spheres, or combined objects like robot arms or other industrial production equipment, based on the use of one or more cameras based on electro optical sensors, in combination with permanently mounted light sources, projected light spots, illuminated reflectors, or probing tools having light sources or reflectors attached thereto, c h a r a c t e r i z e d i n that said camera is mounted for measurement of the projection of light spots on the camera sensor in a number of camera locations, - that measurements are made such that each light source or light reflection is observed from two or more camera locations, and that the observations are registered as image coordinates related to a camera fixed coordinate system, that calculation of the image coordinates of the image of the touch point of the measurement tool in the camera fixed coordinate system, is based on the corresponding observed images of the light sources or reflecting points of the measurement tool, that there among the relevant measurement points are at least two points in a known mutual separation distance to be used for determination of a correct length scale. that the positions of the individual points relative to an arbitrary spatial coordinate system are calculated by a bundle adjustment, where the computa- tional method also comprises a mathematical modelling of the optical properties of the cameras to compensate for distortion errors in the camera lens, and that the mathematical description of geometrical objects are based on analysis of a number of points on the object. 2. Method for determination of position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in claim 1. relative to a defined coordinate system, c h a r a c t e r i z e d i n - that a minimum of three points have one or more of its coordinate values known relative to said coordinate system, such that a minimum of six coordinate values are known and distributed such that three values are defined relative to one coordinate axis, two relative to a second axis, and one relative to a third axis, and that these known coordinate values are used to calculate the position and orientation of all other points and geometrical objects relative to this coordinate system. 3. Method for determination of the relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in claim 1 or 2, c h a r a c t e r i z e d i n that the individual light spots are registered simultaneously by two or more cameras, and hence to allow the light spots to move during measurements and/or to achieve faster data acquisition. 4. Method for determination of the relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in anyone of claims 1 -3, characterized in that a number of measurement points being active light sources, reflecting points or points to be measured by the use of a measurement tool having light sources or reflecting points attached to it, are arranged as help reference points to increase the number of points and hence to increase the accuracy in the calculation of position and orientation of all points. 5. Method for determination of the relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in anyone of claims 1 -3, characterized in that a reference structure is arranged inside the measurement volume and that to said reference structure being attached a number of active light sources, re¬ flecting points or points to be measured by the use of a measurement tool having light sources or reflecting points attached to it, and with known coordinates in a well defined coordinate system, and - that measurement and calculation of coordinates for additional points is based on measurement of a selection of points on said reference structure together with these additional points. 6. Method for determination of the relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in anyone of claims 1 -3, characterized in - that the measurement volume is surrounded by a reference structure having attached thereto a number of active light sources, reflecting points or points to be measured by the use of a measurement tool having light sources or re- fleeting points attached to it, and with known coordinates in a well defined coordinate system, and that measurement and calculation of coordinates for points on an actual object is based on the object being position within said reference structure, and measurement of a selection of points on said reference structure together with these additional points. 7. System for determination of relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders or spheres, or combined objects like robot arms or other industrial production equipment, based on the used of one or more cameras based on electro optical sensors, in combination with permanently mounted light sources, projected light spots, illuminated reflectors, or probing tools having light sources or reflectors attached to it, c h a r a c t e r i z e d i n means for flexible data acquisition that allows said camera to be mounted for measurement of the projection of light spots on the camera sensor in a number of camera locations, and where the data acquisition is made such that each light source or light reflection is observed from two or more camera locations, and that the observations are registered as image coordinates related to a camera fixed coordinate system, means for calculation of the image coordinates of the image of the touch point of the measurement tool in the camera fixed coordinate system, based on the corresponding observed images of the light sources or reflecting points of the measurement tool, means for giving scale information to the system, said means being a bar to which there is attached a minimum of two light sources, reflecting points or points to be measured by the use of said measurement tools, at known mutual separation distance, means for calculation of the position of the individual points relative to an arbitrary spatial coordinate system by bundle adjustment, and where the computational method also comprises the optical properties of the cameras to compensate for distortion errors in the camera lens, means for mathematical description of geometrical objects based on analysis of a number of points on the object. 8. System for determination of position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in claim 7, relative to a defined coordinate system, c h a r a c t e r i z e d i n means based on a minimum of three points having one or more of its coordi¬ nate values known relative to said coordinate system, such that a minimum of six coordinate values are known and distributed such that three values are defined relative to one coordinate axis, two relative to a second axis, and one relative to a third axis, and for using these known coordinate values to calculate the position and orientation of all other points and geometrical objects relative to this coordinate system. 9. System for determination of the relative position and/or orientation of a number of points or geometrical objects like planes, lines, holes, cylinders, spheres etc. as claimed in claim 7 or 8, c h a r a c t e r i z e d i n means for synchronizing the activation of the individual light spots and the registering by two or more cameras, to allow the light spots to move during measurements and/or to achieve faster data acquisition.

Inventors: PETTERSEN ALF, ROETVOLD OEYVIND, PETTERSEN, ALF, ROETVOLD, OEYVIND
Applicants: METRONOR AS, PETTERSEN ALF, ROETVOLD OEYVIND, PETTERSEN, ALF, ROETVOLD, OEYVIND
Application year: 1994
Main classification: G01B11
IPC codes: G01B11, G01S5, G01S11