Method for calibrating camera measurement system
09996931 ยท 2018-06-12
Assignee
Inventors
Cpc classification
B23Q17/2233
PERFORMING OPERATIONS; TRANSPORTING
G06T7/80
PHYSICS
B23Q17/249
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/2428
PERFORMING OPERATIONS; TRANSPORTING
International classification
G06T7/80
PHYSICS
H04N17/00
ELECTRICITY
B23Q17/22
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/24
PERFORMING OPERATIONS; TRANSPORTING
Abstract
In a calibration method a ring-shaped jig is disposed on a machine tool workpiece. The optical axis of a camera is aligned parallel to an axis of the machine tool. The jig is photographed with the horizontal or the vertical direction of the camera aligned with an axial direction other than the signal direction of the machine tool. The circumferential shape of the jig in the photograph is extracted as a contour. The center position of the jig in the image is calculated from the contour while all distortion correction coefficients in tangential and radial directions are ignored and set to zero. The displacements of the main point of the camera are set to zero. The translation distance, which is an external parameter of calibration, is calculated based on the center position of the jig in the image and the known three-dimensional center position of the jig.
Claims
1. A method for calibrating a camera measurement system having a single camera comprising: setting a ring-shaped calibration jig at a workpiece on a machining tool; aligning an optical axis of said camera parallel to a single axis of a coordinate system of said machining tool and also aligning a horizontal direction or a vertical direction of said camera with an axial direction other than a direction of said single axis of said machining tool wherein an image of said calibration jig is aligned at a central portion of an image and photographed using said camera; extracting a circumferential shape of said calibration jig in said central portion of said image as a contour; calculating a center position (U.sub.Ring, V.sub.Ring) of said calibration jig in said image from said contour; and calculating a translation distance (tx, ty, tz) as an external parameter of calibration on the basis of said center position (U.sub.Ring, V.sub.Ring) of said calibration jig in said central portion of said image and a known three-dimensional center position (X.sub.r, Y.sub.r, Z.sub.r) of said calibration jig, wherein all the distortion correction coefficients in a tangential direction of said camera and all the distortion correction coefficients in a radial direction of said camera are ignored and set to zero and displacement of the main point of a camera are all set to zero and are included in the translation distance of the camera as
{right arrow over (X)}.sub.world=[X.sub.world,Y.sub.world,Z.sub.world,1].sup.T: Coordination of world coordination system
{right arrow over (X)}.sub.camera=[X.sub.camera,Y.sub.camera,Z.sub.camera,1].sup.T: Coordination of Camera coordination system
{right arrow over (U)}.sub.image=[U.sub.image,V.sub.image,1].sup.T: Coordination projected on image plane and {right arrow over (R)} and {right arrow over (T)} are exterior parameters of the calibration, {right arrow over (R)} indicating a rotational angle of a camera and {right arrow over (T)} indicating a setting position as
2. A method for calibrating a camera measurement system having a single camera comprising: setting a ring-shaped calibration jig at a workpiece on a machining tool; moving a camera parallel to a X-axis, Y-axis and Z-axis of the coordinate system of said machining tool, while a plurality of images of said calibration jig are aligned at a central portion of an image and photographed by said camera; extracting a circumferential shape of said calibration jig in said central portion of said image as a contour; calculating a center position (U.sub.image, V.sub.mage) of said calibration jig in said image from said contour; and calculating a rotation angle (x, y, z) and a translation distance (tx, ty, tz) as an external parameter of calibration on the basis of said center position (U.sub.image, V.sub.image) of said calibration jig in said central portion of said image and a known three-dimensional center position (X.sub.world, Y.sub.world, Z.sub.world) of said calibration jig, wherein all the distortion correction coefficients in a tangential direction of said camera and all the distortion correction coefficients in a radial direction of said camera are ignored and set to zero and displacement of the main point of a camera are all set to zero and are included in the translation distance of the camera as
{right arrow over (X)}.sub.world=[X.sub.world,Y.sub.world,Z.sub.world,1].sup.T: Coordination of world coordination system
{right arrow over (X)}.sub.camera=[X.sub.camera,Y.sub.camera,Z.sub.camera,1].sup.T: Coordination of Camera coordination system
{right arrow over (U)}.sub.image=[U.sub.image,V.sub.image,1].sup.T: Coordination projected on image plane and {right arrow over (R)} and {right arrow over (T)} are exterior parameters of the calibration, {right arrow over (R)} indicating a rotational angle of a camera and {right arrow over (T)} indicating a setting position as
Description
BRIEF DESCRIPTION OF THE DRAWING
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
EMBODIMENT TO DO THE PRESENT INVENTION
(17) In the present invention, a ring-shaped calibration jig 1 as shown in
(18) As a ring-shaped calibration jig 1, for example, a cylindrical member 3a provided at a boom 3 of a hydro pressure shovel as shown in
(19) The boom 3 of the hydro pressure shovel is simultaneously machined at the both sides of the boom 3 by an opposed arranged machine utilized for processing a construction equipment (a moving column type opposed arranged boring milling machine, a moving table type opposed arranged horizontal boring milling machine and so on). In the conventional art as shown in
(20) In the present invention, a ring-shaped calibration jig 1 is employed. On the other hand, a calibration board as shown in
(21) In the present invention, the ring shaped calibration jig 1 is photographed by a camera 2. A shape to be measured is only suitable for a hole shape, so that a camera calibration can be omitted. That is, it is possible to ignore distortion correction coefficients in a tangential direction and distortion correction coefficients in a radial direction and set to zero. A displacement of a main point of the camera may be included in a translation distance of a camera and set to zero.
(22) As described above, the interior parameters of the camera are determined so as to correct a lens distortion in the camera calibration. In the case that the measured object is a circular shape and a center position of the circular shape is measured, an influence caused by the calibration is little. Therefore, the distortion correction can be omitted.
(23) In the present invention, when the camera 2 is attached, an optical axis of the camera 2 is aligned parallel to a z-axis of the machine coordination. Further, a perpendicular line of the camera is aligned along a x-axis of the machine coordination and a parallel line of the camera is aligned along a y-axis of the machine coordination so that it is unnecessary to correct three parameters (rotation) in the camera calibration Thus, by specifically setting a relation between the coordination of the camera 2 and a machine coordination as described above, within the exterior parameters (x, y, z, tx, ty, tz) of the camera, three exterior parameters can be set to zero (x=0, y=0, z=0). The determined parameters are only three translate parameters (tx, ty, tz).
(24) Further, if the parameter tx is already known, two unknown parameters (tx, ty) are determined.
(25) Herein, a center position 1b of the calibration jig 1 in an image has been already determined. If a known center position (Zr, Yr, Zr) of the calibration ring is designated as a center position, the unknown parameters (tx, ty) still remained can be determined.
(26) In the present invention, if the coordination of the camera 2 is unrelated with respect to the machine coordination in the case that the camera 2 is set, it is necessary to determine six exterior parameters (x, y, z, tx, ty, tz) of the camera 2.
(27) In such a case, the camera 2 is translated parallel to the X-axis, Y-axis and Z-axis of the machine coordination while a plurality of images of the calibration jig 1 are photographed. Then, a contour of the calibration jig 1 is extracted as a circumference of the circle 1a in each photographed image so as to calculate a center position 1b of the calibration jig 1 based on the circumferential of the circle 1a. By repeating such a process, a known center position 1b of the calibration jig 1 in the photographed image is utilized to a center position (Xr, Yr, Zr) of the calibration jig 1 so that six exterior parameters (x, y, z, tx, ty, tz) can be determined.
(28) As described above, in the present invention, by utilizing a ring-shaped calibration jig, an influence of a camera calibration can be omitted and an operation of the calibration can be simplified.
Embodiment 1
(29) 1) The present invention is exclusively used to measure a shape of a hole, interior parameters in a camera (focus distance: (fk.sub.x, fk.sub.y), displacement of a main point: (c.sub.x, c.sub.y), distortion correction coefficient in a radial direction: (k.sub.1, k.sub.2, k.sub.3), distortion correction coefficient in a tangential direction: (p.sub.1, p.sub.2)) are specifically set as follows: (1) Regarding a camera and a lens within the camera, a distortion in a tangential direction is little so that distortion correction coefficient in a tangential direction: (p1, p2) can be ignored and the all set to zero. (2) A purpose of the measurement according to the present invention is to measure a shape of a hole wherein a measured shape of the hole is aligned at a central portion of an image. Therefore, an influence of the distortion in the radial direction is not occurred. Therefore, in the system according to the present invention, there is no problem even if the all distortion correction coefficients in the radial direction: (k.sub.1, k.sub.2, k.sub.3) are set to zero. (3) The displacement of the main point: (c.sub.x, c.sub.y) is included in the exterior parameter of the camera (translation distance: (t.sub.x, t.sub.y, t.sub.z)) so that the displacement of the main point can be set as zero. (4) The focus distance: (fk.sub.x, fk.sub.y) depends on a specification of the lens and the camera. Therefore, necessary values are known in a specification listed by those manufactures. Based on the above situation,
(30)
(31) Under the above condition, the calibration is processed. As shown in
(32) Further, focus distance: (fk.sub.x, fk.sub.y) is already known based on the specification of a lens and the camera. 2) As shown in
(33)
(34) Accordingly, determined parameters are
(35)
(36) Further, the parameter tz can be recognized as known. Therefore, two parameters (tx, ty) are determined. 3) By setting the center position (X.sub.r, Y.sub.r, Z.sub.r) of the calibration ring already known as a center position, the parameters (tx, ty) are calculated so as to match with a coordination (U.sub.ring, V.sub.ring) of the center position 1b in a plane of an image of the calibration jig 1 photographed by the camera 2.
(37)
Embodiment 2
(38) 1) The present invention is exclusively used to measure a shape of a hole, interior parameters in a camera (focus distance: (fk.sub.x, fk.sub.y), displacement of a main point: (cx, cy), distortion correction coefficient in a radial direction: (k.sub.1, k.sub.2, k.sub.3), distortion correction coefficient in a tangential direction: (p.sub.1, p.sub.2)) are specifically set as follows: (1) Regarding a camera and a lens within the camera, a distortion in a tangential direction is little so that distortion correction coefficient in a tangential direction: (p1, p2) can be ignored and the all set to zero. (2) A purpose of the measurement according to the present invention is to measure a shape of a hole wherein a measured shape of the hole is aligned at a central portion of an image. Therefore, an influence of the distortion in the radial direction is not occurred. Therefore, in the system according to the present invention, there is no problem even if the all distortion correction coefficients in the radial direction: (k1, k2, k3) are set to zero. (3) The displacement of the main point: (c.sub.x, c.sub.y) is included in the exterior parameter of the camera (translation distance: (tx, ty, tz)) so that the displacement of the main point can be set as zero. (4) The focus distance: (fk.sub.x, fk.sub.y) depends on a specification of the lens and the camera. Therefore, necessary values are known in a specification listed by those manufactures.
(39) Based on the above situation,
(40)
(41) Under the above condition, the calibration is processed. As shown in
(42) Further, focus distance: (fk.sub.x, fk.sub.y) is already known based on the specification of a lens and the camera. 2) As shown in
(43)
(44) In a specific case as shown in
(45) A center position of the calibration ring is already known so that the parameters (x, y, z, tx, ty, tz) can be determined by the each center position 1b of the calibration jig 1 calculated respectively in the least square method.
Embodiment 3
(46)
(47) As shown in
(48) In the next, an image of the calibration jig 1 is photographed by a camera 2 (STEP S2).
(49) Then, as shown in
(50) Then, as shown in
(51) Concerning with calibration parameters excluding the interior parameter of the camera, position calibration parameters (the exterior parameters) of the camera is detected judging from the center position (Xr, Yr, Zr) of the calibration jig 1 already known as the position of the machine coordination and the center position 1b of the calibration jig calculated in the STEP S4 (STEP S5).
(52) In the case that a relation between the coordination system of the camera 2 and the machine coordination system is a specifically related, x=0. y=0 and z=0. The detected exterior parameters are only translation distance. In the case that the parameter: tz is already known, the parameters (tx, ty) can be determined based on one image.
(53) On the other hand, in the case that a relation between the coordination system of the camera 2 and the machine coordination system is unrelated, detected parameters are six exterior parameters (x, y, z, tx, ty, tz). Therefore, several images of the calibration jig 1 are photographed so as to determine each exterior parameter, respectively.
INDUSTRIAL USE OF THE INVENTION
(54) The present invention can be broadly utilized as a calibration method for a system for measuring a shape of a hole (a center position of a hole) in a tool machine industry.
EXPLANATION OF NUMERAL
(55) 1 calibration jig 1a contour of circumference of circle 1b center position of calibration jig 2 camera 3 boom of hydro pressure shovel 3a cylindrical portion 10 sensor 11, 12 calibration board 20 lens 30 camera