US20250182327A1
2025-06-05
18/396,467
2023-12-26
Smart Summary: A method for calibrating a 3D imaging device with multiple lenses has been developed. It starts by capturing images of a reference surface using all the lenses to create several 3D images. Next, these images are analyzed to generate equations that describe the surfaces. From these equations, different coordinate systems for each lens are created, with one being the main reference system. Finally, a calibration matrix is calculated for the other coordinate systems, and adjustments are made to improve accuracy using this matrix. 🚀 TL;DR
A multi-lens coplanar calibration method is applicable to a three-dimensional (3D) imaging device with a plurality of lenses, and the method includes: shooting a reference surface by the 3D imaging device through the plurality of lenses to generate a plurality of 3D images, calculating a plurality of surface equations according to 3D information of the 3D images by a computing device, calculating a plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations, where one of the plurality of coordinate systems is a first coordinate system, and each of the others is a second coordinate system, calculating a calibration matrix for each second coordinate system relative to the first coordinate system according to at least the plurality of coordinate systems by the computing device, and adjusting based on the calibration matrix by an actuating device.
Get notified when new applications in this technology area are published.
G06T7/80 » CPC main
Image analysis Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
G06T15/00 » CPC further
3D [Three Dimensional] image rendering
G06V10/25 » CPC further
Arrangements for image or video recognition or understanding; Image preprocessing Determination of region of interest [ROI] or a volume of interest [VOI]
This non-provisional application claims priority under 35 U.S.C. § 119 (a) on Patent Application No(s). 112146575 filed in Taiwan on Nov. 30, 2023, the entire contents of which are hereby incorporated by reference.
The disclosure relates to an array optical system, particularly to a multi-lens coplanar calibration system and method.
Array optical systems, for example, are used in the field of white light interferometry, where the main components of the system are multiple channels arranged in an array, with each channel having a lens or camera. These channels must operate simultaneously to obtain complete information from each channel. The multiple lenses of the array optical system must have the same focal length, and during the system's setup, it is crucial to ensure that these lenses are in the same plane. In the assembly process of the array optical system, it is necessary to adjust the tilt and height of the lenses in each channel to ensure that the lenses in different channels conform to coplanarity.
In the existing technology, laser alignment can only provide height error information for the lenses. Moreover, the optical path design for laser alignment is difficult, and once the optical path setup is offset, it may be impossible to achieve coplanarity for multiple lenses. On the other hand, adjusting coplanarity by observing the imaging clarity between different lenses relies on the operator's personal experience, and this method is not quantifiable, making it more challenging to perform.
According to one or more embodiment of the disclosure, a multi-lens coplanar calibration method applicable to a three-dimensional (3D) imaging device with a plurality of lenses is provided. The method comprises: shooting an object by the 3D imaging device through the plurality of lenses to generate a plurality of 3D images, wherein the object comprises a reference surface with known spatial information; calculating a plurality of surface equations according to 3D information of the plurality of 3D images by a computing device; calculating a plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations, where one of the plurality of coordinate systems is a first coordinate system, and, each of the plurality of coordinate systems other than the first coordinate system is a second coordinate system; calculating a calibration matrix for each second coordinate system relative to the first coordinate system according to at least the plurality of coordinate systems by the computing device; and adjusting one of the plurality of lenses corresponding to the second coordinate system according to the calibration matrix by an actuating device.
According to one or more embodiment of the disclosure, a multi-lens coplanar calibration system includes an object, a 3D imaging device, a computing device, and an actuating device. The object includes a reference surface with known spatial information. The 3D imaging device has a plurality of lenses. The plurality of lenses is configured to shoot the object to generate a plurality of 3D images. The computing device is electrically connected to the 3D imaging device to obtain the plurality of 3D images. The computing device is configured to perform a plurality of instructions to trigger a plurality of operations. The plurality of operations includes: calculating a plurality of surface equations according to 3D information of the plurality of 3D images; calculating a plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations, wherein each of the plurality of coordinate systems has a specific point as an origin, one of the plurality of coordinate systems is a first coordinate system, and each of the plurality of coordinate systems other than the first coordinate system is a second coordinate system; calculating a calibration matrix for the second coordinate system relative to the first coordinate system according to at least the plurality of coordinate systems. The actuating device is electrically connected to the computing device. The actuating device is configured to adjust one of the plurality of lenses corresponding to the second coordinate system according to the calibration matrix.
FIG. 1 is a schematic diagram of the architecture of the multi-lens coplanar calibration system according to an embodiment of the disclosure;
FIG. 2 is a flowchart of the multi-lens coplanar calibration method according to an embodiment of the disclosure;
FIG. 3 is an example of a top view according to the reconstructed point cloud of three-dimensional images captured by 3D imaging device through multiple lenses;
FIG. 4 is an example of a side view according to the reconstructed point cloud of three-dimensional images captured by 3D imaging device through multiple lenses;
FIG. 5 is a detailed flowchart of a step in FIG. 2; and
FIG. 6 is a schematic diagram of the global coordinate system and multiple coordinate systems.
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. According to the description, claims and the drawings disclosed in the specification, one skilled in the art may easily understand the concepts and features of the present invention. The following embodiments further illustrate various aspects of the present invention, but are not meant to limit the scope of the present invention.
FIG. 1 is a schematic diagram of the architecture of the multi-lens coplanar calibration system according to an embodiment of the disclosure. The multi-lens coplanar calibration system 100 includes an object 10, a three-dimensional (3D) imaging device 30, a computing device 50, and an actuating device 70.
The object 10 includes a reference surface 11 with known spatial information. In an embodiment, the reference surface 11 is a plane, and the plane includes a plurality of positions with same height. In an embodiment, the object 10 is a step height standard produced by VLSI company, which is a standard component processed to have a flat surface. In another embodiment, the reference surface 11 is a surface that can be defined by a mathematical model, such as a curved surface, but the disclosure is not limited thereto.
The 3D imaging device 30 has a plurality of lenses 32, 34. These lenses 32, 34 are configured to shoot the reference surface 11 of the object 10 to generate a plurality of 3D images. As shown in FIG. 1, the number of lenses 32, 34 is at least two, but the present disclosure does not limit the maximum number of lenses 32, 34. In an embodiment, the 3D imaging device 30 is a 3D camera with multiple lenses. In another embodiment, the 3D imaging device 30 is a combination of multiple 3D cameras. The term “3D camera” refers to a camera that uses 3D measurement techniques, such as stereo vision, structured light, or time-of-flight (ToF), to capture 3D images, and the disclosure is not limited to these techniques.
The term “3D image” refers to each pixel in the image containing 3D coordinate information in the world coordinate system. In an embodiment, each lens (32 or 34) of the 3D imaging device 30 directly shoots the object 10 and generates a 3D image. In another embodiment, the generation of 3D images involves adjusting the height of the lenses 32, 34 relative to the reference surface 11 through the actuating device 70. Multiple two-dimensional images of the object 10 are shot at various heights, and the 3D imaging device 30 then creates a 3D image corresponding to each lens (32 or 34) according to these two-dimensional images.
Please note that the area of the reference surface 11 must be larger than the combined fields of view of all lenses 32, 34, as shown in FIG. 1. In other words, when shooting the object 10, it should not be necessary to move the 3D imaging device 30 to allow all lenses 32, 34 to shoot the reference surface 11. Regarding the placement of lenses 32, 34, it must be ensured that there is no overlap portion of the reference surface 11 shot by any two of the lenses 32, 34.
The computing device 50 is electrically connected to the 3D imaging device 30. The computing device 50 obtains the plurality of 3D images captured by the 3D imaging device 30, performs a plurality of instructions according to these 3D images to trigger a plurality of operations, and output a plurality of calibration matrices in the end. These operations correspond to a plurality of steps included in the multi-lens co-planar calibration method according to an embodiment of the disclosure, which will be detailed in the following text.
In an embodiment, the computing device 50 may be implemented by at least one of the following examples: personal computer, network server, microcontroller (MCU), application processor (AP), field-programmable gate array (FPGA), Application-Specific Integrated Circuit (ASIC), system-on-a-chip (SOC), deep learning accelerator, or any electronic device with similar functionality. The hardware type of the computing device 50 is not limited by the disclosure.
The actuating device 70 is electrically connected to the computing device 50. The actuating device 70 performs adjustment according to the calibration matrix to make all lenses 32, 34 coplanar. In one embodiment, the actuating device 70 is, for example, a three-axis servo motor or any mechanical device capable of implementing three-axis adjustments. The disclosure is not limited to this.
FIG. 2 is a flowchart of the multi-lens coplanar calibration method according to an embodiment of the disclosure. The method includes steps S1-S6 and is applicable to the 3D imaging device 100 with multiple lenses 32, 34.
In step S1, the 3D imaging device 30 shoots an object 10 through the plurality of lenses 32, 34 to generate a plurality of 3D images. The object 10 includes a reference surface 11 with known spatial information.
In step S2, the computing device 50 calculates a plurality of surface equations according to 3D information of the plurality of 3D images. In an embodiment, the surface equation is a plane equation, and the following explanation is based on the embodiment of plane equations.
In an embodiment, before actually calculating the plane equation, the computing device 50 decodes according to the 3D image to obtain a plurality of pieces of 3D information about the reference surface 11. In an embodiment, the 3D information is point cloud.
The computing device 50 sets a region of interest (ROI) in each set of the plurality pieces of 3D information (such as the point cloud) corresponding to each 3D image. Since the target being shot by the 3D imaging device 30 is the reference surface 11, the computing device 50 can generate a virtual surface according to the plurality of pieces of 3D information corresponding to each 3D image and then calculate the surface equation corresponding to this virtual surface.
FIG. 3 is an example of a top view according to the reconstructed point cloud of 3D images captured by 3D imaging device 30 through multiple lenses 32, 34. Here, R1 and R2 represent regions of interest (corresponding to the aforementioned virtual surfaces) set by the computing device 50 in the 3D image, and P1 and P2 represent the center points of the regions of interest R1 and R2, respectively.
FIG. 4 is an example of a side view according to the reconstructed point cloud of 3D images captured by lenses 32, 34. Please refer to both FIG. 1 and FIG. 4. The shooting ranges of lenses 32 and 34 on the reference surface 11 are denoted as A1 and A2, respectively. The point clouds corresponding to the shooting ranges A1 and A2 are denoted as A1′ and A2′. Since the spatial information of the reference surface 11 is known, when the reference surface 11 is a plane, if all lenses 32 and 34 are coplanar, the point clouds reconstructed from the plurality of 3D images should have the same height. In the example shown in FIG. 4, the point cloud A1′ and the point cloud A2′ have a displacement correction amount ΔTy along the Y-axis and a rotational correction amount ΔRz along the Z-axis. This indicates that lenses 32 and 34 are not coplanar, and it is necessary to adjust one of them (such as the lens 34) through the actuator 70 to align with the other (such as the lens 32).
Since the plurality of pieces of 3D information used to calculate the plane equation are all located within the regions of interest R1 and R2, the computing device 50 can calculate a plurality of plane equations corresponding to the plurality of lenses 32, 34, as shown by Equation 1 below.
[ f 1 ( x , y , z ) f 2 ( x , y , z ) ⋮ f N ( x , y , z ) ] = [ a 1 b 1 c 1 d 1 a 2 b 2 c 2 d 2 ⋮ ⋮ ⋮ ⋮ a N b N c N d N ] [ x y z 1 ] = [ 0 0 0 0 ] ( Equation 1 )
In step S3, the computing device 50 calculates a plurality of coordinate systems according to the plurality of surface equations. FIG. 5 is a detailed flowchart of step S3 in FIG. 2, and includes steps S31 to S34.
The computing device 50 performs the process shown in FIG. 5 for each plane equation to obtain a coordinate system. If the number of lenses is N, the computing device 50 performs the process shown in FIG. 5 N times to calculate N coordinate systems. Each coordinate system has a specific point as its origin, such as the previously mentioned center points P1 or P2.
In step S31, the computing device 50 determines a first vector according to the plurality of coefficients of the corresponding plane equation. The first vector is the normal vector of the plane. For example, for the plane equation f1=a1x+b1y+c1z+d1=0, the first vector is Vz1=(a, b, c).
In step S32, the computing device 50 randomly determines a second vector. The values of the second vector can be arbitrarily chosen. For example, the second vector is Vx1=(1,0,0).
In step S33, the computing device 50 calculates a cross product of the first vector and the second vector to obtain a third vector. In other words, the third vector is Vy1=Vz1×Vx1. After step S33 is completed, at least it ensures the orthogonality between the first vector Vz1 and the third vector Vy1.
In step S34, the computing device 50 calculates a cross product of the first vector and the third vector to correct the second vector. In other words, the corrected second vector is Vx1=Vy1×Vz1. After step S34 is completed, it ensures the orthogonality between the first vector Vz1 and the corrected second vector Vx1, and the orthogonality between the third vector Vy1 and the corrected second vector Vx1, thus forming a coordinate system with mutually orthogonal vectors Vx1, Vy1, Vz1.
Each of the plurality of coordinate systems mentioned in step S3 is composed of the first vector, the second vector, and the third vector. Each coordinate system corresponds to a lens (such as 32 or 34). To make all lenses 32, 34 coplanar, one of these coordinate systems is chosen as the reference and called the first coordinate system, while each of the others that needs adjustment is referred to as the second coordinate system. The goal of adjustment is to align each second coordinate system with the first coordinate system.
In the processes of steps S4 and S5, the computing device 50 calculates a calibration matrix for the second coordinate system relative to the first coordinate system at least according to the plurality of coordinate systems.
In step S4, the computing device 50 calculates a plurality of transformation matrices according to a global coordinate system and the plurality of coordinate systems. FIG. 6 is a schematic diagram of the global coordinate system and multiple coordinate systems. Each transformation matrix is configured to transform the corresponding coordinate system, such as {Vx1, Vy1, Vz1} or {Vx2, Vy2, Vz2}, to the global coordinate system {x, y, z}. The calculation of transformation matrix is as shown by Equation 2 below:
M = [ x 0 x 1 x 2 P x y 0 y 1 y 2 P y z 0 z 1 z 2 P z 0 0 0 1 ] ( Equation 2 )
In step S5, the computing device 50 calculates a calibration matrix for the second coordinate system relative to the first coordinate system according to an inverse matrix of the transformation matrix of the first coordinate system and the transformation matrix of the second coordinate system. The calibration matrix is configured to transform the second coordinate system into the first coordinate system, and its calculation is as shown by Equation 3 below.
M C = M 1 - 1 × M 2 ( Equation 3 )
In step S6, the computing device 50 adjusts the lens corresponding to each second coordinate system according to the calibration matrix Mc. In other words, the computing device 50 calculates the rotation correction amount and the displacement correction amount as shown by Equation 4 below.
M C = [ r 1 1 r 1 2 r 1 3 t 1 r 2 1 r 2 2 r 2 3 t 2 r 3 1 r 3 2 r 3 3 t 3 0 0 0 1 ] = ( R | T ) ( Equation 4 )
R = [ r 11 r 1 2 r 1 3 r 2 1 r 2 2 r 2 3 r 3 1 r 3 2 r 3 3 ]
represents a rotation correction matrix,
T = [ t 1 t 2 t 3 ]
represents a displacement correction matrix, and the rotation correction amounts for the three axes can be calculated according to the rotation correction matrix R and Equation 5 below.
( Equation 5 ) R = [ cos ( θ y ) cos ( θ z ) - sin ( θ x ) sin ( θ y ) sin ( θ z ) - cos ( θ x ) sin ( θ z ) sin ( θ y ) cos ( θ z ) + sin ( θ x ) cos ( θ y ) sin ( θ z ) cos ( θ y ) sin ( θ z ) + sin ( θ x ) sin ( θ y ) cos ( θ z ) cos ( θ x ) cos ( θ z ) sin ( θ y ) sin ( θ z ) - sin ( θ x ) cos ( θ y ) cos ( θ z ) - cos ( θ x ) sin ( θ y ) sin ( θ x ) cos ( θ x ) cos ( θ y ) ]
Finally, the actuating device 70 adjusts each lens corresponding to the second coordinate system according to the rotation correction amount ΔR and the displacement correction amount ΔTz, aligning them with the lenses corresponding to the first coordinate system.
In summary, embodiments of the disclosure provide a multi-lens coplanar correction system and method that can obtain height and angle information for each lens to achieve coplanar adjustment. This not only has a higher success rate in coplanar adjustment but also allows for the quantification of height and angle errors for each lens. It reduces the user's operational difficulty and is more suitable for introducing automated adjustment mechanisms.
1. A multi-lens coplanar calibration method applicable to a three-dimensional (3D) imaging device with a plurality of lenses, wherein the method comprises:
shooting an object by the 3D imaging device through the plurality of lenses to generate a plurality of 3D images, wherein the object comprises a reference surface with known spatial information;
calculating a plurality of surface equations according to 3D information of the plurality of 3D images by a computing device;
calculating a plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations by the computing device, wherein each of the plurality of coordinate systems has a specific point as an origin, one of the plurality of coordinate systems is a first coordinate system, and each of the plurality of coordinate systems other than the first coordinate system is a second coordinate system;
calculating a calibration matrix for the second coordinate system relative to the first coordinate system according to at least the plurality of coordinate systems by the computing device; and
adjusting one of the plurality of lenses corresponding to the second coordinate system according to the calibration matrix by an actuating device.
2. The multi-lens coplanar calibration method of claim 1, wherein calculating the calibration matrix for each second coordinate system relative to the first coordinate system at least according to the plurality of coordinate systems by the computing device comprises:
calculating a plurality of transformation matrices according to a global coordinate system and the plurality of coordinate systems, wherein each of the plurality of transformation matrices is configured for a transformation between corresponding one of the plurality of coordinate systems and the global coordinate system; and
calculating the calibration matrix according to the transformation matrix of the first coordinate system and the transformation matrix of the second coordinate system.
3. The multi-lens coplanar calibration method of claim 2, wherein calculating the calibration matrix according to the transformation matrix of the first coordinate system and the transformation matrix of the second coordinate system comprises:
calculating an inverse matrix according to the transformation matrix of the first coordinate system; and
calculating the calibration matrix of the second coordinate system relative to the first coordinate system according to the inverse matrix and the transformation matrix of the second coordinate system.
4. The multi-lens coplanar calibration method of claim 1, wherein the 3D information is point cloud; and
calculating the plurality of surface equations according to the 3D information of the plurality of 3D images by the computing device comprises:
generating a plurality of virtual surfaces according to the point cloud of the plurality of 3D images by the computing device; and
calculating the plurality of surface equations corresponding to the plurality of virtual surfaces by the computing device.
5. The multi-lens coplanar calibration method of claim 1, wherein each of the plurality of coordinate systems comprises a first vector, a second vector and a third vector, and calculating the plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations by the computing device comprises:
for each of the plurality of coordinate systems, determining the first vector according to a plurality of coefficients of corresponding one of the plurality of surface equations;
randomly determining the second vector;
calculating a cross product of the first vector and the second vector to obtain the third vector; and
calculating a cross product of the first vector and the third vector to correct the second vector.
6. The multi-lens coplanar calibration method of claim 2, further comprising: before calculating the plurality of surface equations according to the 3D information of the plurality of 3D images by the computing device, setting a region of interest for each of the plurality of 3D images by the computing device.
7. The multi-lens coplanar calibration method of claim 6, wherein each of the plurality of transformation matrices is
[ x 0 x 1 x 2 P x y 0 y 1 y 2 P y z 0 z 1 z 2 P z 0 0 0 1 ] ,
wherein (x0, y0, z0), (x1, y1, z1), and (x2, y2, z2) are three-axis vectors forming each of the plurality of coordinate systems, and (Px, Py, Pz) is the specific point, wherein the specific point is the center of the region of interest.
8. The multi-lens coplanar calibration method of claim 1, where the reference surface is a plane, and the plane includes a plurality of positions with same height.
9. A multi-lens coplanar calibration system comprising:
an object comprising a reference surface with known spatial information;
a three-dimensional (3D) imaging device with a plurality of lenses, wherein the 3D imaging device is configured to shoot the reference surface of object through the plurality of lenses to generate a plurality of 3D images;
a computing device electrically connected to the 3D imaging device to obtain the plurality of 3D images, wherein the computing device is configured to perform a plurality of instructions to trigger a plurality of operations, wherein the plurality of operations comprises:
calculating a plurality of surface equations according to 3D information of the plurality of 3D images;
calculating a plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations, wherein each of the plurality of coordinate systems has a specific point as an origin, one of the plurality of coordinate systems is a first coordinate system, and each of the plurality of coordinate systems other than the first coordinate system is a second coordinate system;
calculating a calibration matrix for the second coordinate system relative to the first coordinate system according to at least the plurality of coordinate systems; and
an actuating device electrically connected to the computing device, wherein the actuating device is configured to adjust one of the plurality of lenses corresponding to the second coordinate system according to the calibration matrix.
10. The multi-lens coplanar calibration system of claim 9, wherein in the plurality of operations, calculating the calibration matrix for each second coordinate system relative to the first coordinate system at least according to the plurality of coordinate systems by the computing device comprises:
calculating a plurality of transformation matrices according to a global coordinate system and the plurality of coordinate systems, wherein each of the plurality of transformation matrices is configured for a transformation between corresponding one of the plurality of coordinate systems and the global coordinate system; and
calculating the calibration matrix according to the transformation matrix of the first coordinate system and the transformation matrix of the second coordinate system.
11. The multi-lens coplanar calibration system of claim 10, wherein in the plurality of operations, calculating the calibration matrix according to the transformation matrix of the first coordinate system and the transformation matrix of the second coordinate system comprises:
calculating an inverse matrix according to the transformation matrix of the first coordinate system; and
calculating the calibration matrix of the second coordinate system relative to the first coordinate system according to the inverse matrix and the transformation matrix of the second coordinate system.
12. The multi-lens coplanar calibration system of claim 9, wherein the 3D information is point cloud; and in the plurality of operations, calculating the plurality of surface equations according to the 3D information of the plurality of 3D images by the computing device comprises:
generating a plurality of virtual surfaces according to the point cloud of the plurality of 3D images;
calculating the plurality of surface equations corresponding to the plurality of virtual surfaces.
13. The multi-lens coplanar calibration system of claim 9, wherein each of the plurality of coordinate systems comprises a first vector, a second vector and a third vector, and calculating the plurality of coordinate systems corresponding to the plurality of lenses according to the plurality of surface equations by the computing device comprises:
for each of the plurality of coordinate systems, determining the first vector according to a plurality of coefficients of corresponding one of the plurality of surface equations;
randomly determining the second vector;
calculating a cross product of the first vector and the second vector to obtain the third vector; and
calculating a cross product of the first vector and the third vector to correct the second vector.
14. The multi-lens coplanar calibration system of claim 10, wherein the plurality of operations further comprises: before calculating the plurality of surface equations according to the 3D information of the plurality of 3D images by the computing device, setting a region of interest for each of the plurality of 3D images by the computing device.
15. The multi-lens coplanar calibration system of claim 14, wherein each of the plurality of transformation matrices is
[ x 0 x 1 x 2 P x y 0 y 1 y 2 P y z 0 z 1 z 2 P z 0 0 0 1 ] ,
wherein (x0, y0, z0), (x1, y1, z1), and (x2, y2, z2) are three-axis vectors forming each of the plurality of coordinate systems, and (Px, Py, Pz) is the specific point, wherein the specific point is the center of a region of interest.
16. The multi-lens coplanar calibration method of claim 9, where the reference surface is a plane, and the plane includes a plurality of positions with same height.