Camera module aligning method

Information

  • Patent Grant
  • 11206378
  • Patent Number
    11,206,378
  • Date Filed
    Wednesday, June 24, 2020
    4 years ago
  • Date Issued
    Tuesday, December 21, 2021
    3 years ago
Abstract
A camera module aligning method includes the following steps. Firstly, a reference chart having plural chart characteristic points is provided. Then, a camera module is used to shoot the reference chart, and an installation position and an installation posture of the camera module are acquired according to an internal parameter matrix and an external parameter matrix. When the camera module shoots the reference chart and an image is formed on an imaging plane of the camera module, a relationship between at least one image characteristic point of the image and the corresponding chart characteristic point complies with a standard relationship. The standard relationship is defined by the internal parameter matrix and the external parameter matrix.
Description
FIELD OF THE INVENTION

The present invention relates to an optical field, and more particularly to a camera module aligning method.


BACKGROUND OF THE INVENTION

Recently, with the development of electronic industries and the advance of industrial technologies, various electronic devices are designed toward small size, light weightiness and easy portability. Consequently, these electronic devices can be applied to mobile business, entertainment or leisure purposes whenever or wherever the users are. For example, various camera modules are widely used in many kinds of fields such as smart phones, wearable electronic devices or any other appropriate portable electronic devices. Since the electronic devices are small and portable, the users can take the electronic devices to capture images and store the images according to the practical requirements. Alternatively, the images can be uploaded to the internet through mobile networks. In other words, these electronic devices not only have important commercial values but also provide more colorful lives to people.


With the improvement of the living quality, people's demands on the images are gradually increased. For example, most users desire the high-resolution, the wide-angle image and/or the 3D image. Moreover, the portable electronic devices with the high-power optical zooming function are preferred to the users. However, the portable electronic device equipped with a single camera module cannot achieve the above purposes easily. For achieving the above purposes, a portable electronic device with plural camera modules has been disclosed.


Regardless of the number of the camera modules in the portable electronic device, the imaging quality of each camera module is mainly determined according to the result of judging whether the camera module is at a correct installation position and with a correct installation posture. Consequently, before the process of installing the camera module, the worker in the production line performs a camera module aligning method. In accordance with a conventional camera module aligning method, a third-party camera module is used for identification through automated optical inspection (AOI). Due to the tolerance of the mechanical surface of the camera module, the accuracy of the conventional camera module aligning method is usually not satisfied. In accordance with another conventional camera module aligning method, a camera module shoots a backlight plate to acquire an optical axis center, the installation posture of the camera module is calibrated according to the optical axis center, the camera module shoots a test chart, and the installation position is aligned according to the test chart. However, the conventional method is a non-quantitative alignment method, and the alignment is completed after repeated trial-and-error procedures.


In other words, the conventional camera module aligning method needs to be further improved.


SUMMARY OF THE INVENTION

An object of the present invention provides a camera module aligning method. An installation position and an installation posture of the camera module are obtained according to an internal parameter matrix and an external parameter matrix of the camera module.


In accordance with an aspect of the present invention, a camera module aligning method is provided. The camera module aligning method includes the following steps. In a step (S1), a reference chart having plural chart characteristic points is provided. In a step (S2), a camera module is used to shoot the reference chart, and an installation position and an installation posture of the camera module are acquired according to an internal parameter matrix and an external parameter matrix of the camera module. When the camera module shoots the reference chart and an image is formed on an imaging plane of the camera module, a relationship between at least one image characteristic point of the image and the corresponding chart characteristic point complies with a standard relationship. The standard relationship is defined by the internal parameter matrix and the external parameter matrix.


In an embodiment, each chart characteristic point has a world coordinate in a world coordinate system, and each image characteristic point has an image coordinate in an image plane coordinate system.


In an embodiment, the standard relationship is expressed by a mathematic formula:

q=K[R|T]Q

wherein q is the image coordinate of the image characteristic point in the image plane coordinate system, K is the internal parameter matrix, [R|T] is an external parameter matrix, and Q is the word coordinate of the characteristic point in the world coordinate system.


In an embodiment, the internal parameter matrix K is expressed by a mathematic formula:






K
=

[



f


0



u
0



0




0


f



v
0



0




0


0


1


0



]





wherein f is a focal length of the camera module, and u0 and v0 are coordinates of an image center of the image plane coordinate system.


In an embodiment, the external parameter matrix [R|T] is expressed by a mathematic formula:







[

R

T

]

=

[




r





11




r





12




r





13




T
x







r





21









r





22




r





23




T
y






r





31




r





32




r





33




T
z





0


0


0


1



]






wherein R is a rotation matrix, and T is a translation matrix.


In an embodiment, the step (S2) includes the sub-steps. Firstly, the camera module at an initial shooting position and with an initial shooting posture shoots the reference chart, so that the image is formed on the imaging plane. Then, the initial shooting position and the initial shooting posture are calibrated to the installation position and the installation posture according to the internal parameter matrix, the external parameter matrix and the image coordinate of each image characteristic point.


In an embodiment, the reference chart is a checkerboard chart, and the plural chart characteristic points are corner points of the checkerboard chart.


In an embodiment, the internal parameter matrix and the external parameter matrix are obtained by using a standard camera module with qualified assembling quality to shoot the reference chart at different positions and at different angles.


The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 schematically illustrates a reference chart used in a camera module aligning method according to an embodiment of the present invention;



FIG. 2 schematically illustrates a scenario of using the camera module to shoot the reference chart in the camera module aligning method of the present invention;



FIG. 3 schematically illustrates the concept of converting a world coordinate into an image coordinate in the scenario of FIG. 2;



FIG. 4 is a flowchart illustrating a camera module aligning method according to an embodiment of the present invention; and



FIG. 5 schematically illustrates another scenario of using plural camera modules to shoot the reference chart in the camera module aligning method of the present invention.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

The embodiments of present invention will be described more specifically with reference to the following drawings. Generally, in the drawings and specifications, identical or similar components are designated by identical numeral references. For well understanding the present invention, the elements shown in the drawings are not in scale with the elements of the practical product. In the following embodiments and drawings, the elements irrelevant to the concepts of the present invention or the elements well known to those skilled in the art are omitted. It is noted that numerous modifications and alterations may be made while retaining the teachings of the invention.


Please refer to FIGS. 1, 2 and 3. FIG. 1 schematically illustrates a reference chart used in a camera module aligning method according to an embodiment of the present invention. FIG. 2 schematically illustrates the scenario of using a camera module to shoot a reference chart. FIG. 3 schematically illustrates the concept of converting a world coordinate into an image coordinate in the scenario of FIG. 2.


The reference chart 1 contains plural chart characteristic points 11. For succinctness, only two chart characteristic points are shown in FIG. 1. In the embodiment of FIG. 1, the reference chart 1 is a checkerboard chart. Moreover, the plural chart characteristic points 11 are corner points of the checkerboard chart. That is, the chart characteristic point is the intersection between two adjacent black squares or the intersection between two adjacent white squares. Moreover, each chart characteristic point 11 has a world coordinate in a world coordinate system. As shown in in FIG. 3, the world coordinate system is defined by X, Y and Z coordinate axes.


When a camera module 2 at a shooting position and with a shooting posture shoots the reference chart 1, an image 3 is formed on an imaging plane 20 of the camera module 2 (see FIG. 3). The image 3 contains plural image characteristic points 31 corresponding to the plural chart characteristic points 11 of the reference chart 1. For succinctness, only one chart characteristic point 11 and the corresponding image characteristic point 31 are shown in FIG. 3. Moreover, each image characteristic point 31 has an image coordinate in an image plane coordinate system. As shown in in FIG. 3, the planar coordinate system is defined by u and v coordinate axes. Moreover, there is a standard relationship between each image characteristic point 31 and the corresponding chart characteristic point 11.


In an embodiment, the standard relationship is expressed by the following mathematic formula:

q=K[R|T]Q


In the above mathematic formula, q is the image coordinate of the image characteristic points 31 in the image plane coordinate system, K is an internal parameter matrix of the camera module 2, [R|T] is an external parameter matrix of the camera module 2, and Q is the word coordinate of the chart characteristic point 11 in the world coordinate system.


Preferably, the internal parameter matrix K and the external parameter matrix [R|T] may be expressed by following mathematic formulae:







K
=

[



f


0



u
0



0




0


f



v
0



0




0


0


1


0



]


,



[

R

T

]

=

[




r





11




r





12




r





13




T
x







r





21









r





22




r





23




T
y






r





31




r





32




r





33




T
z





0


0


0


1



]


;





In the above mathematic formulae, f is a focal length of the camera module 2, u0 and v0 are the coordinates of the image center of the image plane coordinate system, R is a rotation matrix, and T is a translation matrix.


In an embodiment, the internal parameter matrix K and the external parameter matrix [R|T] are obtained by using a standard camera module to perform several shooting actions at different positions and at different angles and estimating the shooting results according to a maximum likelihood estimation (MLE) method. The standard camera module is a camera module with acceptable assembling quality. The methods of obtaining the internal parameter matrix K and the external parameter matrix [R|T] are well known to those skilled in the art, and not redundantly described herein. Moreover, the methods of obtaining the internal parameter matrix K and the external parameter matrix [R|T] are not restricted.


In case that the camera module 2 at a different shooting position and with a different shooting posture is used to shoot the reference chart 1, the image characteristic point 31 corresponding to the same chart characteristic point 11 has a different image coordinate. In case that the reference chart 1 is fixed, the image coordinate of the image characteristic point 31 can be acquired according to the standard relationship between the internal parameter matrix K and the external parameter matrix [R|T] of the camera module 2. If the camera module 2 is precisely aligned during the assembling process, the shooting position and the shooting posture of the camera module 2 are correct. When the camera module 2 at the correct shooting position and with the correct shooting posture shoots the reference chart 1, the image characteristic point 31 of the image 3 acquired by the camera module 2 has a specified image coordinate. Hereinafter, the specified image coordinate is referred as a correct image coordinate.


The camera module aligning method of the present invention will be described as follows. FIG. 4 is a flowchart illustrating a camera module aligning method according to an embodiment of the present invention.


Firstly, in a step S1, a reference chart 1 is provided. The reference chart 1 contains plural chart characteristic points 11. Then, the camera module 2 shoots the reference chart 1, and an installation position and an installation posture of the camera module 2 are obtained according to the internal parameter matrix K and the external parameter matrix [R|T] of the camera module 2.


In a step S2, the camera module 2 at an initial shooting position and with an initial shooting posture shoots the reference chart 1, so that an image 3 is formed on an imaging plane 20 of the camera module 2. If the image coordinate of the image characteristic point 31 of the image 3 is not the correct image coordinate, the initial shooting position and the initial shooting posture are respectively calibrated to the correct installation position and the correct installation posture according to the internal parameter matrix K of the camera module 2, the external parameter matrix [R|T] of the camera module 2, the image coordinate of the image characteristic point 31 and the correct image coordinate of the image characteristic point 31.


In the above embodiment, the camera module aligning method is applied to a single camera module 2. It is noted that the camera module aligning method of the present invention may be applied to plural camera modules. After the plural camera modules are installed and aligned through the camera module aligning method of the present invention, the installation positions and the installation postures of the plural camera modules are correct. FIG. 5 schematically illustrates another scenario of using plural camera modules to shoot the reference chart in the camera module aligning method of the present invention. As shown in FIG. 5, two cameral modules 2 and 2′ are installed and aligned through the camera module aligning method. Consequently, a relative distance D between the two cameral modules 2 and 2′ is correct. In an embodiment, the two cameral modules 2 and 2′ are the same types of camera modules. In some other embodiments, the two cameral modules 2 and 2′ are different camera modules. Since the two cameral modules 2 and 2′ have different optical elements, the two cameral modules 2 and 2′ have different optical viewing angles, different internal parameter matrices and different external parameter matrices.


In another embodiment, the reference chart 1 further contains a chart characteristic point 11′ (see FIG. 1). After the two cameral modules 2 and 2′ as shown in FIG. 5 shoot the reference chart 1, the camera module 2 acquires the image coordinate q1 of the image characteristic point of the image on the imaging plane and corresponding to the chart characteristic point 11′ according to the internal parameter matrix and the external parameter matrix of the camera module 2, and the camera module 2′ acquires the image coordinate q2 of the image characteristic point of the image on the imaging plane and corresponding to the chart characteristic point 11′ according to the internal parameter matrix and the external parameter matrix of the camera module 2′. According to the difference between the image coordinate q1 and the image coordinate q2, the relative distance between the two cameral modules 2 and 2′ can be calculated. Consequently, after the two cameral modules 2 and 2′ are installed and aligned, the installation positions and the installation postures of the plural camera modules are correct. In an embodiment, the chart characteristic point 11′ is located at a center of the reference chart 1. However, the location of the chart characteristic point 11′ may be varied according to the practical requirements.


While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.

Claims
  • 1. A camera module aligning method, comprising steps of: (S1) providing a reference chart having plural chart characteristic points; and(S2) using two camera module shoot the reference chart, and acquiring an installation position and an installation posture of each camera module according to an internal parameter matrix and an external parameter matrix of each camera module, wherein when each camera module shoots the reference chart and an image is formed on an imaging plane of each camera module, a relationship between at least one image characteristic point of the image and the corresponding chart characteristic point complies with a standard relationship, wherein the standard relationship is defined by the internal parameter matrix and the external parameter matrix,Wherein the reference chart further contains a chart characteristic point which is located at a center of the reference chart, after a first camera module and a second camera module shoot the reference chart, the first camera module acquires a first image coordinate of the image characteristic point of the image on the imaging plane and corresponding to the chart characteristic point located at a center of the reference chart according to the internal parameter matrix and the external parameter matrix of the first camera module, and the second camera module acquires a second image coordinate of the image characteristic point of the image on the imaging plane and corresponding to the chart characteristic point located at a center of the reference chart according to the internal parameter matrix and the external parameter matrix of the second camera module, according to the difference between the first image coordinate and the second image coordinate, the relative distance between the first camera module and the second camera module can be calculated, and after the first camera module and the second camera module are installed and aligned, the installation positions and the installation postures of the first camera module and the second camera module are correct.
  • 2. The camera module aligning method according to claim 1, wherein each chart characteristic point has a world coordinate in a world coordinate system, and each image characteristic point has an image coordinate in an image plane coordinate system.
  • 3. The camera module aligning method according to claim 2, wherein the standard relationship is expressed by a mathematic formula: q=K[R|T]Q wherein q is the image coordinate of the image characteristic point in the image plane coordinate system, K is the internal parameter matrix, [R|T] is the external parameter matrix, and Q is the word coordinate of the characteristic point in the world coordinate system.
  • 4. The camera module aligning method according to claim 3, wherein the internal parameter matrix K is expressed by a mathematic formula:
  • 5. The camera module aligning method according to claim 3, wherein the external parameter matrix [R|T] is expressed by a mathematic formula:
  • 6. The camera module aligning method according to claim 2, wherein the step (S2) comprises sub-steps of: using the camera module at an initial shooting position and with an initial shooting posture to shoot the reference chart, so that the image is formed on the imaging plane; andcalibrating the initial shooting position and the initial shooting posture to the installation position and the installation posture according to the internal parameter matrix, the external parameter matrix and the image coordinate of each image characteristic point.
  • 7. The camera module aligning method according to claim 1, wherein the reference chart is a checkerboard chart, and the plural chart characteristic points are corner points of the checkerboard chart.
  • 8. The method according to claim 1, wherein the internal parameter matrix and the external parameter matrix are obtained by using a standard camera module with qualified assembling quality to shoot the reference chart at different positions and at different angles.
Priority Claims (1)
Number Date Country Kind
109112614 Apr 2020 TW national
US Referenced Citations (31)
Number Name Date Kind
6437823 Zhang Aug 2002 B1
8811718 Anai Aug 2014 B2
8953847 Moden Feb 2015 B2
9800867 Itoh Oct 2017 B2
9870616 Kikuchi Jan 2018 B2
9965870 Claveau May 2018 B2
9986224 Mullis May 2018 B2
10484665 Nobori Nov 2019 B2
10943360 Crozier Mar 2021 B1
10958817 Wang Mar 2021 B1
20030222984 Zhang Dec 2003 A1
20100253622 Makita Oct 2010 A1
20120105585 Masalkar May 2012 A1
20120293667 Baba Nov 2012 A1
20130322698 Moden Dec 2013 A1
20150189267 Kaji Jul 2015 A1
20160360195 Itoh Dec 2016 A1
20170111558 Brueckner Apr 2017 A1
20170289526 Sasatani Oct 2017 A1
20180316905 Nobori Nov 2018 A1
20190147625 Jia May 2019 A1
20190253611 Wang Aug 2019 A1
20190295291 Raag Sep 2019 A1
20200012858 Xiang Jan 2020 A1
20200027243 Ziegler Jan 2020 A1
20200273205 Yamashita Aug 2020 A1
20200311979 Chang Oct 2020 A1
20210042962 Zhang Feb 2021 A1
20210103143 Chang Apr 2021 A1
20210110575 Hu Apr 2021 A1
20210142517 Jia May 2021 A1
Related Publications (1)
Number Date Country
20210329201 A1 Oct 2021 US