Line-shaped laser vertical rotation type three-dimensional appearance measuring apparatus and method thereof

08-07-2009 дата публикации
Номер:
CN0101476881A
Принадлежит: Tsinghua University
Контакты:
Номер заявки: 00-10-20090946
Дата заявки: 23-01-2009

[1]

Technical Field

[2]

The invention relates to a three-dimensional topography of an object measuring device and method, in particular relates to a kind of a shaped laser vertical rotation type three-dimensional topography measurement device and method thereof, the invention belongs to the technical field of computer vision measurement.

[3]

Background Art

[4]

Measurement technique of three-dimensional topography of the object is very important. In the manufacturing or maintenance process of the product with irregular curved surface, in particular some is not convenient or non-contact measurement of the product of the manual measurement directly and easily, the need for three-dimensional topography measurement. A word line laser with topography measurement device of the camera not only realized with quick, accurate, high resolution, high noise immunity and the like, but also this kind of sensor is simple in construction, economic, easy to realize, has been applied in practice.

[5]

Traditional line structure light measuring device the majority of the straight line moving scanning, i.e. a word line laser is placed on the linear-motion mechanism X axis one-dimensional translating, so that one word linear laser stripe (that is, "light knife") along the direction vertical to the stripe of the mobile, referred to as the parallel scanning, to the object so as to realize the measurement of the entire upper surface. The method for measuring the parallel scanning of the serious shortage way: is fixed in the direction to close to the direction of the stripe of the edge information of the measuring accuracy is poor, as measured by the included angle between the edge of the laser fringe is reduced, the deterioration of measuring accuracy is gradually, in parallel to the stripe direction of the edge of the step can be detected almost no. For example, a multi-light knife quasi full-field non-contact three-dimensional profile measuring instrument, such as China utility model Patent CN2463784, including multi-light knife laser, camera and translatory motion device, because the device a word can be one-dimensional linear laser stripe although the direction of translation but is fixed, close to the LED to the edge line stripe direction of the measuring accuracy is poor.

[6]

There are also does not adopt the X axis one-dimensional moving mechanism, and a horizontal axis rotating mechanism to realize scanning horizontal rotation of the scanning device. The device in order to approximately parallel the surface of an object to realize the straight line as the rotary shaft to a parallel scanning of the linear laser light, the device is still a with the aforementioned straight line moving scanning measurement method similar to the parallel scan mode, the deficiency of the have the same: to close to the edge information of the stripe direction of the large error is generated, or even detection do not come out.

[7]

A rotary scanning measuring instrument, such as the Chinese invention Patent CN1308653, comprises the three-dimensional coordinate motion device, digital control of a rotary table and wire structure of the optical scanning probe, numerical control rotary adventist the X axis and the Y axis and are inclined for an angle Z axis, line-structure light scanning probe is mounted on the Z axis, through the four-shaft motion to realize three-dimensional scanning. This device has the disadvantages that: the device must be placed on the object to be measured on the digital control rotary table, by numerical control rotary platform drives the object rotate, so as to realize the different angle direction of the surface of the object of measurement, the measurement mode is not suitable for the measurement of large size objects: manufacturing can bear a heavy load and the large size of the object is very expensive cost of the numerical control rotary table, hoisting is not easy, on the other hand, the device can not be put in the inside of the shaped large-size object to carry out measurement.

[8]

For example, a power station is turbine blade 4 meters wide, 4 meters long, several hundred millimeters thick, during the manufacturing process of the blade in order to use the above-mentioned method for measuring surface topography of the blades a corresponding need to make the great numerical control turntable, this is not very appropriate; in addition, after many years of operation of the water turbine after the surface of the blade need to re-measure the topography of the corresponding repair and maintenance operation carried out, at this moment, great on the runner in a dozen blades very huge volume of the whole, cannot adopt the above-mentioned method to measure, also cannot be between the above-mentioned device is placed to the blade surface of the blade to carry out measurement.

[9]

Also the surface of the optical structure or grating laser stripe measuring device, the structure is complicated, the cost is high. For example, a portable surface structure optical reverse measuring system (Chinese invention Patent CN1971205), including 6 a mechanical arm of a rotating joint, raster scan head and a binocular camera. This device has the disadvantages that: the device adopts the raster scanning head the structure is complicated, the cost is high; a plurality of rotary joint of the mechanical arm structure is complicated, the cost is high, due to the many moving parts at the same time, a larger measurement error is introduced, it is difficult to guarantee the measuring accuracy; the high cost of a binocular camera.

[10]

Content of the invention

[11]

The purpose of the invention is to overcome the deficiencies of the prior art, design a shaped laser vertical rotation type three-dimensional topography measurement device and the corresponding measurement method, the measuring device and method can realize measurement of the three-dimensional topography of the surface of the object, can the detected edge information in various directions, can be no blind scanning detection coincides with the surface of the measured object, to avoid traditional method of assembly by the rotation of the object, the structure is simple, light weight, low cost, high measuring precision, not only can be used as a fixing device, can also be installed in the mobile robot, the surface detection of the objects with different sizes.

[12]

The invention adopts the following technical scheme:

[13]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that comprises a base, a camera, a word line laser, motor, transmission mechanism, the rotating shaft, the connecting piece, angle measuring element, conversion circuit, a motor drive circuit and a controller; wherein said motor is fixedly connected to the base, the arranged in the base of the rotating shaft, the output shaft of the motor through the transmission mechanism is connected with the rotating shaft, the camera, a word line laser and the rotation shaft through the connecting piece is fixedly connected with the; angle measuring element is arranged the output shaft of the electric motor, transmission mechanism or the output shaft of the rotating shaft; said a word line of the laser emitted by the laser is referred to as the plane of the laser plane, the center line of the rotary shaft in the laser plane; said camera through the Image acquisition card or the USB interface is connected with the controller, the motor through the motor drive circuit is connected with the controller, the angle of the measuring element is connected with a controller through a switching circuit; and the center line of the rotation axis of the lens of the camera optical center of the observation plane of the laser plane between the included angle of between 30 °-150 ° ; the the center line of the rotation axis of the video camera in the included angle between the optical axis of the lens between 30-60 ° ; the a word line laser onto the surface of the object measured by the laser stripe in the observation range of the camera.

[14]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the angle measuring component adopts the angle detector, the angular displacement sensor, a potentiometer, an encoder or an optical disc.

[15]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that said controller uses the computer, single-chip microcomputer, DSP or microcontroller.

[16]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the transmission mechanism of the gear transmission mechanism, gear rack drive mechanism, with wheel transmission mechanism, chain wheel transmission mechanism, tendon rope transmission mechanism, lead screw and nut transmission mechanism, the connecting rod driving mechanism, the worm and gear transmission mechanism, the cam drive mechanism or a ratchet wheel drive mechanism of one kind or several kinds of combined.

[17]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the camera using CCD camera or CMOS camera.

[18]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the the center line of the rotation axis a of the camera optical center of the lens with the observation plane of the laser plane between the included angle of between 65 °-115 ° ; the center line of the rotation axis of the lens of the video camera in the included angle between the optical axis between 40-50 °.

[19]

A word of the invention method for measuring laser vertically rotary three-dimensional shape, characterized in that comprises the following steps:

[20]

(A) building Image coordinate system, such as target surface coordinate system, video camera coordinate system, a base coordinate system and the laser coordinate system, and calibration two of them the coordinate transformation relations between two;

[21]

(B) through the calibration experiment, the Image coordinate system, such as target surface coordinate system, video camera coordinate system, a base coordinate system and the laser coordinate system of the coordinate transformation relations between;

[22]

(C) said a word line of the laser emitted by the laser is referred to as the plane of the laser plane, through the calibration experiment to obtain the laser plane in the laser coordinate system of the plane equation, to obtain the coordinate conversion in the laser plane of a plane equation under the camera coordinate system;

[23]

(D) a motor driving a rotary shaft rotates to a certain angle position;

[24]

(E) the angle of the angle-measuring element is measured; a word line laser sends out a word linear laser light is formed on the surface of the measured object to a stripe, the stripe containing the camera of the Image the surface of the object;

[25]

(F) Image processing Image stripe point j on the Image coordinate system of the coordinate of the; j point coordinate conversion by the coordinate system of the coordinate of the target; and j coordinate converted i determining the imaging of point homologue of straight line under the camera coordinate system of the linear equation, combination (c) step of the laser plane equation, to obtain imaging linear with the laser plane i the intersection of the coordinate under the camera coordinate system; i point coordinate conversion by the coordinate system the coordinates of the laser, coordinate conversion i point to obtain the coordinates of the coordinate system, which is the base;

[26]

(G) repeating (f) step, on the surface of the object obtained in the laser stripe of the base points of the coordinate system the coordinates of {B};

[27]

(H) motor to drive the rotating shaft rotate to the other angular position, repeating (e), (f), (g) step, is observed through the video camera and can be the laser stripe projected onto the object surface under the somewhat in the base coordinate system of the coordinate value of the, complete the measuring.

[28]

Compared with the prior art, the present invention, the effect has the following advantages and accomplish:

[29]

Because the device of the invention the projected laser stripe is a rotary scanning, traditional fixed direction effectively overcome the deficiency of the laser stripe method, can detect the edge information of the various directions, realizing high-precision measurement of the three-dimensional topography of the surface of the object; since the camera together with a word line laser rotation, always keep the relative attitude optimum posture, so as to ensure the good measuring accuracy; the center line of the rotation axis due to the linear laser plane after a word, the rotary shaft rotates one cycle, the laser stripe will not blind zone to sweep across the surface of the measured object, at the same time, simplifies the calibration and measurement process; due to the device of the invention uses a word line measuring the laser device and the camera head to rotate, to avoid the traditional method of assembly by the rotation of the object, is suitable for various size of the detection surface of the object. The device of the invention has simple structure, low cost, high measuring precision, not only can be used as a fixing device, can also be installed in the mobile robot.

[30]

Description of drawings

[31]

Figure 1 is an elevational view of the present invention provides a shaped laser vertical rotation type three-dimensional topography measurement of an embodiment of the device (angle measuring component adopts the encoder).

[32]

Figure 2 is a side view of Figure 1 the embodiment shown.

[33]

Figure 3 is a top view of Figure 1 the embodiment shown (not shown motor, the rotating shaft, some parts such as an encoder).

[34]

Figure 4 is a top view of Figure 1 the embodiment shown.

[35]

Figure 5 is a schematic diagram of the mutual relationship between coordinate system of Figure 1 the embodiment shown is located at the initial position when a calibration plane D.

[36]

Figure 6 is a schematic diagram of the mutual relations between the coordinate system of fig. 1 is shown in the embodiment of the angle θ is the position of the calibration plane D (wherein the dotted lines the initial position of the laser plane of a word line).

[37]

Figure 7 is an elevational view of the present invention provides a shaped laser vertical rotation type three-dimensional shape measuring device yet another embodiment of the (angle measuring element of a potentiometer).

[38]

Figure 8 is a schematic diagram of connecting relations of the present invention a shaped laser vertical rotation type three-dimensional topography measurement device of the controller and the motor, such as camera and the angle of the measuring element.

[39]

Figure 9 is a schematic diagram of connection relation of Figure 7 shown in the controller and the motor of the embodiment of, the camera and the angle of the measuring element, in this embodiment, the controller adopts a computer, angle measuring element of a potentiometer, conversion circuit A/D conversion circuit with the data acquisition card.

[40]

Figure 10 is use chart 1 or Figure 7 embodiment as shown in the method step of measuring.

[41]

In fig. 1 to fig. 10 in:

[42]

1 the base [...] ,   2 the camera [...] , the   3 laser [...] a word line,

[43]

4 the connecting piece [...] , the   5 motor [...] , the   6 turning on lathe rotating shaft,

[44]

7 the encoder [...] , the   8 [...] transmission mechanism, the   9 [...] speed reducer,

[45]

10 the gear 1st [...] ,   11 the 2nd gear [...] ,   14 the bearing [...] ,

[46]

16 the like of the video camera target [...] ,   17 the a word [...] linear laser,

[47]

20 the surface of the measured object by [...] ,   30 the transmission mechanism [...] ,   35 the potentiometer [...]

[48]

S-laser plane,   D-calibration plane,   H-observation plane,

[49]

L1-the center line of the rotation axis,   Oc-optical center of the lens of the video camera,

[50]

Lc-the optical axis of the lens of the video camera,

[51]

Β-observation plane H and the included angle between the laser plane S,

[52]

Φ-the center line of the rotation axis L1 with the camera the included angle between the lens optical axis,

[53]

{P}-Image coordinate system,   (u, v)-Image coordinate system the coordinates of the under,

[54]

{A}-like target surface coordinate system,   (A x,A y)-the coordinates of the coordinate system, which is like the target,

[55]

{C}-camera coordinate system,   (C X,C Y,C Z)-coordinate under the camera coordinate system,

[56]

{B}-base coordinate system,   (B X,B Y,B Z)-the coordinate system the coordinates of the base,

[57]

{L}-laser coordinate system,   (L Xi,L Yi,L Zi)-the coordinate system the coordinates of the laser.

[58]

Mode of execution

[59]

In conjuction with the following further detailed description of and embodiment of the specific structure of the present invention, the content of the working principle.

[60]

A word of the invention laser vertically rotary three-dimensional topography measurement device of one embodiment, as shown in Figure 1, Figure 2, Figure 3, Figure 4 is shown, comprises a base 1, a camera 2, a word line laser 3, a motor 5, driving mechanism 30, rotary shaft 6, the connecting piece 4, angle measuring element 7, conversion circuit, a motor drive circuit and a controller; the motor 5 is fixedly connected with the base 1 on, the rotating shaft 6 is sleeved on the base 1 in, the motor 5 through the output shaft of the transmission mechanism 30 and the rotating shaft 6 is connected, the camera 2, a word line laser 3 and the rotating shaft 6 are connected by the connecting piece 4 is fixedly connected with the; angle measuring element 7 of the motor 5 output shaft, transmission mechanism 30 or the rotating shaft of the output shaft of the 6 upper; said a word line laser 3 the plane of the laser emitted by the laser plane S referred to, the rotating shaft 6 the centerline L1 on S in the laser plane; said camera 2 through the Image acquisition card is connected with the controller, the motor 5 through the motor drive circuit is connected with the controller, the angle measuring element 7 is connected with a controller through a switching circuit; the rotating shaft 6 the centerline L1 with the camera 2 of the optical center of the lens Oc formed with H the observation plane of the included angle between the laser plane for β S 80-100 ° ; the rotating shaft 6 the centerline L1 with the camera 2 of the included angle between the optical axis of the lens the Lc between 40-50 ° ; the a word line laser onto the surface of the object measured by the laser stripe in the observation range of the camera.

[61]

A word of the invention laser vertically rotary three-dimensional topography measurement device of the controller and the motor, such as a video camera and the angle of the connection relationship of the measuring element a schematic diagram as shown in Figure 8.

[62]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the angle measuring component adopts the angle detector, the angular displacement sensor, a potentiometer or encoder.

[63]

In this embodiment, the angle of the encoder of the measuring element.

[64]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that said controller uses the computer, single-chip microcomputer, DSP or microcontroller.

[65]

In this embodiment, the controller of the industrial control computer.

[66]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that said transmission mechanism is a gear transmission mechanism, gear rack drive mechanism, with wheel transmission mechanism, chain wheel transmission mechanism, tendon rope transmission mechanism, lead screw and nut transmission mechanism, the connecting rod driving mechanism, the worm and gear transmission mechanism, the cam drive mechanism or a ratchet wheel drive mechanism of one kind or several kinds of combined.

[67]

In this embodiment, the driving mechanism 30 of the gear transmission mechanism, the driving mechanism 30 includes the reducer 9, 1st gear 10 and 2nd gear 11, the motor 5 and the output shaft of the speed reducer 9 is connected with the input shaft, a speed reducer of the 1st gear 10 is fixedly connected, 1st gear 10 and the 2nd gear 11 is meshed with each other to form a gear drive relations, 2nd gear 11 is set on the rotating shaft 6 on.

[68]

A word of the invention laser vertically rotary three-dimensional shape measuring device, characterized in that the camera using CCD camera or CMOS camera.

[69]

In this embodiment, the camera 2 of the CCD camera.

[70]

In this embodiment, the rotating shaft 6 the centerline L1 with the camera 2 of the optical center of the lens of the observation plane H forming Oc with the included angle between the laser plane for β S 80-100 ° ; the rotating shaft 6 the centerline L1 with the camera 2 of the included angle between the optical axis of the lens in φ Lc between 40-50 °.

[71]

In this embodiment, the word line laser 3 projected onto the surface of the object measured by the laser stripe distance camera 2 of the optical center of the lens Oc more than 6 times the focal length.

[72]

A word of the invention laser vertically rotary three-dimensional topography measurement device of the embodiment of another kind, as shown in Figure 7, angle measuring element of a potentiometer. Figure 8 is a schematic diagram of connection relation of Figure 7 shown in the controller and the motor of the embodiment of, the camera and the angle of the measuring element, in this embodiment, the controller adopts a computer, angle measuring element of a potentiometer, conversion circuit A/D conversion circuit with the data acquisition card.

[73]

use chart 1 or Figure 7 shown in the method for measuring the embodiment, as shown in Figure 9, comprises the following steps:

[74]

(A) establishment of the Image coordinate system {P}, {A} coordinate system as the target, the camera coordinate system {C}, a base coordinate system and laser coordinate system {B} {L};

[75]

(B) through the calibration experiment, to obtain the Image coordinate system {P}, {A} coordinate system as the target, the camera coordinate system {C}, a base coordinate system and laser coordinate system {B} {L} the coordinate transformation relations between;

[76]

(C) said one word line laser 3 the laser emitted by the laser plane as the plane of the H, through the calibration experiment to obtain the laser plane H {L} in the laser coordinate system of the plane equation, coordinate conversion of the laser plane H by the camera coordinate system {C} equation of the plane of the;

[77]

(D) a motor 5 driving the rotating shaft 6 is rotated to the position of a certain angle (such as angle position θ);

[78]

(E) through the angle measuring element 7 of the angle values measured; a word line laser 3 emits a word linear laser light is formed on the surface of the measured object to a stripe, camera 2 of the stripe containing the shot Image on the object surface;

[79]

(F) Image processing Image stripe point j on the Image coordinate system of the coordinate of the {P} (uj, vj); by coordinate conversion target point j of the coordinate system the coordinates of {A} (A xj,A yj); coordinate conversion point j with the counterpart obtained i determined point imaging linear Li in the camera coordinate system {C} the straight-line equation of the, combination (c) step of the laser plane equation, imaging the straight line and by the intersection of the laser plane i the camera coordinate system the coordinates of {C} (C Xi,C Yi,C Zi), i point coordinate conversion obtained in the laser coordinate system the coordinates of {L} under (L Xi,L Yi,L Zi), i coordinate conversion by the base point of the coordinate system the coordinates of {B} (B Xi,B Yi,B Zi);

[80]

(G) repeating (f) step, to obtain on the surface of the object points in the laser stripe (according to the accuracy requirement, a certain spacing distance a point) in the base coordinate system the coordinates of the {B};

[81]

(H) motor 5 driving the rotating shaft 6 to rotate to the other angular position, repeating (e), (f), (g) step, is observed through the video camera and can be the laser stripe projected onto the object surface under the somewhat in the base coordinate system of the coordinate value of the, complete the measuring.

[82]

Detailed further below use chart 1 or Figure 7 shown in the method for measuring the embodiment.

[83]

(A) according to the following method to establish the Image coordinate system {P}, {A} coordinate system as the target, the camera coordinate system {C}, {W} base coordinate system and laser coordinate system {L}, coordinate system a schematic diagram as shown in Figure 5 and Figure 6.

[84]

(A1) the establishment of the Image coordinate system {P}: the camera 2 defined on the photographed Image with a like target surface 16 fixedly connected with the two-dimensional rectangular coordinate system, referred to as the Image coordinate system {P}, whose origin Op the upper left corner of the Image, referred to as shaft x u shaft thereof, the right horizontally in a direction, called v shaft y shaft thereof, vertical downward direction, sitting for said (u, v), respectively and u v the pixel point in the Image and the number of number, the unit is a pixel.

[85]

(A2) establishment of a like target surface coordinate system {A}: camera 2 the optical axis of lens Lc and a target surface 16 the crossingpoint Oa point referred to as the picture center, to Oa to initial point, in the direction of shaft is u xa-axis positive direction, the direction is in the axis is positive to v ya-axis positive direction, as with the creation of a target face 16 of a two-dimensional rectangular coordinate system is, as the target referred to as {A} coordinate system.

[86]

(A3) establishment of a camera coordinate system {C}: to camera 2 of the optical center of the lens Oc as the origin, to the optical axis of the lens of the camera Lc to Zc shaft, to camera 2 for viewing the front side Zc direction, to xb shaft is positive direction is Xc shaft is positive direction, to yb shaft is positive direction is Yc shaft is positive direction, with the creation of a video camera 2 of the three-dimensional rectangular coordinate system is fixed, known as the camera coordinate system {C}.

[87]

(A4) establishing a base coordinate system {B}: with the creation of a base 1 of the three-dimensional rectangular coordinate system is fixed, known as the base coordinate system {B}, to the rotating shaft 6 the centerline L1 to Zb shaft, the surface of the object from the measured 20 is directed to a word line laser 3 to the direction of Zb shaft is positive direction.

[88]

The original point Ob, Xb and Yb determination method is as follows: as shown in Figure 5, is placed a plane D referred to as calibration plane, the distance of d laser printing, such as a square grid, placed in on the calibration plane D, a word line laser 3 projected laser in the plane of the word to form a linear laser stripe 17 ; adjusting calibration plane D such that when the rotating shaft 6 is rotated in the obtained Image from the camera in the word linear laser stripe 17 {P} in the Image coordinate system always in the same position of the, plane D note at this moment has been perpendicular to the rotating shaft 6 of the center line.

[89]

In the device is in the 0° position, that is, angle measuring element 7 measured rotating shaft 6 is the angle of rotation of the the 0 °, to plane D the axis of rotation 6 as the origin the intersection of Ob, origin Ob that is, the rotating shaft 6 in the plane of rotation of the laser to form different projected D the laser stripe of the intersection of the direction, of the linear laser light in a plane for the stripe on D Xb shaft, a hidden waist belt are direction is positive direction, the right for Zb and Xb determining Yb shaft.

[90]

(A5) establishing a laser coordinate system {L} : {L} laser coordinate system is fixedly connected to the laser; when the device is in the 0° position, laser coordinate system with the base coordinate system {L} with {L}; θ when the device is located at the angle position, that is, angle measuring element 7 measured rotating shaft 6 to the rotation angle of the angle θ, as shown in Figure 6, base coordinate system {B} around its Zb shaft rotates to a new coordinate system generated by the angle θ is to laser coordinate system {L}.

[91]

(B) according to the following method calibration Image coordinate system {P}, {A} coordinate system as the target, the camera coordinate system {C}, a base coordinate system and laser coordinate system {B} {L} the coordinate transformation relations between.

[92]

(B1) with the Image coordinate system {P} {A} coordinate system as the target surface is the relationship between:

[93]

xjA y j A 1 = k u 0 - u 0 0 k v - v 0 0 0 1 u j v j 1 = K u j v j 1 ,    ( Formula 1)

[94]

In the formula, ku, kv are respectively like target surface 16 a of the pixel v u shaft and along the length of the axial direction, the unit is mm, ku, kv is provided by the camera manufacturer of the camera an important parameter. (u0, v0) to the camera 2 to the optical axis of lens Lc and a target surface 16 the crossingpoint Oa in the Image coordinate system the coordinates of the {P}, (u0, v0) can be obtained by the Image center calibration experiment. Integrated, matrix representative of K relative to the Image coordinate system {P} {A} target coordinate system as the homogeneous coordinates transformation matrix, the camera internal parameter K is a fixed value determined by the prior calibration experiments, (A xj,A yj) i a certain point corresponding to the representative of the camera as the target face 16 as Image point on the j target coordinate system the coordinates of {A}, (uj, vj) representative point j in the Image coordinate system the coordinates of {P}.

[95]

(B2) like target surface coordinate system to the camera coordinate system {A} relationship to the {C}:

[96]

ZiC x j A y j A 1 = f 0 0 0 0 f 0 0 0 0 1 0 X i C Y i C Z i C 1 = F X i A Y i C Z i C 1 ,    ( Formula 2)

[97]

In the formula, f to the camera 2 to the lens focal length, f is a known fixed value, (C Xi,C Yi,C Zi) representative i a certain point in the camera coordinate system the coordinates of {C};

[98]

(B3) camera coordinate system {C} with the laser coordinate system in relationship to the {L}:

[99]

XiC Y i C Z i C 1 = R 11 R 12 R 13 X L C R 21 R 22 R 23 Y L C R 31 R 32 R 33 Z L C 0 0 0 1 X i L Y i L Z i L 1 = T L C X i L Y i L Z i L 1 ,    ( Formula 3)

[100]

Or expressed as:

[101]

XiL Y i L Z i L 1 = T C L X i C Y i C Z i C 1 = ( T L C ) - 1 X i C Y i C Z i C 1 = t 11 t 12 t 13 t 14 t 21 t 22 t 23 t 24 t 31 t 32 t 33 t 34 0 0 0 1 X i C Y i C Z i C 1    ( Formula 4)

[102]

In the formula, (L Xi,L Yi,L Zi) representative i point in the laser coordinate system the coordinates of {L}, (C XL,C YL,C ZL) representative laser coordinate system, the origin of the {L} OL the camera coordinate system the coordinates of {C}.

[103]

In the formula, matrix R11R12R13R21R22R23R31R32R33Representative laser coordinate system to the camera coordinate system {L} {C} attitude transformation matrix,C TL representative laser coordinate system to the camera coordinate system {L} {C} the homogeneous coordinates transformation matrix,C TL external parameters by the camera is pre-determined fixed value of calibration experiment,L TC isC TL the inverse of, obtained can be calculated.

[104]

(B4) base coordinate system {W} and laser coordinate system in relationship to the {L}:

[105]

XiB Y i B Z i B 1 = Cos [! Theta! ] - Sin [! Theta! ] 0 0 Sin [! Theta! ] Cos [! Theta! ] 0 0 0 0 1 0 0 0 0 1 X i L Y i L Z i L 1 = T L B X i L Y i L Z i L 1 ,    ( Formula 5)

[106]

In the formula, (B Xi,B Yi,B Zi) representative i point in the laser coordinate system the coordinates of {B};

[107]

(C) laser plane S in the laser coordinate system {L} in the equation as:yL = 0, recombines formula 4, the laser plane S may be deduced in the camera coordinate system {C} in the equation:

[108]

t21 xc +t22 yc +t23 zc +t24 = 0,   (formula 6)

[109]

(D) a motor 5 driving the rotating shaft 6 to rotate to the angle position θ, as shown in Figure 6.

[110]

(E) through the angle measuring element 7 of the angle values measured; a word line laser 3 emits a word linear laser light is formed on the surface of the measured object to a stripe, camera 2 of the stripe containing the shot Image on the object surface.

[111]

(F) Image processing Image stripe point j on the Image coordinate system of the coordinate of the {P} (uj, vj); by coordinate conversion target point j of the coordinate system the coordinates of {A} (A xj,A yj); coordinate conversion point j with the counterpart obtained i determined point imaging linear Li in the camera coordinate system {C} the straight-line equation of the, combination (c) step of the laser plane equation, imaging the straight line and by the intersection of the laser plane i the camera coordinate system the coordinates of {C} (C Xi,C Yi,C Zi), i point coordinate conversion obtained in the laser coordinate system the coordinates of {L} under (L Xi,L Yi,L Zi), i coordinate conversion by the base point of the coordinate system the coordinates of {B} (B Xi,B Yi,B Zi).

[112]

The specific process is as follows:

[113]

Entry i the upper to a certain point, its corresponding to the Image of the point j, j point by the Image processing by the Image coordinate system of the coordinate of the {P} (uj, vj);

[114]

The (uj, vj) formula 1 to obtain the target point j of the coordinate system the coordinates of {A} (A xj,A yj);

[115]

The (A xj,A yj) formula 2, and simultaneously the formula 6, i point obtained in the camera coordinate system the coordinates of {C} (C Xi,C Yi,C Zi):

[116]

XiC X i C X i C = x i A x i A f - t 24 t 21 x i A + t 22 y i A + Ft 23 ;    ( Formula 7)

[117]

The (C Xi,C Yi,C Zi) formula 4, must solve the i a word line under the laser coordinate system the coordinates of {L} (L Xi,L Yi,L Zi);

[118]

The (L Xi,L Yi,L Zi) formula 5, solve the i point in the base coordinate system the coordinates of the {B} (B Xi,B Yi,B Zi).

[119]

On the surface of the object thus obtained in the laser stripe arbitrary point of the base i the coordinate system the coordinates of {B} (B Xi,B Yi,B Zi).

[120]

(G) repeating (f) step, to obtain on the surface of the object points in the laser stripe (according to the accuracy requirement, a certain spacing distance a point) in the base coordinate system the coordinates of the {B};

[121]

(H) motor 5 driving the rotating shaft 6 to rotate to the other angular position, repeating (e), (f), (g) step, is observed through the video camera and can be the laser stripe projected onto the object surface under the somewhat in the base coordinate system of the coordinate value of the, complete the measuring.

[122]

In this embodiment, camera coordinate system {C} with the laser coordinate system the relationship between {L}C TL calibration experiment, known as the camera external parameter calibration experiment, the experimental method public known technology, a plurality of specific method. The use of this embodiment of a more commonly used camera external parameter calibrating experimental method.

[123]

As shown in Figure 6, calibration plane D is, on the distance of d a square grid, a word line laser 3 projected laser in the plane of the word to form a linear laser stripe 17 ; adjusting the plane so that when the rotating shaft 6 is rotated in the obtained Image from the camera in the word linear laser stripe 17 in the Image coordinate system is always under the same position, note the plane perpendicular to the rotating shaft have been D 6 the central line. In the device is in the 0° position, at this moment the base coordinate system with the laser coordinate system {B} with {L}. At this moment, the calibration camera coordinate system with the laser coordinate system {C} {L} (at this time, the base coordinate system {B}) relationship.

[124]

Square mesh lattice crossingpoint in the laser coordinate system {L} to the coordinate value of the known: any point on the plane because the iL Z coordinate is 0, the laser stripe inL X shaft,L X the axial direction of the known, origin OL (initial position and Ob coincide) and the known position of the stripe, origin OL that is, the rotating shaft 6 in the plane of rotation of the laser projected D form different intersection point of the laser stripe of direction.

[125]

Using plane D as the meshes of the characteristic point of intersection.

[126]

The is provided with a grid crossingpoint i the homogeneous coordinates of {L}L Pi = [L XiL YiL Zi   1]T, {C} in the homogeneous coordinates underC Pi = [C XiC YiC Zi   1]T. {C} {L} relationship with as the formula 3 as shown.

[127]

QL Zi = 0, formula 3 into:

[128]

XiC = R 11 X i L + R 12 Y i L + X L C Y i C = R 21 X i L + R 22 Y i L + Y L C Z i C = R 31 X i L + R 32 Y i L + Z L C    ( Formula 8)

[129]

The formula 2 may be

[130]

XiC = x i A f Z i C Y i C = y i A f Z i C    ( Formula 9)

[131]

The formula 8 of inC Zi,C Xi,C Yi into the (formula 9) to be

[132]

R11XiL + R 12 Y i L + X L C = x i A f ( R 31 X i L + R 32 Y i L + Z L C ) R 21 X i L + R 22 Y i L + Y L C = y i A f ( R 31 X i L + R 32 Y i L + Z L C )    ( Formula 10)

[133]

Finishing formula 10 shall be

[134]

fLXiR11+fLYiR12-xiA X i L R 31 - x i A Y i L R 32 + f C X L = i x i A Z L C f L X i R 21 + f L Y i R 22 - y i A X i L R 31 - y i A Y i L R 32 + f C Y L = y i A Z L C    ( Formula 11)

[135]

The formula 11 type two edge same divided byC ZL (QC ZL ≠ 0), get

[136]

fLXiR11ZLC + f L Y i R 12 Z L C - x i A X i L R 31 Z L C - x i A Y i L R 32 Z L C + f C X L Z L C = x i A f L X i R 21 Z L C + f L Y i R 22 Z L C - y i A X i L R 31 Z L C - y i A Y i L R 32 Z L C + f C Y L Z L C = y i A    ( Formula 12)

[137]

The formula 12 type written in matrix form:

[138]

   ( Formula 13)

[139]

Wherein

[140]

Ai=fLXifLYi00-xiA X i L - x i A Y i L f 0 0 0 f L X i f L Y i - y i A X i L - y i A Y i A 0 f

[141]

[142]

[143]

From the formula 13 as can be seen in, because the With 8 a factory overhaul, therefore, needs at least 4 points (8 equation a), can only be solved

[144]

In order to overcome the influence of noise, the feature point of introducing redundancy (such as the far more than 4 feature point a) in order to reduce the error of position estimation, and the least squares method, the smallest error squares. Therefore,

[145]

   ( Formula 14)

[146]

wherein A= [A1   A2   L   An]T, The number of n for characteristic point.

[147]

when the After being calculated, through the rotation matrixL RC units can be soly while orthogonal natureC ZL:

[148]

R112+R212+R312=1R122+R222+R322=1   ( Formula 15)

[149]

BecauseC ZL > > f > 0,

[150]

or    ( Formula 16)

[151]

Wherein is Section i elements. Formula 15 calculated in the two formulaeC ZL not necessarily equal, therefore, its average value as aC ZL value. GetC ZL value, willC ZL substituted Can be obtained in each element of:

[152]

   ( Formula 17)

[153]

Conjunction with the rotational matrixC RL orthogonal nature of the units, to obtain:

[154]

R13=1-R112-R122R23=1-R212-R222R33=1-R312-R322,   ( Formula 18)

[155]

The experiment used for calibration of a number of characteristic points (i.e. horizontal D a plurality of grid crossingpoint) in OL XL YL plane. These feature point coordinates {L} of the completely known. They the camera imaging of the Image points completely lower coordinates {A} known. To this, by formula 14, formula 15, formula 16 and formula 17 solving the {C} the coordinate system with the relationship between {L}C TL, the calibrating process is completed.

[156]

Because the device of the invention the projected laser stripe is a rotary scanning, traditional fixed direction effectively overcome the deficiency of the laser stripe method, can detect the edge information of the various directions, realizing high-precision measurement of the three-dimensional topography of the surface of the object; since the camera together with a word line laser rotation, always keep the relative attitude optimum posture, so as to ensure the good measuring accuracy; the center line of the rotation axis due to the linear laser plane after a word, the rotary shaft rotates one cycle, the laser stripe will not blind zone to sweep across the surface of the measured object, at the same time, simplifies the calibration and measurement process; due to the device of the invention uses a word line measuring the laser device and the camera head to rotate, to avoid the traditional method of assembly by the rotation of the object, is suitable for various size of the detection surface of the object. The device of the invention has simple structure, low cost, high measuring precision, not only can be used as a fixing device, can also be installed in the mobile robot.



[1]

The invention relates to a device and a method for measuring a horizontal laser vertically rotary three-dimensional shape, and belongs to the technical field of computer vision measurement. The device comprises a base, a camera, a horizontal laser, a motor, a rotational axis, an angle measuring element, a driving circuit, a switching circuit and a controller, wherein the camera and the horizontal laser are fixedly connected with the rotational axis of which a central line is positioned in a laser plane of the horizontal laser; the included angle between an observation plane formed by the central line of the rotational axis and a focal center of a lens and the laser plane is between 80 and 100 DEG; and the included angle between the central line of the rotational axis and an optical axis of the lens is between 40 and 50 DEG. The device can detect edge information in various directions, realize high-precision measurement of the three-dimensional shape of object surfaces, and avoid the inconvenience caused by rotation of objects in the prior method, has a simple structure, low cost and high measurement precision, and is suitable for surface detection of the objects with various dimensions.



1, a shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that comprises a base (1), camera (2), a word line laser (3), motor (5), a transmission mechanism (30), the rotating shaft (6), connecting piece (4), angle measuring element (7), conversion circuit, a motor drive circuit and a controller; wherein said motor is fixedly connected to the base, the arranged in the base of the rotating shaft, the output shaft of the motor through the transmission mechanism is connected with the rotating shaft, the camera, a word line laser and the rotation shaft through the connecting piece is fixedly connected with the; angle measuring element is arranged the output shaft of the electric motor, transmission mechanism or the output shaft of the rotating shaft; said a word line of the laser emitted by the laser is referred to as the plane of the laser plane, the center line of the rotary shaft in the laser plane; said camera through the Image acquisition card or the USB interface is connected with the controller, the motor through the motor drive circuit is connected with the controller, the angle of the measuring element is connected with a controller through a switching circuit; and the center line of the rotation axis of the lens of the camera optical center of the observation plane of the laser plane between the included angle of between 30 °-150 ° ; the the center line of the rotation axis of the video camera in the included angle between the optical axis of the lens between 30-60 ° ; the a word line laser onto the surface of the object measured by the laser stripe in the observation range of the camera.

2, the book according to claim 1 wherein the line-shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that the angle measuring component adopts the angle detector, the angular displacement sensor, a potentiometer, an encoder or an optical disc.

3, book according to claim 1 wherein the line-shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that said controller uses the computer, single-chip microcomputer, DSP or microcontroller.

4, the book according to claim 1 wherein the line-shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that the transmission mechanism of the gear transmission mechanism, gear rack drive mechanism, with wheel transmission mechanism, chain wheel transmission mechanism, tendon rope transmission mechanism, lead screw and nut transmission mechanism, the connecting rod driving mechanism, the worm and gear transmission mechanism, the cam drive mechanism or a ratchet wheel drive mechanism of one kind or several kinds of combined.

5, of the request according to the right 1 wherein the line-shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that the camera using CCD camera or CMOS camera.

6, the book according to claim 1 wherein the line-shaped laser vertical rotation type three-dimensional shape measuring device, characterized in that the the center line of the rotation axis a of the camera optical center of the lens with the observation plane of the laser plane between the included angle of between 65 °-115 ° ; the center line of the rotation axis of the lens of the video camera in the included angle between the optical axis between 40-50 °.

7, a book as in claim 1 the apparatus of the method for measuring laser vertically rotary three-dimensional shape, characterized in that comprises the following steps:

(A) building Image coordinate system, such as target surface coordinate system, video camera coordinate system, a base coordinate system and the laser coordinate system;

(B) through the calibration experiment, the Image coordinate system, such as target surface coordinate system, video camera coordinate system, a base coordinate system and the laser coordinate system of the coordinate transformation relations between;

(C) said a word line of the laser emitted by the laser is referred to as the plane of the laser plane, through the calibration experiment to obtain the laser plane in the laser coordinate system of the plane equation, to obtain the coordinate conversion in the laser plane of a plane equation under the camera coordinate system;

(D) a motor driving a rotary shaft rotates to a certain angle position;

(E) is measured by the angle of the angle of the measuring element; a word line laser sends out a word linear laser light is formed on the surface of the measured object to a stripe, the stripe containing the camera of the Image the surface of the object;

(F) by Image processing on the Image stripe point j of the coordinates of the Image coordinate system of the; j point coordinate conversion by the coordinate system of the coordinate of the target; and j coordinate converted i determining the imaging of point homologue of straight line under the camera coordinate system of the linear equation, combination (c) step of the laser plane equation, to obtain imaging linear with the laser plane i the intersection of the coordinate under the camera coordinate system; i point coordinate conversion by the coordinate system the coordinates of the laser, coordinate conversion i point to obtain the coordinates of the coordinate system, which is the base;

(G) repeating (f) step, on the surface of the object obtained in the laser stripe of the base points of the coordinate system the coordinates of {B};

(H) motor to drive the rotating shaft rotate to the other angular position, repeating (e), (f), (g) step, is observed through the video camera and can be the laser stripe projected onto the object surface under the somewhat in the base coordinate system of the coordinate value of the, complete the measuring.